DarwinBotsManual
Open the app EspañolES

.pain

How much energy the bot lost in the last cycle; negative if it gained.

Facts

Address
203
Name
.pain
Kind
Sense: the engine writes it for the DNA to read
Group
Gains and losses
Written by
The engine, in the actions phase of every cycle: the energy one cycle ago minus the energy now. You read it in the next cycle.
Cleared
Nobody; the engine rewrites it every cycle.
Range
−32000 to 32000; negative if the bot gained energy.
Mutations
picked as a read (*)

.pain is the energy the bot had at the end of the previous cycle minus what it has at the end of this one: positive if it lost, negative if it gained. It is the net change, so it accounts for everything: what its own DNA costs, moving and shooting, what other bots' shots take from it, what it eats and what it turns into body. .pleas is the same number with the sign flipped.

The engine publishes it at the end of each cycle; your DNA reads what happened in the previous cycle. A few oddities:

This bot turns to look around when something takes energy from it:

cond
*.pain 30 >
start
314 .aimsx store
stop