Remade Dungeon Level One: Central
Remade Dungeon Level One: Central. Added Didiamus' creature overrides. Full compile.
This commit is contained in:
21
_module/nss/lockflooddoor.nss
Normal file
21
_module/nss/lockflooddoor.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.6
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this OnEnter
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
if(!GetIsPC(oPC)) return;
|
||||
if(GetLocalInt(oPC,"Trapped")==1) return;
|
||||
object oTarget = GetObjectByTag("RustedDoor");
|
||||
|
||||
if(GetIsOpen(oTarget))
|
||||
{
|
||||
DelayCommand(3.0f,AssignCommand(oTarget, ActionCloseDoor(oTarget)));
|
||||
}
|
||||
DelayCommand(5.0f,SetLocked(oTarget, TRUE));
|
||||
SetLocalInt(oPC,"Trapped",1);
|
||||
}
|
||||
Reference in New Issue
Block a user