43 lines
891 B
Plaintext
43 lines
891 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "bgarricksnote")== OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||
|
|
||
|
if (DoOnce==TRUE) return;
|
||
|
|
||
|
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||
|
|
||
|
|
||
|
//object oPC = GetEnteringObject();
|
||
|
object osas19 = GetObjectByTag("sas19");
|
||
|
int nHP = GetCurrentHitPoints(osas19);
|
||
|
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(osas19));
|
||
|
DelayCommand(3.0, SetCutsceneMode(oPC, FALSE));
|
||
|
DelayCommand(3.5, AssignCommand(osas19, ActionStartConversation(oPC, "sas19")));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|