Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Peksa 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
-
Oh, and does it force a store or just a value in a location?
-
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.
-
Anything except feeding through ties and viruses are allowed in F2.
Some memory locations reset themselves each cycle, some have to be manually reset.
-
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?
-
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.
-
Allright, thanks.