Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: MrMound on October 04, 2005, 09:50:00 PM

Title: need help
Post by: MrMound on October 04, 2005, 09:50:00 PM
I dont know if anybody has tried this before but I need help on a virus I am trying to design.  I want this virus to make a bot where it cant move,shoot,or use ties.  I am just getting back into db and I am not very familiar with the code so if there is a way to do this I am open to all your suggestions.  :help:

ps I am designing this virus to be put in a robot that will freeze his enemys and then he can go around and eat them without having to chase them
Title: need help
Post by: Numsgil on October 04, 2005, 10:21:09 PM
Hmmm... something like this maybe:

Code: [Select]
start
*.thisgene .mkvirus store
500 .vshoot store '<-- I think this is the proper code, it's been a while

1 *.myid .fixpos mult store
0 *.myid .shoot mult store
0 *.myid .tie mult store
stop

Where your bots all have *.myid equal to 1, and other bots would have this not not equal to 1 (preferably 0).

That would be the basic form.
Title: need help
Post by: Endy on October 06, 2005, 05:27:49 PM
You might want to flip the *.myid into zero(yours) or one(enemies).

*.myid sgn 1 sub abs

should do the trick.
Title: need help
Post by: MrMound on October 07, 2005, 01:08:59 AM
for some reason the virus isn't working.  the bot will shoot it but it won't do anything to any bots.  also I was wondering if it was possible to make  a bot shoot more than one virus at a time? I mean make a bot shoot a the same virus in 360 degrees simultanously.
Title: need help
Post by: Endy on October 07, 2005, 03:50:35 AM
Which vers are you using. I don't think they're working yet in 2.4.

Nums is talking about changing the code so that a bot can do something similar to that.
Title: need help
Post by: MrMound on October 07, 2005, 12:20:18 PM
I was using vers 3.37.4. ok I didn't think I could shoot more than one at time.
Title: need help
Post by: Numsgil on October 07, 2005, 01:05:19 PM
Viruses won't effect the genome of the victim if the victim has enough slime to stop it.
Title: need help
Post by: MrMound on October 07, 2005, 03:42:44 PM
I was using T-Preservans.  it doesn't have slime does it?
Title: need help
Post by: Numsgil on October 07, 2005, 03:45:08 PM
Not that I know of...

T Preservns is way old school.
Title: need help
Post by: MrMound on October 07, 2005, 03:47:43 PM
ya I know but I needed something simple to test the virus on.  nothing with virus protection or anything like that.
Title: need help
Post by: Numsgil on October 07, 2005, 03:51:06 PM
Try Animal Minimalis.  It's not only simple, it has a long tutorial on the wiki describing *exactly* how it works.
Title: need help
Post by: MrMound on October 07, 2005, 03:55:28 PM
alright ill use him and see if it works. thanks for the information