DarwinBotsManual
Open the app EspañolES

.multi

It is 1 if the bot is multicellular (it has or had a stiffened tie and still keeps some tie); otherwise 0.

Facts

Address
470
Name
.multi
Kind
Sense: the engine writes it for the DNA to read
Group
Ties
Written by
The engine: 1 when one of your ties stiffens (forces and collisions phase); 0 when you are left with no ties (movement phase).
Cleared
The engine, when you are left with no ties at all. Writing to it changes nothing.
Range
0 or 1
Mutations
picked as a read (*)

A bot becomes multicellular when one of its ties stiffens: that happens 19 cycles after a tie created with .tie, and it happens to both ends at once. The birth tie never stiffens, so parent and child are not multicellular just for having been born together.

Being multicellular enables things: sharing with .sharenrg and its relatives, fixing the angle and length of stiffened ties (.fixang, .fixlen, .stifftie, .tieang1…), and paying less to make shell and slime.

It only goes back to 0 when the bot is left with no ties at all. If the stiffened tie breaks but another one remains, it stays at 1.

' once multicellular, split the energy evenly with each partner
cond
*.multi 1 =
start
50 .sharenrg store
stop

Remember that the splitting is only done by the bot that created the tie (see .sharenrg).