Aller au contenu

Photo

Altering Loot Bag behavior


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Miserere

Miserere
  • Members
  • 11 messages
I'm working on a mod where combat is a relatively rare occurrence, and when it does occur it is rarely with the intent to actually kill your opponent. So, creatures that are "killed" by hitting 0 hit points do not permanently die unless the Hero specifically delivers a coup de grace; if the Hero leaves them alone they auto-resurrect after about a minute to simulate coming to after having been spared.

I have the basics of the system working. I have creatures auto-resurrecting after getting killed, and I have them staying dead if the Hero delivers the coup de grace. The problem I am encountering now is that if the creature is completely looted in the interval between the time it has been "killed" and the time that it supposed to auto-resurrect, the creature's corpse is replaced by a pile of bones and appears to no longer even be recognized by the system as a creature, and so when the resurrect event fires nothing happens and the creature remains a pile of bones.

Does anyone know where the code that handles loot bag and corpse behavior resides? I've hunted for it without success. Or, failing that, anyone have any clever ideas for an approach to getting around this problem?

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
It's in placeable_h, I believe. What you may want to try is just making all the creatures have no permanent death, though.

#3
Miserere

Miserere
  • Members
  • 11 messages

Craig Graff wrote...

It's in placeable_h, I believe. What you may want to try is just making all the creatures have no permanent death, though.


Thanks for both points. For some reason I was thinking about "no permanent death" as meaning they couldn't 
"die", and so would never get the death event. But now that I think about it that doesn't sound right (maybe it's "Immortal" that I was thinking of) and your suggestion could really make this much easier all around.

#4
dan_upright

dan_upright
  • Members
  • 39 messages

Miserere wrote...
Thanks for both points. For some reason I was thinking about "no permanent death" as meaning they couldn't 
"die", and so would never get the death event. But now that I think about it that doesn't sound right (maybe it's "Immortal" that I was thinking of) and your suggestion could really make this much easier all around.

I believe it's the "plot" flag that you're thinking of there.