DarwinBotsManual
Open the app EspañolES

.mypoison

How many times the bot's own DNA writes to .strpoison, the command to make defensive poison; unlike the other my* sysvars, it has no ref* partner.

Facts

Address
730
Name
.mypoison
Kind
Sense: the engine writes it for the DNA to read
Group
Its own signature (my*)
Written by
The engine, when the DNA changes (on load, at birth, through a virus or a mutation), counting the writes to .strpoison. Not every cycle.
Cleared
Never. Your DNA can overwrite it; the engine recalculates it the next time the DNA changes.
Range
0 to about 16000; in practice, a few dozen.
Mutations
picked as a read (*)

A counter taken from the bot's own DNA: how many writes to .strpoison there are in the genome, that is, how many times its address (826) appears immediately followed by a write word, as in 100 .strpoison store or .strpoison inc. Just as with .myup, it counts what is written, whether it runs or not.

It is useful to the bot itself, though, for knowing whether its genome makes poison, for example in a gene written to be shared among variants:

' if my DNA doesn't make poison, run from what's coming head-on
cond
*.mypoison 0 =
*.eye5 1000 >
start
30 .dn store
stop

The engine computes it when the DNA changes (on load, at birth, through a virus or a mutation; see Its own signature (my*)), not every cycle. For the poison the bot has stored, look at .poison. More about these counters in Its own signature (my*).