DarwinBotsManual
Open the app EspañolES

Ties

The cells for tying to another bot, talking and passing resources through the tie, shaping it and, with stiffened ties, building multicellular organisms.

AddressSysvarKindSummary
330.tieCommandOrder to tie yourself to the bot you are looking at; the number you write is the tie port you will use to name that tie.
331.stifftieCommandOrder to change the stiffness of a stiffened tie, from 1 (soft) to 100 (very stiff).
450.tieangSenseWhere the .tiepres tie lies as seen from the bot: 0 if it points right at the partner, signed according to the side.
451.tielenSenseThe length of the .tiepres tie, measured edge to edge between the two bots.
452.tielocCommandWhat to do through the chosen tie: a number from 1 to 1000 writes .tieval to that cell of the other bot; -1, -3, -4 and -6 pass or take energy, venom, waste or body.
453.tievalCommandThe value that goes with .tieloc: what is written to the other bot's memory or how much is transferred through the tie.
454.tiepresSenseThe tie port of the last tie that formed (created by you or by another bot toward you): the tie the orders use when .tienum is 0.
455.tienumCommandPicks, by its tie port, which tie this cycle's orders act on (.tieloc, .fixang, .fixlen, .stifftie); 0 uses the .tiepres one.
466.numtiesSenseHow many ties the bot has right now, counting the birth tie and the ones others made to it.
467.deltieCommandA command to break the ties that have that port; the engine clears it after using it.
468.fixangCommandCommand that fixes the angle of a stiffened tie relative to where the bot is pointing (on the scale of 1256 per turn); a negative releases it.
469.fixlenCommandCommand that fixes the natural length of a stiffened tie, measured edge to edge between the two bots.
470.multiSenseIt is 1 if the bot is multicellular (it has or had a stiffened tie and still keeps some tie); otherwise 0.
471.readtieCommandChooses, by its port, which tie the tref* cells (what the bot feels from the other end) come from; 0 uses the one in .tiepres.
480.tieang1Input and outputAngle of a multicellular bot's first tie relative to the way the bot points (0 to 1256); writing it sets that angle.
481.tieang2Input and outputAngle of a multicellular bot's second tie relative to the way the bot points (0 to 1256); writing it sets that angle.
482.tieang3Input and outputAngle of a multicellular bot's third tie relative to the way the bot points (0 to 1256); writing it sets that angle.
483.tieang4Input and outputAngle of a multicellular bot's fourth tie relative to the way the bot points (0 to 1256); writing it sets that angle.
484.tielen1Input and outputLength of a multicellular bot's first tie, edge to edge; writing it sets that tie's natural length.
485.tielen2Input and outputLength of a multicellular bot's second tie, edge to edge; writing it sets that tie's natural length.
486.tielen3Input and outputLength of a multicellular bot's third tie, edge to edge; writing it sets that tie's natural length.
487.tielen4Input and outputLength of a multicellular bot's fourth tie, edge to edge; writing it sets that tie's natural length.
830.sharenrgCommandIn a multicellular organism, the percentage of the energy pooled with each partner that you want to keep; the engine splits it in the same cycle.
831.sharewasteCommandIn a multicellular organism, the percentage of the waste pooled with each partner that you want to keep (1 to 99).
832.shareshellCommandIn a multicellular organism, the percentage of the shell pooled with each partner that you want to keep (1 to 99).
833.shareslimeCommandIn a multicellular organism, the percentage of the slime pooled with each partner that you want to keep (1 to 99).

A tie is a spring between two bots. There are two ways to get one: at birth, parent and child are joined by a tie that breaks by itself after 100 cycles; and with .tie, which ties the bot you are looking at. A tie made with .tie stiffens after 19 cycles and from then on both bots are multicellular (.multi): they can share resources and fix the shape of the tie.

Each tie has a number, its tie port, and each end knows it by a different number: whoever creates it uses the value it put in .tie; the other one uses the tie's sequence number among its own. .tiepres gives the tie port of the last tie created and .numties how many you have. Almost all commands act on the tie you choose with .tienum (or, if you leave it at 0, on the one in .tiepres).

The cells are grouped like this:

The basic recipe for an organism: the child, as soon as it is born, ties itself to the parent with .tie; twenty cycles later both are multicellular and the child, which is the one that created the tie, splits the energy with .sharenrg. That is the detail to watch: sharing only works from the bot that created the tie. The full workings are in Ties and multicellular bots.