Welcome To Darwinbots > Newbie

Sex repro

<< < (2/3) > >>

jknilinux:

--- Quote from: bacillus ---How about using DNA scripts? "if robot DNA contains .repro", kill robot". this may of course play havoc with veggies.
--- End quote ---

Is there a tutorial anywhere on how to write DNA scripts? I checked the wiki.

Also, does anyone have a veggy that uses sex repro? Or, is there a relatively easy way to make alga mini reproduce that way that I'm not aware of? Sorry if this is an obvious question...

Numsgil:
I don't think there's anything on scripts.  They might not even work anymore.

Moonfisher:
Try something like this maybe...

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
start
*.aim 40 add .setaim store

*.robage 0 =
300 .eye5width store

*.eyef 0 =
10 .up store
not
*.refnrg 6000 > and
*.refxpos *.refypos angle .setaim store
*.refvelup 5 add .up store
*.refveldx .dx store
-8 .shoot store

*.fertilized 0 >
*.nrg 6000 > and
33 .sexrepro store
stop
end

jknilinux:
Um, Never mind. I decided to look at the DNA script settings area, and it's pretty self-explanatory. Sorry about that. Thanks for the veggy, too!

jknilinux:

--- Quote from: Moonfisher ---Try something like this maybe...

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
start
*.aim 40 add .setaim store

*.robage 0 =
300 .eye5width store

*.eyef 0 =
10 .up store
not
*.refnrg 6000 > and
*.refxpos *.refypos angle .setaim store
*.refvelup 5 add .up store
*.refveldx .dx store
-8 .shoot store

*.fertilized 0 >
*.nrg 6000 > and
33 .sexrepro store
stop
end
--- End quote ---

Could you tell me how to change it so it doesn't use .up and .dx? I cant use the movement genes in my current sim. thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version