DarwinBotsManual
Open the app EspañolES

.tout1

First tie output channel: the number you write here is read in its .tin1 by the bot tied to you.

Facts

Address
410
Name
.tout1
Kind
Command: the bot writes it and the engine reads it and usually consumes it
Group
Inputs and outputs
Written by
Your DNA. The bot tied to you that is reading that tie receives it in its .tin1 and reads it in the next cycle.
Cleared
Nobody: the value stays published until you change it. A child is born with 0.
Range
−32000 to 32000
Mutations
picked as a store target

.tout1 is like .out1, but instead of reaching whoever is looking at you, it reaches whoever is tied to you: the engine copies your .tout1 into the .tin1 of the bot at the other end of the tie, and it reads it in the next cycle. If you have no ties, nobody reads it.

The engine doesn't clear it: the value stays published until you change it. A child is born with .tout1 at 0.

There is a condition on the listener's side: each bot reads only one tie per cycle, the one it chooses with .readtie or, if it didn't choose any, the most recently created one (.tiepres). If you are tied to several bots, your .tout1 only reaches those that happen to be listening to exactly the tie that joins them to you.

The simplest case is parent and child: at birth they are joined by a tie that lasts about 100 cycles, and both listen to it without doing anything. The child, though, only receives something once its .robage reaches 3: before that, its .tin1 is 0. This bot publishes its age plus 1000 and notes in 50 whatever reaches it from the other side:

cond
*.robage 2 =
start
50 .repro store
stop

start
*.robage 1000 add .tout1 store
*.tin1 50 store
stop

The parent sees in .tin1 the child's age (plus 1000) and the child sees the parent's, always one cycle late.

There are ten identical channels, from .tout1 to .tout10; see Inputs and outputs.