Very useful, thank you very much Leader.
But something strange occurs, I get two different messages but the second appears without readable text, only the formatted constant representing the real message. Here is my code:
Code: Select all
RULE Start ONESHOT
if ((GetElapsedGameTime() > 1.0))
then Start
END_RULE
ACTION Start
SCRIPT WORLD
PrintSubtitle("tx_mydialog_film1");
DoDelayUntilCinematicTime(9.0);
STEP
PrintSubtitle("tx_mydialog_film2");
DoDelayUntilCinematicTime(10.0);
STEP
END_SCRIPT
END_ACTION
Please help...
Added after 2 hours 25 minutes 27 seconds:Problem solved. Here is my code:
Code: Select all
////////////////////////////////////////////////////////////
// TOBRUK.ies
//
// Author: Michael34
// Copy Right: 17 February 2012
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
// All rules are for the WORLD entity.
////////////////////////////////////////////////////////////
RULES FOR WORLD
SCENARIO
name = "Tobruk"
brief = "Lead British forces through Sahara desert to take over the fortified German city of Tobruk."
//victory = "You are victorious!"
//loss = "You have lost."
hints = ""
historicalInfo = "In 1941, the German aided the Italian to keep their possessions in Lybia against the English. Marschall Erwin Rommel occupied Tobruk. A british army, under general Montgomery's command, will try to recover Tobruk."
//description = "DESCRIPTION(This is only for you to read)"
date = "23 Juny 2020"
END_SCENARIO
DEFINITIONS
END_DEFINITIONS
INITIALIZATION
PauseCalendar(false);
PauseWeatherSystem(false);
StartPlayingCinematic("Cinematic");
END_INITIALIZATION
// ////////////////////////////////////////////////////////////
// //RUNS AFTER CINEMATIC, BEFORE OBJECTIVES OPEN
// ////////////////////////////////////////////////////////////
RULE Start ONESHOT
if ((GetElapsedGameTime() > 0.0))
then Start
END_RULE
ACTION Start
SCRIPT WORLD
PrintSubtitle("tx_mydialog_film1");
DoDelayUntilCinematicTime(10.0);
STEP
PrintSubtitle("Will you be able to defeat Rommel forces and take Tobruk before German reinforcements come from Sardinia?");
DoDelayUntilCinematicTime(5.0);
STEP
END_SCRIPT
END_ACTION
////////////////////////////////////////////////////////////
// EOF
////////////////////////////////////////////////////////////