Aller au contenu

Photo

Preventing Game Over


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

#1
Kain Gallant

Kain Gallant
  • Members
  • 8 messages
I'm writing a script where the player can fight against NPC trainees which does not result in permanent death. So far, I am able to have the NPCs resurrect themselves and turn non-hostile after being "killed" by the player. Now I'm having trouble setting up the same for the player party.

Does anyone know what event is fired when the entire party is wiped out?

Basically, what I want is that when the last party member goes down, they all get resurrected, and the game over screen does not appear.

Thanks!

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
If this is for a modifcation to the official campaign, you will most likely have to modify sp_module_set_game_mode.nss. In any case, the event you want to intercept is EVENT_TYPE_SET_GAME_MODE.

#3
bigrickman

bigrickman
  • Members
  • 31 messages
also rather than have your NPCs resurrect and go non-hostile you could just have them surrender by setting their object variable.

#4
Kain Gallant

Kain Gallant
  • Members
  • 8 messages
Geez, that would much simpler wouldn't it? Note to self: check the variables more closely.



Thanks for the tips both of you! I'll go try them out.