Bots and Simulations > DNA - General

Energy Shooting Virus

(1/2) > >>

kage:
Would this work for a virus that forces the victim to shoot energy?


--- Code: ---cond
 *.robage 0 =
start
 7 989 store
stop

cond
 *.vitmer 0 =
start
 3 .mkvirus store
stop

cond
 7 *989 !=
start
 -2 .shoot store
stop
--- End code ---

Numsgil:
Yes, but you need a gene to fire the virus.

kage:
Sorry, but what would the gene be, I guess I never put it in to any of my bots and that would explain why they aren't firing their virus

Light:
Something such as

cond
  *.eye5 20 >
  *.vtimer 1 =
start
  40 .vshoot store
stop

would fire your virus when it sees something, the number stored in .vshoot determines how far the virus travels, the higher the number the greater distance but the more energy used you would also want to add some cospec recognition so you dont shoot at your own bots.

kage:

--- Quote from: Light ---Something such as

cond
  *.eye5 20 >
  *.vtimer 1 =
start
  40 .vshoot store
stop

would fire your virus when it sees something, the number stored in .vshoot determines how far the virus travels, the higher the number the greater distance but the more energy used you would also want to add some cospec recognition so you dont shoot at your own bots.
--- End quote ---

Thanks, I will add it to my bot

Navigation

[0] Message Index

[#] Next page

Go to full version