60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
#include "cutscene_ch1"
|
|
#include "cutscene_ch2"
|
|
#include "cutscene_ch3"
|
|
#include "cutscene_ch4"
|
|
|
|
|
|
|
|
|
|
|
|
void RunCutscene(object oPC)
|
|
{
|
|
|
|
object oPlayer;
|
|
object oMod = GetModule();
|
|
string sText;
|
|
int oChest;
|
|
int oMode = GetLocalInt(oMod, "gamemode");
|
|
int nInt = GetLocalInt(oMod, "cutscene_on");
|
|
int nInt2 = GetLocalInt(oMod, "cutscene_flag");
|
|
int id1 = GetLocalInt(oMod, "d1");
|
|
int id2 = GetLocalInt(oMod, "d2");
|
|
int id2a = GetLocalInt(oMod, "d2a");
|
|
int id3 = GetLocalInt(oMod, "d3");
|
|
int id4 = GetLocalInt(oMod, "d4");
|
|
int id5 = GetLocalInt(oMod, "d5");
|
|
int iSFDuel = GetLocalInt(oMod, "duel_on");
|
|
int iFinalBattle = GetLocalInt(oPC, "final_on");
|
|
AssignCommand(oPC, ClearAllActions());
|
|
SetLocked(GetObjectByTag("arena_gate"), TRUE);
|
|
SetLocalInt(oPC, "gate_locked", 1);
|
|
|
|
if (oMode==1)
|
|
{
|
|
if (id1==1){sText = "Adept";oChest = 7;}
|
|
if (id2==1){sText = "Slayer";oChest = 1;}
|
|
if (id2a==1){sText = "Doom Lord";oChest = 3;}
|
|
if (id3==1){sText = "Dark Master";oChest = 4;}
|
|
if (id4==1){sText = "Soul Reaver";oChest = 2;}
|
|
if (id5==1){sText = "Demon Prince";oChest = 10;}
|
|
}
|
|
else
|
|
{
|
|
if (id1==1){sText = "Apprentice"; oChest = 7;}
|
|
if (id2==1){sText = "Warrior";oChest = 1;}
|
|
if (id2a==1){sText = "Warrior Lord";oChest = 3;}
|
|
if (id3==1){sText = "Grand Master";oChest = 4;}
|
|
if (id4==1){sText = "Hero";oChest = 5;}
|
|
if (id5==1){sText = "God";oChest = 9;}
|
|
}
|
|
|
|
if (iSFDuel==1){oChest = 8;}
|
|
if ((oChest==9)||(oChest==10))
|
|
{DelayCommand(6.0, CutScene2(oChest, sText, oPC));}
|
|
else if (oChest==8){CutScene3(oChest, oPC);}
|
|
else if (iFinalBattle==1){DelayCommand(6.0, CutScene4(oPC));return;}
|
|
else {DelayCommand(6.0, CutScene(oChest, sText, oPC));}
|
|
|
|
}
|
|
//void main () {}
|