PoA_PRC8/module/nss/rearm_trap3.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

40 lines
888 B
Plaintext

//Script Name: rearm_trap3
//////////////////////////////////////////
//Created By: Genisys (Guile)
//Created On: 8/19/08
/////////////////////////////////////////
/*
This is my auto resetting script to
re-activate a trap on a door only.
You should always make the trap not
recoverable, so the PC will not be able
to take the trap!
*/
////////////////////////////////////////
//Main Script
void main()
{
//Next time the trap gets a lot harder!
int nDC = d20(1) + 85; //86 - 105!
object oTarget;
oTarget = OBJECT_SELF;
//After 3 minutes reset the trap..
DelayCommand(180.0, SetTrapActive(oTarget, TRUE));
DelayCommand(180.0, SetTrapDetectable(oTarget, TRUE));
DelayCommand(180.0, SetTrapOneShot(oTarget, FALSE));
DelayCommand(180.0, SetTrapRecoverable(oTarget, FALSE));
DelayCommand(180.0, SetTrapDetectDC(oTarget, nDC));
DelayCommand(180.0, SetTrapDisarmDC(oTarget, nDC));
}