Anyone know what event resurrects the party after a battle is over? I'm trying to resurrect some NPCs after a battle that are not party of the PCs party. I'd like to add that script to whatever event resurrects the party.
It looks like EVENT_TYPE_COMBAT_END doesn't fire on a creature if it is dead, so I cannot add the resurrection there.
Event when battle is over to Resurrect NPCs
Débuté par
Obadiah
, août 11 2011 06:16
#1
Posté 11 août 2011 - 06:16
#2
Posté 11 août 2011 - 11:56
I'm AFT (away from toolset) right now so I can't confirm but I suspect the module's EVENT_TYPE_GAMEMODE_CHANGE could be involved.
UPDATE: Looking at module_core it would appear that EVENT_TYPE_DELAYED_GM_CHANGE actually handles the ressurections.
UPDATE: Looking at module_core it would appear that EVENT_TYPE_DELAYED_GM_CHANGE actually handles the ressurections.
Modifié par Sunjammer, 11 août 2011 - 06:46 .
#3
Posté 12 août 2011 - 02:39
Yup, that works. Thanks!
Edit: Used EVENT_TYPE_GAMEMODE_CHANGE because EVENT_TYPE_DELAYED_GM_CHANGE gets called in a loop, and is not always called once the game mode switches back to "explore."
Edit: Used EVENT_TYPE_GAMEMODE_CHANGE because EVENT_TYPE_DELAYED_GM_CHANGE gets called in a loop, and is not always called once the game mode switches back to "explore."
Modifié par Obadiah, 12 août 2011 - 01:29 .





Retour en haut






