Author Topic: Info shots  (Read 4614 times)

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
Info shots
« on: April 17, 2007, 01:07:43 PM »
Few questions on info shots, or so I remember storing positive values in .shoot called.

Are they allowed in F2?
Do they overwrite DNA's commands? For example, would the following work to any degree

cond
blahblah
start
-2 .shootval store
7 .shoot store
stop

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
Info shots
« Reply #1 on: April 17, 2007, 02:04:37 PM »
Oh, and does it force a store or just a value in a location?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Info shots
« Reply #2 on: April 17, 2007, 04:31:36 PM »
Yes, it would work to a degree.  What happens is that after DNA has been executed during a cycle, shots get updated, including collisions with info shots.  The info shot would override that memory location for the cycle, changing the final behavior of the bot during the next cycle.  The memory will remain changed until something else modifies it.

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Info shots
« Reply #3 on: April 19, 2007, 03:32:56 PM »
Anything except feeding through ties and viruses are allowed in F2.

Some memory locations reset themselves each cycle, some have to be manually reset.
« Last Edit: April 19, 2007, 03:45:05 PM by Jez »
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
Info shots
« Reply #4 on: April 19, 2007, 07:10:18 PM »
So at worst it would just change a value after DNA has excecuted and get changed back before it has time to affect anything in DNA? But the shot would be -2 for the round the info shot hits the target? Or is it dependant on the processing order and it might or might not work?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Info shots
« Reply #5 on: April 20, 2007, 03:02:55 AM »
It would be -2 for the round, because most command sysvars get reset every cycle.  But the victim bot can't stop that -2 to its shot, and will feel its effects.

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
Info shots
« Reply #6 on: May 01, 2007, 09:56:36 AM »
Allright, thanks.