Darwinbots Forum
Welcome To Darwinbots => Newbie => Topic started by: EricL Newbie on March 12, 2006, 02:01:02 PM
-
Newbie quesiton. If I shoot a value into a memory location of another bot e.g.
.myeye .shoot store
*.myeye .shootval store
how long does this last? One cycle? More? The tutiorial is unclear on this.
If my bot references the value of that memory location the following cycle, will he get the new value or the 'real' value?
Thanks.
-
It would last a single cycle.
YOu need to use Venom to make it last longer.
-
Thanks.
Is there a way to get the equivalent of *.refparalyzed?
-
cond
*.robage 0 =
start
*.paralyzed .memloc store
stop
Then *.memval will readback 1 if the bot you are looking at is paralyzed
-
how long does this last? One cycle? More? The tutiorial is unclear on this.
It actually depends on which memory location you are changing.
If it is one that is refreshed every cycle then it will only last till the next cycle.
Many sysvars do not do this. The eye cells for example. They only refresh when something is actually in the field of vision during that cycle. That is how some bots keep spinning indefinitely after seeing a conspec.
If you set one of these with a memory shot then it wil stay until it is cancelled by natural means.
-
Elite Said:
cond
*.robage 0 =
start
*.paralyzed .memloc store
stop
Shouldn't it actually be:
cond
*.robage 0 =
start
.paralyzed .memloc store
stop
?
-E
-
Yes, you're exactly right
Oops :redface: