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!
Preventing Game Over
Débuté par
Kain Gallant
, janv. 02 2010 08:40
#1
Posté 02 janvier 2010 - 08:40
#2
Posté 02 janvier 2010 - 11:36
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
Posté 04 janvier 2010 - 10:38
also rather than have your NPCs resurrect and go non-hostile you could just have them surrender by setting their object variable.
#4
Posté 05 janvier 2010 - 12:13
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.
Thanks for the tips both of you! I'll go try them out.





Retour en haut






