Darwinbots Forum
Bots and Simulations => DNA - General => Topic started 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
-
Hmmm... something like this maybe:
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.
-
You might want to flip the *.myid into zero(yours) or one(enemies).
*.myid sgn 1 sub abs
should do the trick.
-
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.
-
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.
-
I was using vers 3.37.4. ok I didn't think I could shoot more than one at time.
-
Viruses won't effect the genome of the victim if the victim has enough slime to stop it.
-
I was using T-Preservans. it doesn't have slime does it?
-
Not that I know of...
T Preservns is way old school.
-
ya I know but I needed something simple to test the virus on. nothing with virus protection or anything like that.
-
Try Animal Minimalis. It's not only simple, it has a long tutorial on the wiki describing *exactly* how it works.
-
alright ill use him and see if it works. thanks for the information