Welcome To Darwinbots > Newbie

Memory shots

(1/2) > >>

EricL Newbie:
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.

Numsgil:
It would last a single cycle.

YOu need to use Venom to make it last longer.

EricL:
Thanks.  

Is there a way to get the equivalent of *.refparalyzed?

Elite:

--- Code: ---cond
*.robage 0 =
start
*.paralyzed .memloc store
stop
--- End code ---

Then *.memval will readback 1 if the bot you are looking at is paralyzed

PurpleYouko:

--- Quote ---how long does this last? One cycle? More? The tutiorial is unclear on this.
--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

Go to full version