Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Testlund on September 15, 2014, 07:33:14 AM
-
I'm not clear on how ".fertilized" and ".sexrepro" works together. I suppose this is wrong:
cond
*.fertilized ? Uuh
start
50 .sexrepro store
2 .gender store
stop
I understand that ".fertilized" is a sort of timer. Does that mean ".sexrepro" is executed automatically when the timer reaches 0?
-
Looks like it does. :happy:
Soon after a bot has been hit by a -8 shot it will reproduce automatically if it has this gene:
start
50 .sexrepro store
2 .gender store
stop
No "cond" required.
-
it is a timer but you have to sexrepro before it reaches 0