PRC8/nwn/nwnprc/trunk/scripts/prc_onrespawn.nss
Jaysyn904 ced388312f Expanded Ruby Knight Vindicator for epic progression.
Expanded Ruby Knight Vindicator for epic progression.
Added EvalPRCFeats() to prc_onrespawn to see if we could auto reapply class abilities to weapons (GTWF) after death.
2025-05-22 21:06:53 -04:00

20 lines
638 B
Plaintext

//::///////////////////////////////////////////////
//:: OnPlayerRespawn eventscript
//:: prc_onrespawn
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "inc_utility"
#include "prc_inc_function"
void main()
{
// Execute scripts hooked to this event for the player triggering it
object oPC = GetLastRespawnButtonPresser();
// clear the death marker if using PW death tracking
if(GetPRCSwitch(PRC_PW_DEATH_TRACKING))
SetPersistantLocalInt(oPC, "persist_dead", FALSE);
ExecuteAllScriptsHookedToEvent(oPC, EVENT_ONPLAYERRESPAWN);
DelayCommand(0.1f, EvalPRCFeats(oPC));
}