Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Tj3 on March 17, 2010, 08:29:47 PM
-
Is there a way to determine if another bot is under the influence of venom? I haven't found any information about it anywhere on the wiki...
-
Yes and no. Theres no .refparalyzed. Instead you have to use your memloc/memval. If your already using them for something else you might have a problem, though you can possibly set up a system to rotate between several different memloc/memval systems. Heres an example:
cond
.paralyzed *.memloc !=
start
.paralyzed .memloc store
stop
cond
*.memval 0 >
start
-InsertCodeHere-
stop
-
Oh, ok. I didn't think of that before. This will be extremely useful, hehe!