DarwinBotsManual
Open the app EspañolES

.body

The bot's body, between 0 and 32000: a reserve worth 10 energy per point that sets its size and its weight.

Facts

Address
311
Name
.body
Kind
Sense: the engine writes it for the DNA to read
Group
Body, energy and state
Written by
The engine, in the actions phase, after the .strbody and .fdbody conversions; also when giving birth, for the parent. You read it in the next cycle.
Cleared
No: the engine rewrites it every cycle.
Range
0 to 32000.
Note
In its first cycle of life the bot reads it as 0, whether you loaded it or it was just born.
Mutations
picked as a read (*)

Body is the bot's second currency. Each point is worth 10 of energy: you load it with .strbody and spend it with .fdbody. In the meantime it isn't used to pay for anything, but it has effects:

The engine publishes it at the end of the cycle, between 0 and 32000. In its first cycle of life a bot reads it as 0, whether you loaded it or it was just born: don't use it alone to decide anything serious in that cycle.

' Reproduces only when it has body to spare
cond
 *.body 2000 >
start
 50 .repro store
stop

What it gained or lost in body in the last cycle is in .bodgain and .bodloss; the body of the bot you're facing is in .refbody.