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

SetStagePayout

Set an amount of coins to give the player when they complete the stage.

Context

This command should be called between calls to AddStage and CloseStage.

Syntax

SetStagePayout( coins );

Game.SetStagePayout( coins ) 

  • coins: The amount of coins to give the player upon completing the stage.

Examples

AddStage();
	// Free 25 coins when you finish this stage.
	SetStagePayout(25);
		
	AddObjective("dummy");
	CloseObjective();
CloseStage();

Game.AddStage() 
	-- Free 25 coins when you finish this stage.
	Game.SetStagePayout(25)

	Game.AddObjective("dummy")
	Game.CloseObjective()
Game.CloseStage()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2020 · v4.0