forked from Mirrors/openclonk
Use SetNextScenario() in the scenarios
parent
1682f62df8
commit
75bfef6b06
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue