DarwinBotsManual
Open the app EspañolES

.refmulti

It is 1 if the bot you are looking at is part of a multibot, an organism of several cells joined by ties.

Facts

Address
686
Name
.refmulti
Kind
Sense: the engine writes it for the DNA to read
Group
What it sees (ref*)
Written by
The engine, in the actions phase of every cycle: 1 if the bot your focus eye sees is part of a multibot. Also on colliding with a bot. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
0 or 1.
Mutations
picked as a read (*)

.refmulti is 1 if the bot your focus eye sees is part of a multibot, and 0 if it is a loose bot. The bot itself knows whether it is a multibot through its .multi.

Multibots use it to recognize other cells, and hunters, to tell a large organism from a loose bot before taking it on (see Ties and multicellular bots).

If you see nothing, or you see a shape, it is 0.

' I don't attack multibots
cond
*.eye5 0 >
*.refmulti 0 =
*.refeye *.myeye !=
start
-1 .shoot store
stop