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?
Altering Loot Bag behavior
Débuté par
Miserere
, nov. 24 2009 03:13
#1
Posté 24 novembre 2009 - 03:13
#2
Posté 24 novembre 2009 - 04:12
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
Posté 24 novembre 2009 - 05:17
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
Posté 24 novembre 2009 - 06:51
I believe it's the "plot" flag that you're thinking of there.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.





Retour en haut






