Bots and Simulations > DNA - General
All For One
spork22:
OH, was it meant to be put into a frankenstien bot? If so, that explains why they don't do much on their own. What I would like is something like Bubbles, but with an unlimited range and only one target at a time. But who knows, maybe we'll get something even better. ;)
spike43884:
--- Quote from: spork22 on January 08, 2015, 07:26:21 PM ---OH, was it meant to be put into a frankenstien bot? If so, that explains why they don't do much on their own. What I would like is something like Bubbles, but with an unlimited range and only one target at a time. But who knows, maybe we'll get something even better. ;)
--- End quote ---
Well. Frankenstien bot is now the official term for that spork ;) (Also if you want to learn any DNA bits Im happy to try to help?) but this is just mildly incomplete dna, I need shadowgod or someone to make the algorithm for it. Apart from 1 freevariable it is complete (you need to put def follow [VALUE] at the start of the DNA). It does -pretty much- do the stuff you mentioned.
It has got unlimited range, to any bots tied to it (of its species). It also can't (easily) be hijacked by other species ties or .memloc because it uses multiple .touts and .tins (4 so far). It also targets only 1 target (to bots tied together) and if the one who sent the signal dies, they can avenge it. The only possible problem is if bots travelling to help are attacked. So if you want to actually make this successful, it needs a gene to say 'HAVE I BEEN SHOT? IF SO, IGNORE SIGNAL IN TINS!'
spork22:
Ah. Ok :D
Shadowgod2:
ok so i found an issues
dist is not a sysvar but "*.refxpos *.refypos dist" will get what you need.
much of this is unnecessary i can do it in 3 outs
refxpos
refypos
attack id
no crazy algorithms necessary.
Shadowgod2:
here is the system you need to have an all for one kind of bot
i just have the aiming to said enemy and the spread of the signal to other bots on where to go. now it's up to you to hunting and feeding as well as the sight configuration.
--- Code: ---def attackid 50
def attack 51
cond
*.refeye *.myeye !=
start
1 .attack store
999 rnd 1 add .attackid *.attackid sgn 1 sub abs mult store
*.refxpos .out1 store
*.refypos .out2 store
*.attackid .out3 store
stop
cond
*.refeye *.myeye =
*.in3 0 !=
start
*.in1 .out1 store
*.in2 .out2 atore
*.in3 .out3 atore
*.in1 *.in2 angle .setaim store
stop
cond
*.refeye *.myeye =
*.in1 *.in2 dist 50 <=
*.in3 0 = or and
*.eye5 0 = or
start
0 .attack store
0 .out1 store
0 .out2 store
0 .out3 store
0 .attackid store
stop
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version