Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: kage on December 02, 2006, 07:59:49 PM
-
Would this work for a virus that forces the victim to shoot energy?
cond
*.robage 0 =
start
7 989 store
stop
cond
*.vitmer 0 =
start
3 .mkvirus store
stop
cond
7 *989 !=
start
-2 .shoot store
stop
-
Yes, but you need a gene to fire the virus.
-
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
-
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.
-
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.
Thanks, I will add it to my bot
-
FYI, I think you have a typo.
cond
7 *989 !=
start
-2 .shoot store
stop
Should be
cond
7 989 * !=
start
-2 .shoot store
stop
-
I think both are correct, *989 and 989 * are the same aren't they?
-
I think both are correct, *989 and 989 * are the same aren't they?
Your right. I hadn't noticed the other way in the code. Guess I should try writing a few more bots...
Nevermind....