Darwinbots Forum

Welcome To Darwinbots => Newbie => Topic started by: EricL Newbie on March 12, 2006, 02:01:02 PM

Title: Memory shots
Post 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.
Title: Memory shots
Post by: Numsgil on March 12, 2006, 02:04:32 PM
It would last a single cycle.

YOu need to use Venom to make it last longer.
Title: Memory shots
Post by: EricL on March 12, 2006, 04:38:30 PM
Thanks.  

Is there a way to get the equivalent of *.refparalyzed?
Title: Memory shots
Post by: Elite on March 12, 2006, 05:03:55 PM
Code: [Select]
cond
*.robage 0 =
start
*.paralyzed .memloc store
stop

Then *.memval will readback 1 if the bot you are looking at is paralyzed
Title: Memory shots
Post by: PurpleYouko on March 12, 2006, 09:13:57 PM
Quote
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.
Title: Memory shots
Post by: EricL on March 16, 2006, 02:36:15 PM
Elite Said:
Code: [Select]
cond
*.robage 0 =
start
*.paralyzed .memloc store
stop

Shouldn't it actually be:

Code: [Select]
cond
*.robage 0 =
start
.paralyzed .memloc store
stop

?

-E
Title: Memory shots
Post by: Elite on March 16, 2006, 04:01:58 PM
Yes, you're exactly right

Oops  :redface: