Author Topic: Better code for corpse feeders  (Read 3454 times)

Offline NotLegalTender

  • Bot Builder
  • **
  • Posts: 85
    • View Profile
Better code for corpse feeders
« on: June 08, 2013, 03:18:10 PM »
We need codes to allow a bot to determine if something is alive or dead, which would allow for better corpse feeders.

.corpse can tell if it is alive or dead.

.corpsefind, combined with eyes, can allow a bot to find corpses to feed off.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Better code for corpse feeders
« Reply #1 on: June 08, 2013, 03:39:42 PM »
I don't think you can eat corpses. I think all you can do is chill next to one and get its energy.
« Last Edit: June 08, 2013, 03:44:34 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Better code for corpse feeders
« Reply #2 on: June 08, 2013, 03:52:14 PM »
Never mind, apparently you can -6 corpses.

Numsgil, is there any way to figure out if robot is a corpse in the current system?

If no, my personal opinion is to disable -6 on corpses. But it will be up to you guys.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Better code for corpse feeders
« Reply #3 on: June 08, 2013, 06:34:31 PM »
Quote
Numsgil, is there any way to figure out if robot is a corpse in the current system?

I guess the answer is no.

How about I modify '.reftype' to return a -1 when it sees a corpse?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: Better code for corpse feeders
« Reply #4 on: June 08, 2013, 06:48:19 PM »
Gotta give me more than three hours to respond...

Corpses have 0 nrg.  They're meant to be feedable by -6 shots, the idea being that you can create a scavenger bot that just feeds off the corpses of others.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Better code for corpse feeders
« Reply #5 on: June 08, 2013, 07:21:38 PM »
You know what, and going to add .reftype -1 for corpses with 2.45.04.



The three hour rule, I like that. That gives me three hours to edit my posts (as you know I do that often)  :)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Better code for corpse feeders
« Reply #6 on: June 22, 2013, 10:29:23 AM »
(Numsgil, I really did think that the 3 hour rule was a good idea, i.e. I was not being Sarcastic)



problem resolved

You can use  *.refnrg to figure out if a robot is a corpse



I think corpse find is over kill.
« Last Edit: June 22, 2013, 12:39:40 PM by Botsareus »