Author Topic: How can a bot tell if another bot is dead?  (Read 3243 times)

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
How can a bot tell if another bot is dead?
« on: January 16, 2014, 11:21:36 PM »
I had a few ideas in mind for a bot, two of which would require this. The first is a parasitic algae that attaches to other bots and feeds through ties until it has gained enough energy to produce chloroplasts, and the other is a corpse feeder. How can a bot tell if another bot is dead, if this is possible?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: How can a bot tell if another bot is dead?
« Reply #1 on: January 17, 2014, 03:01:04 AM »
Dead bots should have 0 nrg.  You'll also want to test the type as well if you don't want them to try feeding on walls :)

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
Re: How can a bot tell if another bot is dead?
« Reply #2 on: January 17, 2014, 09:44:47 PM »
I'm working on the parasitic algae currently.  I kinda need help doing this part. Is there a tutorial on how to make your bot check the stats of another bot?

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
Re: How can a bot tell if another bot is dead?
« Reply #3 on: January 17, 2014, 09:54:55 PM »
Alright, I think I got it.

cond
224 *.in1 !=
.refnrg 0 =
start
-20. up store
stop

The bot stores 224 as a way to recoginize conspecs, so it does not tie to conspecs.

I'm gonna try and figure out how to make it so it deletes chloroplasts before it birthes, and how to set a specific amount of nrg in each offspring.
« Last Edit: January 17, 2014, 09:57:28 PM by NotLegalTender »