Bots and Simulations > The Gene depository

SUPER VIRUS

(1/1)

Botsareus:
Been playing around with virus and created this little snip:


--- Code: ---'this code here is designed to distroy slime

cond
*.robage 2 mod 0 =
start
4 .tie store
stop

cond
*.robage 2 mod 1 =
start
4 .deltie store
stop

'note make sure the virus gene is at the buttom of the dna, I found out that
'the further down a virus gene is the more power it has vs slime

cond
start
1 .vshoot store
*.thisgene .mkvirus store
stop
end

--- End code ---

It will be nice to code the 'slime obliterator' as part of the virus gene, but my knowledge of SS bots is very limited.

PhiNotPi:
If I wrote this correctly, then I believe that the following code snippet combines all three of those genes into one:


--- Code: ---cond
start
1 .vshoot store
*.thisgene .mkvirus store
4 *.robage 2 mod 137 mult .tie add store
stop
end

--- End code ---

This takes advantage of the fact that .tie is 330 while .deltie is 467, a difference of 137.

Navigation

[0] Message Index

Go to full version