Bots and Simulations > Bot Tavern

Multibot Vegetable

<< < (14/15) > >>

Boris of Quirm:
I have tried the following gene:-


--- Code: ---'Gene 9 - Grow away from the plant
'
'At birth increase the length of the tie
'between me and my parent

cond
.robage 10 <
start
500 .tielen1 store
stop

'End of Gene
--- End code ---

But I am still not seeing the tie grow at all.
I have tested this in 2.37.6 and 2.4.A but no joy in either.

Am I still doing something wrong?

PurpleYouko:
Tie controls such as tielen and tieang DO NOT work until the tie hardens at age 20

Energy and information transfer are possible prior to that but angle and length controls require stiff ties.

Boris of Quirm:
Modified the code to the following:-


--- Code: ---'Gene 9 - Grow away from the plant
'
'When I am old enough increase the length of the tie
'between me and my parent

cond
*.robage 25 =
start
500 .tielen1 store
stop

'End of Gene
--- End code ---

And it still isn't working.  The value for .tielen1 is being set to 500 but the tie isn't growing on the screen.

Am I still missing something?  Is there a way I can check to see if the tie has hardened before I try to increase it's length?

PurpleYouko:
Works perfectly for me  :blink:

I just added the gene that you just posted, to the end of the genome of your plant and the tie lengths set perfectly.

Set them at 200 and they stay short.

Set them at 900 and they get real long.

You sure you put the gene before the END statement?

Boris of Quirm:
:redface:   Just realised I had the plant set as blocked, hence why it wasn't moving apart.

*Bows head in shame and stands in the corner*

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version