I was trying to write a new bot and came across a few questions that I couldn't find an answer for.
What value does a divide by zero return? I saw in DB 3 it will yield a 0 is this true for 2.4x also?
True and False can be used to control whether parts of genes execute, can conditional operators be used to control them?
For example I have a gene (Which I doubt works, as this computer cant really run DB I cant test it) that asses if the bot is being hurt to much and should run away:
'See If I Am Being Hurt Too Badly
cond
*.wellness 0 <=
start
628 rnd 314 add .aimsx store
*.maxvel .up store
*.welltime 4 mod 0 =
0 .wellness store
stop
Finally,
*.refnrg *.refkills div *.nrg *.kills div div 1 >= 'Less than one is bad/dangerous
Would there be a better option for checking if the bot in eye5 is worth attacking? This one would have problems depending on what a divide by zero returns (veggies) and for low energy bots and a couple of other problems, such as never finishing off bots.
Edit: Also how many cycles does poison last for, is it the same as venom?
Sorry for all of the questions