43 lines
890 B
Plaintext
43 lines
890 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "paintedshell")== 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 osas21 = GetObjectByTag("sas21");
|
||
|
int nHP = GetCurrentHitPoints(osas21);
|
||
|
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(osas21));
|
||
|
DelayCommand(6.0, SetCutsceneMode(oPC, FALSE));
|
||
|
DelayCommand(6.5, AssignCommand(osas21, ActionStartConversation(oPC, "sas21")));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|