31 lines
745 B
Plaintext
31 lines
745 B
Plaintext
void main()
|
|
{
|
|
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "bloodredgem")== OBJECT_INVALID)
|
|
return;
|
|
|
|
|
|
//object oPC = GetEnteringObject();
|
|
object oshlbwin = GetObjectByTag("shlbwin");
|
|
int nHP = GetCurrentHitPoints(oshlbwin);
|
|
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(oshlbwin));
|
|
DelayCommand(3.0, SetCutsceneMode(oPC, FALSE));
|
|
DelayCommand(3.5, AssignCommand(oshlbwin, ActionStartConversation(oPC, "")));
|
|
}
|
|
DestroyObject(OBJECT_SELF);
|
|
}
|
|
|