DarwinBotsManual
Open the app EspañolES

Defenses

The four substances a bot makes with its energy (shell, slime, venom and poison) and the cells that decide what they do to whoever attacks you.

AddressSysvarKindSummary
820.mkslimeCommandCommand to make slime: each 1 of energy gives 10 of slime, up to 200 per cycle.
821.slimeSenseHow much slime the bot has: it prevents the bot from being tied and stops viruses; it evaporates 2% per cycle.
822.mkshellCommandCommand to make shell: each 1 of energy gives 10 of shell, up to 100 per cycle.
823.shellSenseHow much shell the bot has: it stops the shots that steal body and the venom ones, and it doesn't wear off on its own.
824.strvenom .mkvenomCommandOrder to make venom: every 1 energy gives 1 venom, up to 100 per cycle. Also called .mkvenom.
825.venomSenseHow much venom the bot has: the ammunition for -3 shots, which paralyze the victim and overwrite one of its memory cells.
826.strpoison .mkpoisonCommandOrder to make poison: every 1 energy gives 4 poison, up to 100 per cycle. Also called .mkpoison.
827.poisonSenseHow much poison the bot has: it punishes whoever bites it with an energy shot or steals from it through a tie; it evaporates 2% per cycle.
834.plocCommandThe memory cell that your poison will overwrite, every cycle, in whoever gets poisoned by attacking you.
835.vlocCommandThe memory cell that your venom will overwrite in the victim on every cycle of the paralysis.
836.venvalCommandThe value that your venom writes into the victim's .vloc cell on every cycle of the paralysis.
837.paralyzedSenseHow many cycles of venom paralysis the bot has left; 0 if it isn't paralyzed.
838.poisonedSenseHow many cycles of poisoning the bot has left; 0 if it isn't poisoned.
839.pvalCommandThe value your poison writes into the .ploc cell of whoever gets poisoned by attacking you.

A bot can spend energy to make four substances. Each one has a command to make it and a cell where the engine publishes how much you have:

SubstanceMade withRead inPer 1 of energyCap per cycleDecays on its own
Shell.mkshell.shell10100no
Slime.mkslime.slime102002% per cycle
Venom.strvenom.venom1100no
Poison.strpoison.poison41002% per cycle

The four serve different purposes. Shell stops the shots that steal body and the venom ones, but makes the bot heavier. Slime keeps other bots from tying to you, and it stops viruses. Venom is ammunition: it is shot with -3 in .shoot and paralyzes. Poison is a passive defense: whoever hits you with an energy shot receives poison instead of food.

What venom and poison do to the victim is up to you, through four configuration cells: .vloc and .venval (which cell of the victim of your venom gets overwritten and with what value) and .ploc and .pval (the same for whoever is poisoned by your poison). The victim sees in .paralyzed and .poisoned how many cycles it has left.

Making a substance costs the energy in the table plus a transaction cost set by the simulation, which ends up converted into waste (.waste). A negative value in the command dismantles the substance, but returns no energy: it is charged too.

A common recipe in the Bestiary, for example in Alga Toxicus: at birth, set .vloc, .venval and .ploc; then, load venom and poison when there is energy to spare and shoot venom every cycle while turning at random. The complete mechanism is covered in Defenses.