DarwinBotsManual
Open the app EspañolES

.refdn

How many times the DNA of the bot you are looking at writes to .dn: one number in its species signature.

Facts

Address
702
Name
.refdn
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: how many commands writing to .dn the DNA of the bot your focus eye sees has, whether or not they run. 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 to about 16000; 0 if you see a corpse or a shape.
Mutations
picked as a read (*)

Another number in the signature of the bot your focus eye sees: how many times the address of .dn (2) appears in its DNA right before a write word. It works the same as .refup: it counts what is written even if it never runs, it isn't recalculated every cycle, and it is 0 if you see nothing or if what you see is a corpse.

Few bots go backward (in the Bestiary, one in four writes to .dn), so for most it is 0. That makes it useful as an extra piece of data: if your species uses .dn and the other doesn't, it isn't one of your own. It is compared with your own number, .mydn.

cond
*.eye5 0 >
*.refdn *.mydn !=
start
-1 .shoot store
stop