Use SetNextScenario() in the scenarios

master
Mark 2018-04-04 21:22:04 +02:00
parent 1682f62df8
commit 75bfef6b06
12 changed files with 20 additions and 20 deletions

View File

@ -114,7 +114,7 @@ func InitializePlayer(int plr)
func OnGoalsFulfilled()
{
SetNextMission("Missions.ocf/DeepSeaMining.ocs");
SetNextScenario("Missions.ocf/DeepSeaMining.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Crash");
return false;

View File

@ -295,7 +295,7 @@ private func FindMainIslandPosition(int xpos, int sep, bool no_struct)
// Goal fulfilled
public func OnGoalsFulfilled()
{
SetNextMission("Missions.ocf/TreasureHunt.ocs");
SetNextScenario("Missions.ocf/TreasureHunt.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Sea");
StartSequence("Outro", 0);

View File

@ -128,7 +128,7 @@ func OnPlaneLoaded(object plane, object oil)
func OnGoalsFulfilled()
{
SetNextMission("Missions.ocf/Crash.ocs");
SetNextScenario("Missions.ocf/Crash.ocs");
GainMissionAccess("S2Raid");
GainScenarioAchievement("Done");
return true; // GameOver done by outro

View File

@ -149,7 +149,7 @@ func OnGoldBarCollected(object collector)
public func OnGoalsFulfilled()
{
SetNextMission("Missions.ocf/DarkCastle.ocs");
SetNextScenario("Missions.ocf/DarkCastle.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Treasure");
UpdateLeagueScores();

View File

@ -42,7 +42,7 @@ protected func Initialize()
time->SetCycleSpeed(0);
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial01.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial01.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -52,7 +52,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial02.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial02.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -36,7 +36,7 @@ protected func Initialize()
InitAnimals();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial02.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial02.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -46,7 +46,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial03.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial03.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -30,7 +30,7 @@ protected func Initialize()
InitAI();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial03.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial03.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -40,7 +40,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial04.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial04.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -30,7 +30,7 @@ protected func Initialize()
InitAI();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial04.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial04.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -40,7 +40,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial05.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial05.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -26,7 +26,7 @@ protected func Initialize()
InitAI();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial05.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial05.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -36,7 +36,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial06.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial06.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -41,7 +41,7 @@ protected func Initialize()
InitAI();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial06.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial06.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -51,7 +51,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial07.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial07.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -38,7 +38,7 @@ protected func Initialize()
GUI_Controller->ShowWealth();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial07.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial07.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -48,7 +48,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
SetNextMission("Tutorials.ocf\\Tutorial08.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial08.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}

View File

@ -31,7 +31,7 @@ protected func Initialize()
InitAI();
// Dialogue options -> repeat round.
SetNextMission("Tutorials.ocf\\Tutorial08.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
SetNextScenario("Tutorials.ocf\\Tutorial08.ocs", "$MsgRepeatRound$", "$MsgRepeatRoundDesc$");
return;
}
@ -41,7 +41,7 @@ protected func OnGoalsFulfilled()
// Achievement: Tutorial completed.
GainScenarioAchievement("TutorialCompleted", 3);
// Dialogue options -> next round.
//SetNextMission("Tutorials.ocf\\Tutorial09.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
//SetNextScenario("Tutorials.ocf\\Tutorial09.ocs", "$MsgNextTutorial$", "$MsgNextTutorialDesc$");
// Normal scenario ending by goal library.
return false;
}