Sets the stage message index to use.
Scope
This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.
Syntax
MFK
Lua
SetStageMessageIndex( index, [unused] );Game.SetStageMessageIndex( index, [unused] )- index: The message index to use.
- For standard mission objective messages, valid values are 0 to 299 and these refer to the game's
MISSION_OBJECTIVE_00throughMISSION_OBJECTIVE_299text strings. - For locked stage messages, valid values are 0 to 19 and refer to the game's
INGAME_MESSAGE_00throughINGAME_MESSAGE_19text strings.
- For standard mission objective messages, valid values are 0 to 299 and these refer to the game's
- unused: Unused parameter.
Examples
MFK
Lua
AddStage();
SetStageMessageIndex(174);
AddObjective("dummy");
CloseObjective();
CloseStage();Game.AddStage()
Game.SetStageMessageIndex(174)
Game.AddObjective("dummy")
Game.CloseObjective()
Game.CloseStage()Notes
To customize text strings in a mod, use the Custom Text hack.