Battledale_PRC8/_module/nss/jw_plotdoor_open.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

22 lines
427 B
Plaintext

#include "NW_I0_GENERIC"
#include "jw_privates_inc"
void main()
{
object oLastOpener = GetLastOpenedBy();
if (GetIsPC(oLastOpener))
{
SetTarget(oLastOpener);
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
}
object oObject=OBJECT_SELF;
DelayCommand(15.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
DelayCommand(15.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
}