Lankhmar_PRC8/_module/nss/approach_keyston.nss

21 lines
594 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oPC = GetEnteringObject();
object oKeystone = GetObjectByTag("keystone");
int nHP = GetCurrentHitPoints(oKeystone);
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(oKeystone));
DelayCommand(5.0, SetCutsceneMode(oPC, FALSE));
DelayCommand(5.5, AssignCommand(oKeystone, ActionStartConversation(oPC, "")));
}
else return;
}