.shootval
The adjustment for the next shot: the power or range of a −1 or −6, how much you give with a −2, or the value that a memory shot writes.
Facts
- Address
- 8
- Name
.shootval- Kind
- Command: the bot writes it and the engine reads it and usually consumes it
- Group
- Shots
- Written by
- Your DNA.
- Read by
- The engine, in the actions phase, if
.shootis not 0: it adjusts that shot. - Cleared
- The engine, in the actions phase, whenever
.shootis not 0, even if the shot doesn't go out. If you don't shoot, it stays set. - Range
- −32000 to 32000.
- Mutations
- picked as a store target
.shootval doesn't fire anything by itself: it goes along with .shoot and changes the shot that goes out in that cycle. What it changes depends on the type:
- −1 and −6 (steal energy or body). A positive value multiplies the power and a negative one, the range. But only from 5 on: between −4 and 4 it changes nothing. Above that the scale is logarithmic: 8 doubles the power, 16 triples it. And you pay for it: the shot costs the value times the cost of a shot. If you don't have enough energy, the engine scales it down to what you can pay.
- −2 (give energy). How much energy you send, unsigned and never more than you have; if you write 0, 1% of yours.
- −3 and −4 (venom and waste). How much you send, unsigned and never more than you have; with 0, a twentieth of what you have.
- Positive (memory shot). The value that is written to the other bot's memory.
' I write 77 to address 50 of the one in front of me
cond
*.eye5 0 >
start
77 .shootval store
50 .shoot store
stopIn the test, cell 50 of the target became 77 two cycles later.