Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: darkfrost1802 on June 23, 2017, 08:16:48 PM

Title: It doesnt work.
Post by: darkfrost1802 on June 23, 2017, 08:16:48 PM
So I was making MyFirstBot(its name) and I'm trying to make Animal_Minimalis eat is food(plants) into extinction, so I added this line of code

*.totalbots .totalmyspecies sub > 20

Into gene 2's conditions, any help?
Title: Re: It doesnt work.
Post by: Numsgil on June 24, 2017, 12:13:18 PM
If you're doing what I think you are it should be

*.totalbots *.totalmyspecies sub > 20

The asterisk is important or else you're just pointing to a memory location and not the value in the memory location.

If it still doesn't work it's possible those sysvars are broken.  Use the bot memory inspection tool and see if the variables in those sysvar locations look right.
Title: Re: It doesnt work.
Post by: darkfrost1802 on June 24, 2017, 07:08:46 PM
Thanks I got it working!