DarwinBotsManual
Open the app EspañolES

.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 .shoot is not 0: it adjusts that shot.
Cleared
The engine, in the actions phase, whenever .shoot is 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:

' I write 77 to address 50 of the one in front of me
cond
*.eye5 0 >
start
77 .shootval store
50 .shoot store
stop

In the test, cell 50 of the target became 77 two cycles later.