Bots and Simulations > DNA - General
Using venom to make a bot shoot nrg
Testlund:
This makes the bot shoot info shots instead:
--- Quote from: Shadowgod2 on September 10, 2014, 10:01:53 AM ----2 *.vloc 2 add sgn -1 mult 1 add mult 314 rnd *.vloc 6 sub sgn 1 add mult add .venval store
--- End quote ---
I wanted a venom shot to cause another bot to behave like if it had this gene:
--- Code: ---start
314 rnd .aimsx store
10 .fdbody store
-2 .shoot store
stop
--- End code ---
But maybe that isn't possible to do.
I had this crazy idea that a venom shooting bot would cause another bot to do the above, and while it's doing it, the venom bot would make small bots close to the infected bot which would then feed it's offspring that way.
Shadowgod2:
--- Quote ---
Code:
start
314 rnd .aimsx store
10 .fdbody store
-2 .shoot store
stop
But maybe that isn't possible to do.
--- End quote ---
actually i think i can manage that, shouldn't be too difficult. i'll work on it tonight.
Shadowgod2:
What are all the features that you want in it?
Testlund:
Once the prey has been infected with venom I want the attacking bot to multiply close to the prey. I think I can do that myself unless you want to. :)
Shadowgod2:
this is what you wanted but only works if continual shooting...
cond
*.venom 100 <
start
100 .strvenom store
stop
cond
*.eyef 50 >
start
-3 .shoot store
50 inc
0 50 *50 4 sub sgn 1 add mult store
.fdbody *50 sgn -1 mult 1 add mult .shoot *50 1 sub abs -1 mult 1 add mult .aimsx *50 2 sub sgn 1 add mult add add .vloc store
10 *50 sgn -1 mult 1 add mult -2 *50 1 sub abs -1 mult 1 add mult 314 rnd *50 2 sub sgn 1 add mult add add .venval store
store
btw your bot doesn't work very well, always turning away, not towards?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version