Skip to content

How do you disable the player respawn button in a module?

Hi, I was wondering how to disable the player respawn button (meaning death is permanent) in a module, or in specific areas of a module. (As is the case in the official campaigns). Thanks.

Comments

  • ProlericProleric Member Posts: 1,269
    https://nwnlexicon.com/index.php?title=PopUpDeathGUIPanel

    In the module OnPlayerDeath script, tweak the PopUpDeathGUIPanel parameters.

    You can make it conditional - for example, by setting a local variable on the player when respawn is forbidden, clearing it when respawn is allowed.
  • BishopBBishopB Member Posts: 8
    Proleric wrote: »
    https://nwnlexicon.com/index.php?title=PopUpDeathGUIPanel

    In the module OnPlayerDeath script, tweak the PopUpDeathGUIPanel parameters.

    You can make it conditional - for example, by setting a local variable on the player when respawn is forbidden, clearing it when respawn is allowed.

    Thanks, I'll give that a try.
  • BishopBBishopB Member Posts: 8
    Proleric wrote: »
    https://nwnlexicon.com/index.php?title=PopUpDeathGUIPanel

    In the module OnPlayerDeath script, tweak the PopUpDeathGUIPanel parameters.

    You can make it conditional - for example, by setting a local variable on the player when respawn is forbidden, clearing it when respawn is allowed.
    Also, in some modules there is an item such as a "Stone of Recall" which lets the player teleport back to a healing temple and return to where they last recalled from.

    I know there's a way to disable this item from working in certain areas, so if you could let me know how to do it, I'd appreciate it.
  • ProlericProleric Member Posts: 1,269
    There is a tutorial on the Stone of Recall.

    One way of disabling it in selected areas is to set a local integer there, then test for it in the module Item Activation code mentioned in the tutorial. There may be a built-in solution, too - I don't know.
  • MelkiorMelkior Member Posts: 179
    I'm late to the party but, in some modules the death GUI panel is never even used. Instead, the player character is auto-resurrected back at a particular starting point after death. The only "penalty" in that case is having to rest, re-cast any buff spells and then battle your way through the dungeon again. Variations are entirely possible, such as simulating the death saves from 5e or allowing the PC to lie there for a certain number of seconds in case a party member gets the chance to heal them, before doing an auto-resurrect back to the starting point.
Sign In or Register to comment.