Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Conditions > SetCondMessageIndex

SetCondMessageIndex

Set a message index for the insidetrigger / outsidetrigger conditions.

Context

This command should be called between calls to AddCondition and CloseCondition.

Syntax

SetCondMessageIndex( message_index );

Game.SetCondMessageIndex( message_index )

  • message_index: The condition message index (just like SetStageMessageIndex) to use for the condition.

Examples

AddCondition("insidetrigger");
	SetCondTrigger("z2phone1");

	// Show MISSION_OBJECTIVE_03 if the player enters the trigger.
	SetCondMessageIndex(3);
CloseCondition();

Game.AddCondition("insidetrigger")
	Game.SetCondTrigger("z2phone1")

	-- Show MISSION_OBJECTIVE_03 if the player enters the trigger.
	Game.SetCondMessageIndex(3)
Game.CloseCondition()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2020 · v4.0