Skip to content

XP and GP penalties not applying

I have a custom module with the default OnPlayerRespawn script "nw_o0_respawn" but no penalties are being applied upon respawn. The lexicon says that "nw_o0_respawn" is the appropriate script to apply these penalties and looking over the script it looks like it should be applying the penalties. What am I missing?

Comments

  • DazDaz Member Posts: 125
    They're only getting applied if the player is respawning in/to the Death Temple of the official campaign.

    If you want it to always apply whenever the PC respawns just add 'ApplyPenalty(oRespawner);' after the first RemoveEffects call, like this:


    void main() { object oRespawner = GetLastRespawnButtonPresser(); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectResurrection(),oRespawner); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oRespawner)), oRespawner); RemoveEffects(oRespawner); ApplyPenalty(oRespawner); //* Return PC to temple
  • philbophilbo Member Posts: 19
    Thank you!
Sign In or Register to comment.