45 lines
788 B
Plaintext
45 lines
788 B
Plaintext
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
object oSelf = OBJECT_SELF;
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
object oTarget;
|
|
|
|
|
|
|
|
// Have the PC perform a sequence of actions.
|
|
AssignCommand(oPC, ClearAllActions());
|
|
|
|
// Cutscene functions:
|
|
BlackScreen(oPC);
|
|
|
|
// Have the PC perform a sequence of actions.
|
|
AssignCommand(oPC, ActionJumpToObject(GetObjectByTag("bsh_6b")));
|
|
|
|
// Cutscene functions:
|
|
FadeFromBlack(oPC);
|
|
|
|
oTarget = GetObjectByTag("bsh_6b");
|
|
|
|
DelayCommand(2.0, AssignCommand(oTarget, ActionStartConversation(oPC, "")));
|
|
|
|
oTarget = GetObjectByTag("X0_TRAP_GR_FI");
|
|
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
DelayCommand(3.5, DestroyObject(oSelf));
|
|
|
|
}
|
|
|