Author Topic: Memory shots  (Read 4173 times)

Offline EricL Newbie

  • Bot Neophyte
  • *
  • Posts: 10
    • View Profile
Memory shots
« 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.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Memory shots
« Reply #1 on: March 12, 2006, 02:04:32 PM »
It would last a single cycle.

YOu need to use Venom to make it last longer.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Memory shots
« Reply #2 on: March 12, 2006, 04:38:30 PM »
Thanks.  

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

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Memory shots
« Reply #3 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

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Memory shots
« Reply #4 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.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Memory shots
« Reply #5 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
Many beers....

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Memory shots
« Reply #6 on: March 16, 2006, 04:01:58 PM »
Yes, you're exactly right

Oops  :redface: