AOC_PRC8/_module/nss/on_heart_sf.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

37 lines
761 B
Plaintext

#include "scenestart"
void main()
{
int nInt;
int nInt2;
object oMod = GetModule();
object oPlayer;
object oPC = GetFirstPC();
nInt2 = GetLocalInt(oMod, "cutscene_flag");
//FloatingTextStringOnCreature(IntToString(nInt2), oPC);
if (nInt2!=1)
{
oPlayer = GetFirstPC();
while (GetIsObjectValid(oPlayer))
{
if (GetLocalInt(oPlayer, "cutscene_on")==1)
{
//FloatingTextStringOnCreature("gate 1", oPC);
AssignCommand(oPlayer, ClearAllActions());
SetLocalInt(oMod, "cutscene_flag", 1);
RunCutscene(oPlayer);
return;
}
oPlayer = GetNextPC();
}
}
else
{
ExecuteScript("nw_c2_default1", OBJECT_SELF);
}
}