.vshoot
Fires the incubated virus: the number is the strength of the shot, which determines how far it reaches and how much it costs.
Facts
- Address
- 338
- Name
.vshoot- Kind
- Command: the bot writes it and the engine reads it and usually consumes it
- Group
- DNA and viruses
- Written by
- Your DNA. A negative value is taken as 1.
- Read by
- The engine, in the movement phase: if it is not 0 and
.vtimeris 1, it fires the virus with that strength. - Cleared
- The engine, on firing. If the virus is not ready, the command stays written until it is.
- Range
- −32000 to 32000: the strength of the shot.
- Mutations
- picked as a store target
Write a number other than 0 and, if the virus is ready (.vtimer at 1), it goes out in that same cycle. If it is still incubating, the command stays written and the virus goes out as soon as it finishes: there is no need to wait with a condition. After the shot the engine sets .vshoot, .mkvirus and .vtimer to 0.
The number is the strength. The higher it is, the more energy the virus carries and the farther it reaches (much farther than an ordinary shot), and the more it costs: the bot pays the strength plus the cost of a shot (Shoot). A negative value is taken as 1.
Two things you can't control:
- The direction is random. The virus doesn't go where the bot points: neither
.aimnor.aimshoothas any influence. - The outcome. If it touches a bot, the gene enters at a random place in its DNA. Corpses don't get infected, and a thick enough layer of slime (
.slime) stops the virus and is used up in the attempt.
' Makes a virus with gene 2 and leaves the shot requested in advance
cond
*.vtimer 0 =
start
2 .mkvirus store
30 .vshoot store
stop
cond
start
10 .up store
stopThe complete cycle is in DNA and viruses and in Viruses.