Exemple #1
0
func Script215()
{
  if (!Contained(GetHiRank(0))) { goto(215); return; }
  TutorialMessage("$TxtVerygoodYouhavecompl$");
  FindObject(SCRG)->Fulfill();
  SetNextMission("Tutorial.c4f\\Tutorial02.c4s", "$BtnNextTutorial$", "$BtnNextTutorialDesc$");
}
Exemple #2
0
func Script212()
{
	if (!Contained(valley_clnk)) return(goto(212));
	if (!Contained(catapult_clnk)) return(goto(212));
	if (!Contained(constructor_clnk)) return(goto(212));
	TutorialMessage("$TxtVeryGood$");
	FindObject(SCRG)->Fulfill();
	SetNextMission("Tutorial.c4f\\Tutorial06.c4s", "$BtnNextTutorial$", "$BtnNextTutorialDesc$");
}
Exemple #3
0
func Script84()
{
  if (FindObject(HUT3)->GetBase()) return(goto(84));
  Sound("Applause");
  TutorialMessage("$TxtExcellent$");
  FindObject(SCRG)->Fulfill();
  SetNextMission("Tutorial.c4f\\Tutorial03.c4s", "$BtnNextTutorial$", "$BtnNextTutorialDesc$");
  return(1);
}
void C4Application::OpenGame(const char * scenario)
{
	if (AppState == C4AS_Startup)
	{
		if (scenario) Game.SetScenarioFilename(scenario);
		AppState = C4AS_StartGame;
	}
	else
	{
		SetNextMission(scenario);
		AppState = C4AS_AfterGame;
	}

}
Exemple #5
0
func Initialize()
{
	// Always have some music
	Music("Frontend", 1);
	MusicLevel(30);
	// Create lens flare
	if (!ObjectCount(LENS)) CreateObject(LENS, 400, 100);
	// Fix vines (are not correctly saved in this Objects.txt)
	var pVine;
	for (pVine in FindObjects(Find_ID(VINE)))
		pVine->SetPosition(pVine->GetX(), pVine->GetY() - 35);
	// Create goal
	if (!ObjectCount(SCRG)) CreateObject(SCRG);
	// Evaluation dialog options
  SetNextMission("Tutorial.c4f\\Tutorial05.c4s", "$BtnRepeatRound$", "$BtnRepeatRoundDesc$");
}
Exemple #6
0
func Initialize()
{
	// Always have some music
	Music("Frontend", 1);
	MusicLevel(30);
	// Create lens flare
	CreateObject(LENS, 70, 50, NO_OWNER);
	// Place hut
	CreateConstruction(HUT2,580,180,NO_OWNER,100,1);
	// Create goal
	CreateObject(SCRG, 50,50, NO_OWNER);
	// Start script
	ScriptGo(true);
	// Evaluation dialog options
  SetNextMission("Tutorial.c4f\\Tutorial01.c4s", "$BtnRepeatRound$", "$BtnRepeatRoundDesc$");
	return true;
}
Exemple #7
0
func Initialize()
{
	// Always have some music
	Music("Frontend", 1);
	MusicLevel(30);
	// Create lens flare
	CreateObject(LENS, 100, 100, NO_OWNER);
	// Fix vines (wrong offset when saved in Objects.txt for the first time)
	var pVine;
	for (pVine in FindObjects(Find_ID(VINE)))
		pVine->SetPosition(pVine->GetX(), pVine->GetY() - 60);
	// Create flag-checker effect
	AddEffect("CheckForFlag", 0, 1, 10);
	// Create goal
	CreateObject(SCRG);
	// Start the script
	ScriptGo(true);
	// Evaluation dialog options
  SetNextMission("Tutorial.c4f\\Tutorial02.c4s", "$BtnRepeatRound$", "$BtnRepeatRoundDesc$");
}