DarwinBotsManual
Open the app EspañolES

.strpoison

Order to make poison: every 1 energy gives 4 poison, up to 100 per cycle. Also called .mkpoison.

Facts

Address
826
Names
.strpoison, .mkpoison
Kind
Command: the bot writes it and the engine reads it and usually consumes it
Group
Defenses
Written by
Your DNA.
Read by
The engine, in the actions phase of the same cycle: makes up to 100 poison (or takes it apart, if negative) and charges 1 energy per 4, plus a surcharge that goes to waste (parameter Poison).
Cleared
The engine, after making. With energy at 0 or less, the command stays written without being carried out.
Range
−32000 to 32000; at most 100 per cycle are used in each direction
Mutations
picked as a store target

Write how much poison you want to add this cycle; .mkpoison is another name for the same cell. The engine makes it at the end of the cycle, charges 1 energy for every 4 poison and sets the order to 0. The cap is 100 per cycle, which is 25 energy. It is four times cheaper than the venom from .strvenom, an asymmetry that comes from the original DarwinBots.

As with .mkshell, a negative value takes poison apart but charges energy anyway, a transaction cost that goes to waste is added, and with energy at 0 or less the order stays written without being carried out.

Poison evaporates 2% per cycle, so a reserve is maintained by topping it up. The result is read in .poison.

' keep about 500 poison
cond
*.poison 500 <
start
100 .strpoison store
stop