Bots and Simulations > DNA - General

A lazy turner(turning gene)

(1/3) > >>

Welwordion:
Ok I wanted to create a gene that lets a twobot Mb turn 180 degree when he sees his partner. But strangely he does so only once after birth.


--- Code: ---cond
*.numties 0 =
*.robage 1 >
start
5 .repro store
.function inc
stop

cond
*.robage 1 =
*.refeye *.myeye =
start
.tie inc
stop

cond
*.eye5 0 >
*.refxpos *.trefxpos =
*.refypos *.trefypos =
start
618 .aimdx store
stop

end
--- End code ---

Numsgil:
I think it has to do with the tienum resetting (tienum let's you designate which tie to use).

Which version are you running?  Try running the bot in the latest 2.4 and see if it works.  I think Eric fixed it so tienum doesn't reset anymore.

Welwordion:
I am running the latest version.

Numsgil:
Try adding something like:

cond
*.tienum 1 !=
start
1 .tienum store
stop

to your bot and tell me if that fixes it.

Welwordion:
nope no effect

Navigation

[0] Message Index

[#] Next page

Go to full version