Author Topic: gene does not work  (Read 4108 times)

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
gene does not work
« on: April 26, 2005, 08:47:55 PM »
How come the following gene does not work in my Alga grexa?

Code: [Select]
cond
  *.robage
  4
  <
start
  1000
  .strbody
  store
stop


it shows up fine in DNA console, it is shown as executed, but nothing happens - body remains the same, energy is not spent....
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
gene does not work
« Reply #1 on: April 26, 2005, 08:51:52 PM »
There's a cap on strbody.  That might be it...

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
gene does not work
« Reply #2 on: April 26, 2005, 08:56:25 PM »
Why would it be so low?  The cap on .fdbody is 100, which allows making 1000 energy.  The cap on .strbody should then be around 1000 to allow making 100 of body.  I went as low as 500 and it still does not work.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
gene does not work
« Reply #3 on: April 26, 2005, 09:14:13 PM »
The cap on strbody is 100, same as fdbody.

Actually both of these transfer 100 energy. strbody converts 100 energy to 10 body and .fdbody converts 10 body to 100 energy

Your gene should work though as the cap just reduces any value higher than the limit so 1000 .strbody store should be the same thing as 100 .strbody store.

On the face of it I don't see anything wrong with your gene. Try it with 100 and see what happens.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
gene does not work
« Reply #4 on: April 26, 2005, 09:19:20 PM »
Oh, OK.  So the values always refer to the energy thruput...
I did not really care about the 100 energy disappearing, that's why I did not notice it.  If it works this way, then I don't really need it.  I was trying to bring the Grexa up to 5000 body faster.  Just one more reason to allow starting body points to be set by user.
"Never underestimate the power of stupid things in big numbers" - Serious Sam