Aller au contenu

Photo

Event when battle is over to Resurrect NPCs


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

#1
Obadiah

Obadiah
  • Members
  • 5 714 messages
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.

#2
Sunjammer

Sunjammer
  • Members
  • 925 messages
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.

Modifié par Sunjammer, 11 août 2011 - 06:46 .


#3
Obadiah

Obadiah
  • Members
  • 5 714 messages
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."

Modifié par Obadiah, 12 août 2011 - 01:29 .