Initial commit
Initial commit [v9.7]
This commit is contained in:
31
_module/nss/entr_eel_chpt2.nss
Normal file
31
_module/nss/entr_eel_chpt2.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
|
||||
// Get the creature who triggered this event.
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// Only fire for (real) PCs.
|
||||
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
|
||||
return;
|
||||
|
||||
// Only fire once.
|
||||
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
||||
return;
|
||||
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
// Have the PC perform a sequence of actions.
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 1.0, 6.0));
|
||||
|
||||
AssignCommand(GetObjectByTag("Shilliana2"), ActionSpeakString("Finally, you're awake! After all that drinking, someone took your loot while you were passed out!"));
|
||||
|
||||
oTarget = GetObjectByTag("eeldoor");
|
||||
SetLocked(oTarget, FALSE);
|
||||
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||||
|
||||
// Destroy an object (not fully effective until this script ends).
|
||||
DestroyObject(GetObjectByTag("towerofangarngit"));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user