32 lines
971 B
Plaintext
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"));
|
|
|
|
}
|
|
|