.out1
First output channel through sight: the number you write here is read in its .in1 by any bot that is looking at you.
Facts
- Address
- 800
- Name
.out1- 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 that has you in its focus eye, or the one that collides with you, receives it in its
.in1; it 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
What you store in .out1 is published for everyone else. When another bot has you in its focus eye (normally .eye5, the one in front; you can change it with .focuseye), the engine copies your .out1 into its .in1. The same happens when you collide with it, even if it isn't looking at you. The other bot only reads it in the next cycle.
The engine never clears it: writing it once is enough, and the value stays until you change it. That's why many bots write it only at the start of their lives. A child, on the other hand, is born with .out1 at 0 and has to write it itself.
Its classic use is a species code, so you don't attack your own kind. That's how Artemis Minimalis, from the Bestiary, does it:
cond
*.robage 5 <
start
555 .out1 store
stopThen, before shooting, it compares *.in1 *.out1 !=. Use a code other than 0, which is what any bot that doesn't use the channel publishes. Keep in mind that the channel is public: any bot that looks at you reads it, whether it's of your species or not.
There are ten identical channels, from .out1 to .out10; see Inputs and outputs.