Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Tj3 on March 17, 2010, 08:29:47 PM

Title: Determining if other bots are under influence of venom
Post 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...
Title: Determining if other bots are under influence of venom
Post by: Houshalter on March 17, 2010, 08:43:52 PM
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:

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

cond
*.memval 0 >
start
-InsertCodeHere-
stop
Title: Determining if other bots are under influence of venom
Post by: Tj3 on March 17, 2010, 11:09:58 PM
Oh, ok. I didn't think of that before. This will be extremely useful, hehe!