PRC8/nwn/nwnprc/trunk/scripts/prgt_trap_disa.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

24 lines
698 B
Plaintext

#include "prc_alterations"
#include "prgt_inc"
void main()
{
object oTarget = GetLastDisarmed();
object oTrap = OBJECT_SELF;
struct trap tTrap = GetLocalTrap(oTrap, "TrapSettings");
if(tTrap.nRespawnSeconds)
{
struct trap tNewTrap = tTrap;
if(tTrap.nRespawnRandomCR)
{
tNewTrap = CreateRandomTrap(tTrap.nRespawnRandomCR);
tNewTrap.nRespawnSeconds = tTrap.nRespawnSeconds;
}
AssignCommand(GetArea(oTrap),
DelayCommand(IntToFloat(tTrap.nRespawnSeconds),
PRGT_VoidCreateTrapAtLocation(GetLocation(oTrap), tNewTrap)));
}
DoTrapXP(OBJECT_SELF, oTarget, TRAP_EVENT_DISARMED);
}