Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Games
  • Radical Entertainment
  • The Simpsons: Hit & Run
  • Scripting
  • Console Commands
  • MFK Commands
  • Mission Initialisation
  • Stages

SetStageMessageIndex

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_00 through MISSION_OBJECTIVE_299 text strings.
    • For locked stage messages, valid values are 0 to 19 and refer to the game's INGAME_MESSAGE_00 through INGAME_MESSAGE_19 text strings.
  • 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.