Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Peksa on April 17, 2007, 01:07:43 PM

Title: Info shots
Post 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
Title: Info shots
Post by: Peksa on April 17, 2007, 02:04:37 PM
Oh, and does it force a store or just a value in a location?
Title: Info shots
Post by: Numsgil 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.
Title: Info shots
Post by: Jez 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.
Title: Info shots
Post by: Peksa 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?
Title: Info shots
Post by: Numsgil 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.
Title: Info shots
Post by: Peksa on May 01, 2007, 09:56:36 AM
Allright, thanks.