PDA

View Full Version : Dead Bodies



crb
03-25-2010, 09:09 AM
How to identify a dead body in a room?

I thought

GameObj.pcs.collect { |pc| pc.name }

would provide every part of the PC's indentifier.

It does include the PC's title, but not "The body of..." if they happen to be dead.


Any ideas?

I am trying to identify the existence of a deader, and then count the bodies vs living pcs.

I think this could be really nice to add to go2 or wander, so if you cruise past a body without any help, it stops.

Deathravin
03-25-2010, 09:15 AM
I don't remember the flag, but if you do the one that makes it do:

Also Here: soandso (dead) (prone), soandsosbrother

That will probably let lich pick up on it until an update comes out


I personally like it saying The body of, but it is what it is.

pabstblueribbon
03-25-2010, 09:20 AM
deadguy = GameObj.pcs.find { |pc| pc.status == "dead" }


Maybe? Works for stunned.

crb
03-25-2010, 09:22 AM
if roombrief is on that should work, but if roombrief is off, the status of a dead body is listed as "prone" and they have "the body of" before their name.

Jace Solo
03-25-2010, 09:27 AM
Does anyone else have an issue with two critters in a room...kills both and only loots one?

Is it intended to kill, loot and move on to the next mob or kill both and then loot both?

Tillmen
03-25-2010, 01:54 PM
Character status will be 'dead' with roombrief on or off. prone is ignored when the character is dead.

GameObj.pcs.any? { |pc| pc.status == 'dead' }

BigWorm
03-25-2010, 01:58 PM
Does anyone else have an issue with two critters in a room...kills both and only loots one?

Is it intended to kill, loot and move on to the next mob or kill both and then loot both?

This is a setting in sloot. You want to turn on loot all creatures.

Jace Solo
03-25-2010, 05:13 PM
Cause I'm a retard. Thanks

crb
03-25-2010, 07:36 PM
Ya know, he may have a point. I have that setting turned on in sloot and it doesn't always search all bodies for me.

Flessen
03-26-2010, 09:19 AM
Game problem with the XML stream not reporting that the critter is dead. Tillmen can confirm this. Sometime take a caster out and kill a critter. After you kill the critter look at your room window. You will be surprised to see, that it is sometimes still showing as alive. Even though it is dead, until you loot it that is.