.mkvirus
Copies the gene with that number into a virus and starts incubating it; it is fired later with .vshoot.
Facts
- Address
- 335
- Name
.mkvirus- Kind
- Command: the bot writes it and the engine reads it and usually consumes it
- Group
- DNA and viruses
- Written by
- Your DNA.
- Read by
- The engine, in the movement phase of the same cycle: if there is no virus, it copies that gene into a new virus and charges DNA copy per word. If the bot has chloroplasts, it loses them and makes no virus.
- Cleared
- The engine, only when the virus fires; while it incubates, the cell keeps the gene number.
- Range
- −32000 to 32000; only the number of a gene that exists is valid.
- Mutations
- picked as a store target
Write the number of one of your genes (using the numbering in Genes: cond, start, else and stop) and the engine copies it whole, from its cond to its stop, into a virus that the bot keeps inside. The copy charges energy according to the gene's length (DNA copy per word) and starts the incubation: .vtimer becomes twice the number of words in the gene and drops by 1 per cycle. When it reaches 1, the virus waits for you to write .vshoot.
Details:
- One virus at a time. While one is incubating or waiting, another write to
.mkvirusmakes nothing. - It is not cleared when making, but when firing. Meanwhile the cell keeps the gene number.
- A gene number that does not exist makes nothing.
- No chloroplasts. If the bot has chloroplasts, the attempt does not make the virus and removes all the chloroplasts. Since the command is still written, the virus is made in the next cycle.
' Makes a virus out of its own first gene and fires it when it is ready
cond
*.vtimer 0 =
start
1 .mkvirus store
10 .vshoot store
stopThis gene has 12 words, so the incubation starts at 24. The virus goes out as soon as the count reaches 1, 23 cycles after it was made, because .vshoot was left written waiting for it. After that .vtimer goes back to 0 and the gene makes another. The copied gene is precisely the one that makes viruses, so the victim also starts making them. But note: in the victim, the inserted gene need not be number 1, so what it copies depends on where it landed. The full cycle is in DNA and viruses.