Bots and Simulations > DNA - General

need help

(1/3) > >>

MrMound:
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

Numsgil:
Hmmm... something like this maybe:


--- Code: ---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
--- End code ---

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.

Endy:
You might want to flip the *.myid into zero(yours) or one(enemies).

*.myid sgn 1 sub abs

should do the trick.

MrMound:
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.

Endy:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version