DarwinBotsManual
Open the app EspañolES

.numties

How many ties the bot has right now, counting the birth tie and the ones others made to it.

Facts

Address
466
Name
.numties
Kind
Sense: the engine writes it for the DNA to read
Group
Ties
Written by
The engine, when a tie forms or breaks and every cycle when it checks your ties (movement phase).
Cleared
The engine, when you are left with no ties. Writing to it changes nothing.
Range
0 to 9
Mutations
picked as a read (*)

It counts all of the bot's ties, no matter who created them: the birth tie, the ones you made with .tie and the ones others made to you. The maximum is 9. The engine updates it when a tie is created or deleted and every cycle when it checks the ties; writing to it changes nothing.

It's useful for simple decisions: tie only if you don't have a tie yet, release other bots' ties with .deltie, or find out whether you're a loose cell. A newborn already has 1, the tie to its parent, which lasts about 100 cycles if nothing replaces it. To find out whether you're also multicellular, check .multi.

' tie to what I see only if I have no ties
cond
*.numties 0 =
*.eye5 30 >
start
3 .tie store
stop