Available since Version 1.27.
Gets the number of gags that the player has completed in the given level.
Syntax
GetLevelNumGagsCompleted( level )Arguments
- level (integer): The level to check.
- Between 1 and 7 or the max
Levelsset by the Custom Stats Totals hack, if it is loaded.
- Between 1 and 7 or the max
Return Values
- (integer | nil): The number of gags the player has completed or
nilif unavailable.
Examples
local NumberOfGagsHomerHasCompleted = GetLevelNumGagsCompleted(1)
if NumberOfGagsHomerHasCompleted > 15 then
-- Do something if Homer has enjoyed 15 or more funny Simpsons moments
end