Ties
The cells for tying to another bot, talking and passing resources through the tie, shaping it and, with stiffened ties, building multicellular organisms.
| Address | Sysvar | Kind | Summary |
|---|---|---|---|
| 330 | .tie | Command | Order 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 | .stifftie | Command | Order to change the stiffness of a stiffened tie, from 1 (soft) to 100 (very stiff). |
| 450 | .tieang | Sense | Where the .tiepres tie lies as seen from the bot: 0 if it points right at the partner, signed according to the side. |
| 451 | .tielen | Sense | The length of the .tiepres tie, measured edge to edge between the two bots. |
| 452 | .tieloc | Command | What 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 | .tieval | Command | The value that goes with .tieloc: what is written to the other bot's memory or how much is transferred through the tie. |
| 454 | .tiepres | Sense | The 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 | .tienum | Command | Picks, by its tie port, which tie this cycle's orders act on (.tieloc, .fixang, .fixlen, .stifftie); 0 uses the .tiepres one. |
| 466 | .numties | Sense | How many ties the bot has right now, counting the birth tie and the ones others made to it. |
| 467 | .deltie | Command | A command to break the ties that have that port; the engine clears it after using it. |
| 468 | .fixang | Command | Command 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 | .fixlen | Command | Command that fixes the natural length of a stiffened tie, measured edge to edge between the two bots. |
| 470 | .multi | Sense | It is 1 if the bot is multicellular (it has or had a stiffened tie and still keeps some tie); otherwise 0. |
| 471 | .readtie | Command | Chooses, 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 | .tieang1 | Input and output | Angle of a multicellular bot's first tie relative to the way the bot points (0 to 1256); writing it sets that angle. |
| 481 | .tieang2 | Input and output | Angle of a multicellular bot's second tie relative to the way the bot points (0 to 1256); writing it sets that angle. |
| 482 | .tieang3 | Input and output | Angle of a multicellular bot's third tie relative to the way the bot points (0 to 1256); writing it sets that angle. |
| 483 | .tieang4 | Input and output | Angle of a multicellular bot's fourth tie relative to the way the bot points (0 to 1256); writing it sets that angle. |
| 484 | .tielen1 | Input and output | Length of a multicellular bot's first tie, edge to edge; writing it sets that tie's natural length. |
| 485 | .tielen2 | Input and output | Length of a multicellular bot's second tie, edge to edge; writing it sets that tie's natural length. |
| 486 | .tielen3 | Input and output | Length of a multicellular bot's third tie, edge to edge; writing it sets that tie's natural length. |
| 487 | .tielen4 | Input and output | Length of a multicellular bot's fourth tie, edge to edge; writing it sets that tie's natural length. |
| 830 | .sharenrg | Command | In 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 | .sharewaste | Command | In a multicellular organism, the percentage of the waste pooled with each partner that you want to keep (1 to 99). |
| 832 | .shareshell | Command | In a multicellular organism, the percentage of the shell pooled with each partner that you want to keep (1 to 99). |
| 833 | .shareslime | Command | In 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:
- Tying and releasing:
.tie,.deltie,.numties,.tiepres,.multi. - Writing and transferring through the tie:
.tienum,.tieloc,.tieval. With a positive.tielocyou write to the other one's memory; with-1,-3,-4or-6you give or take energy, venom, waste or body. - Measuring:
.tieangand.tielen(the tie in.tiepres), and.tieang1to.tieang4and.tielen1to.tielen4(the first four, in a multicellular). - Shaping (stiffened ties only):
.fixang,.fixlen,.stifftieand, when writing,.tieang1….tielen4. - Sharing (multicellulars only):
.sharenrg,.sharewaste,.shareshell,.shareslimeand.sharechlr. - Reading the other one:
.readtiechooses which tie the cells of what it feels through a tie come from.
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.