Author Topic: Noob problem with reproduction.  (Read 3332 times)

Offline Vortex

  • Bot Neophyte
  • *
  • Posts: 5
    • View Profile
Noob problem with reproduction.
« on: November 11, 2009, 12:19:16 PM »
I'm starting playing with the Simplebot.


I want my bot to grow up before reproducing.

Human words: "IF your body is < X AND you energy is > X , transform energy into fat"


Which should be:


cond
*.body 20000 <
*.nrg 20000 > and
5000 .strbody store
stop



But it doesn't seem to work. As I could see, the .body value rises of a small amount every time the bot feeds from attacking a veggie, regardless of gene's conditions.





Edit: Sorry, my fault. I forget to put in the start command
« Last Edit: November 11, 2009, 12:26:46 PM by Vortex »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Noob problem with reproduction.
« Reply #1 on: November 11, 2009, 12:37:12 PM »
Ah, you got it at the end.  Basically your gene was executing correctly, but the store was short circuiting without the start.

With the way that the in place conditions work anymore, I'd recommend basically just doing start at the start of your bot and then not touch cond or stop.