Bots and Simulations > DNA - General

Poison/venom/shell

<< < (2/2)

Elite:
Hi  :D

.ploc , .vloc .and .venval determine what happens to the bot on the recieving end of your venom or poison shot.

Poison uses .ploc
Place a value in .ploc sometime (usually when you're born) and when an enemy gets hit by the poison the memory location you placed in .ploc will be set to zero for a while.
Popular poisons include:

--- Code: ---.eye5 .ploc store
--- End code ---
Which blinds your enemy; and

--- Code: ---.shoot .ploc store
--- End code ---
Which prevents your enemy form shooting
Poison is automatically fired back at an enemy when you are hit by a -1 shot. You can't fire poison 'manually'

Venom uses .vloc and .venval
.vloc is the memory location (like .ploc) but this time, when an enemy is hit by venom, the value in .venval overwrites the value in his memory location (.vloc). You can have lots of fun with this.
Popular venoms:

--- Code: ---.dn .vloc store
100 .venval store
--- End code ---
Makes your enemy fly backwards

--- Code: ---.shoot .vloc store
-2 .venval store
--- End code ---
Makes your enemy shoot nrg

--- Code: ---.myeye .vloc store
*.myeye .venval store
--- End code ---
Prevents your enemy from recognising you as a conspec and therefore stops your enemy from attacking you (assuming he's using .myeye conspec recognition)

--- Code: ---.refeye .vloc store
0 .venval store

'or
.refeye .ploc store
'for the poison version
--- End code ---
Stops your enemy from identifying anyone as a conspec (goes cannibiotistic) and he will attack everyone including his own kind.
Venom is fired by putting -3 in .shoot. It is not fired automatically. The number in .shootval when you fire the venom determines how much venom you fire. More venom lasts longer.

As for shell, slime and poison:

Poison will protect you from -1 shots. If a -1 shot hits you, you will fire poison back.

Shell will only protect against -6 shots (body shots), which are fired by putting -6 in .shoot rather than -1. The shell will slowly wear away and take damage for you. Shell makes you heavy and slow however.

Slime protects against ties and viruses. Slime slowly melts away however. Slime is not 'used up' when ties and viruses hit (at least not to my knowlage). A few hundred units of slime will protect you against most (if not all) viruses.

Another cool trick is firing info shots. Put a memory location in .shoot and then that memory location will be overwritten by what's in .shootval.

--- Code: ---.aimsx .shoot store
314 .shootval store
--- End code ---
Icarus used this to dominate F2 for a while.

Go check out the Wiki - there's lots of information there

Here's a neat little alga  (check the 'autotroph' box) that uses venom and poison


--- Code: ---' Alga Toxicus
'
' Don't get too close!

cond
 *.robage 0 =
start
 .shoot .ploc store
 .shoot .vloc store
 -2 .venval store
stop

cond
start
 120 rnd .aimdx store
 -3 .shoot store
stop

cond
 *.nrg 1000 >
start
 50 .repro store
 100 .strpoison store
 100 .strvenom store
stop

end
--- End code ---

Any more questions  :)

Griz:
excellent!
added this spiel to the wiki:
http://www.darwinbots.com/WikiManual/index.php?title=Venom

do join there Elite ... so we can interface there as well.

Navigation

[0] Message Index

[*] Previous page

Go to full version