Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Testlund on September 15, 2014, 07:33:14 AM

Title: .sexrepro
Post 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?
Title: Re: .sexrepro
Post by: Testlund on September 15, 2014, 09:04:16 AM
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.
Title: Re: .sexrepro
Post by: Shadowgod2 on September 15, 2014, 09:35:50 AM
it is a timer but you have to sexrepro before it reaches 0