Author Topic: help plz  (Read 3642 times)

Offline 2122

  • Bot Neophyte
  • *
  • Posts: 16
    • View Profile
help plz
« on: April 08, 2005, 11:26:29 PM »
I'm trying to make a basic tie bot.
It works pretty well but it attacks its own, and sometimes the ties harden before its finnished feeding. Can someone tell me how to make it untie itself after a tie hardens?

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
help plz
« Reply #1 on: April 08, 2005, 11:36:55 PM »
Use .deltie to delete a tie.

Just store the same value into it that you did to make the tie. For example if you had formed the tie with this line..

25 .tie store

then you will need to delete it with..

25 .deltie store

If you don't know the number of the tie (tie phase as we call it) the you can find it with *.tiepres such that this line..

*.tiepres .deltie store

will remove it. The drawback of this technique is that it takes one full cycle longer to find the tie number in this way than if you do it directly with a known number. I designed it that way so that *.tiepres is a weeker defence against tie feeders than if you know the tie phase (number) that they use.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
help plz
« Reply #2 on: April 08, 2005, 11:41:22 PM »
You can use:

cond
*.multi 1 =
*.tienum *.tiepres !=
start
*.tiepres .deltie store
stop

It'd be better to use the share feeding method when the ties harden. Something like:

cond
*.multi 1 =
start
99 .sharenrg store
stop

forces the other bot to give yours 99% of its nrg.

Hope this helps,

Endy B)

P.S.
Darn, I took too long, PY just posted... :rolleyes:

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
help plz
« Reply #3 on: April 09, 2005, 12:01:43 AM »
Sorry Endy.

At least you included complete genes  :D
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D