21 lines
594 B
Plaintext
21 lines
594 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
object oMathanny = GetObjectByTag("Mathanny");
|
|
int nHP = GetCurrentHitPoints(oMathanny);
|
|
if (!GetIsPC(oPC)) return;
|
|
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
|
if (DoOnce==TRUE) return;
|
|
if (nHP >= 1)
|
|
{
|
|
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
|
AssignCommand(oPC, ClearAllActions(TRUE));
|
|
SetCutsceneMode(oPC, TRUE);
|
|
AssignCommand(oPC, ActionMoveToObject(oMathanny));
|
|
DelayCommand(3.0, SetCutsceneMode(oPC, FALSE));
|
|
DelayCommand(3.5, AssignCommand(oMathanny, ActionStartConversation(oPC, "")));
|
|
}
|
|
else return;
|
|
}
|
|
|