Lankhmar_PRC8/_module/nss/entr_eel_chpt2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

32 lines
971 B
Plaintext

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"));
}