DarwinBotsManual
Open the app EspañolES

.refpoison

How much defensive poison the bot you are looking at has stored: shooting at it can send poison back at you.

Facts

Address
713
Name
.refpoison
Kind
Sense: the engine writes it for the DNA to read
Group
What it sees (ref*)
Written by
The engine, in the actions phase of every cycle, with the poison stored (.poison) by the bot your focus eye sees. Also on colliding with a bot. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
0 to 32000.
Mutations
picked as a read (*)

.refpoison is the poison reserve of the bot your focus eye sees: what that bot reads in its .poison. It goes from 0 to 32000. It is what it has stored, not what it is making.

Poison is a passive defense. If you hit a bot that has more poison than the power of your shot with an energy shot (.shoot at −1), a poison shot comes back at you instead of energy and poisons you. Something similar happens with shots that write memory. Looking at .refpoison before attacking avoids that trap; the details are in Defenses.

Its partner is .refvenom. If you see nothing, it is 0.

' I don't shoot at the poisonous ones
cond
*.eye5 0 >
*.refeye *.myeye !=
*.refpoison 0 =
start
-1 .shoot store
stop