DarwinBotsManual
Open the app EspañolES

Its own signature (my*)

Eleven counters that the engine derives from the bot's own DNA (how many times it moves, turns, shoots, looks…) and that are used to recognize members of the same species.

AddressSysvarKindSummary
721.myupSenseHow many times the bot's own DNA writes to .up (the command to push forward): part of the signature used to recognize its own species.
722.mydnSenseHow many times the bot's own DNA writes to .dn (the command to push backward): part of the signature used to recognize its own species.
723.mysxSenseHow many times the bot's own DNA writes to .sx (the command to push left): part of the signature used to recognize its own species.
724.mydxSenseHow many times the bot's own DNA writes to .dx (the command to push right): part of the signature used to recognize its own species.
725.myaimdxSenseHow many times the bot's own DNA writes to .aimdx (the turn-right command): part of the signature used to recognize its own species.
726.myaimsxSenseHow many times the bot's own DNA writes to .aimsx (the command to turn left): part of the signature used to recognize its own species.
727.myshootSenseHow many times the bot's own DNA writes to .shoot (the command to shoot): part of the signature used to recognize its own species.
728.myeyeSenseHow many times the bot's own DNA reads an eye (*.eye1 to *.eye9): the most-used counter for recognizing its own species.
729.mytiesSenseHow many times the number of .tie (330) appears in the bot's own DNA, however it is used: part of the signature for recognizing its own species.
730.mypoisonSenseHow many times the bot's own DNA writes to .strpoison, the command to make defensive poison; unlike the other my* sysvars, it has no ref* partner.
731.myvenomSenseHow many times the bot's own DNA writes to .strvenom, the command to make attack venom; unlike the other my* sysvars, it has no ref* partner.

These cells measure nothing about the world: they count things in the bot's own DNA. .myup says how many times the DNA writes to .up, .myeye how many times it reads an eye, .myties how many times the number of .tie shows up, and so on. Together they are a kind of signature of the genome.

They are used by comparing them with what is seen. When a bot looks at another, the cells of what it sees bring the same counters, but from the other one's DNA: .refup against .myup, .refeye against .myeye, .reftie against .myties. If they match, it is most likely of the same species. By far the most used comparison in the Bestiary is *.refeye *.myeye !=, “what I see is not one of mine”:

' mark in cell 60 when what is ahead is of another species
cond
*.eye5 0 >
*.refeye *.myeye !=
start
1 60 store
stop

It is an approximate test: two different species can have the same count, and a mutation can change a relative's. That is why many bots compare two or three counters at once. The tutorial A bot that recognizes its own species develops it.

Careful with corpses: they arrive with the whole signature at 0, so against one *.refeye *.myeye != comes out true, as if it were of another species. The same goes for an obstacle, which can be told apart because it sets .reftype to 1.

When they are computed

The engine computes them when the DNA changes: when the bot is loaded, when it is born, when a virus adds or removes a gene and when it mutates. It does not write them again every cycle, so the bot can overwrite them; but what others see comes from the engine's count, not from the cell, so writing to them is no use for disguising yourself.