Available since Version 1.27.
Checks if the given card has been collected in a level.
Syntax
IsLevelCardCollected( level, card )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
- card (integer): The card to check.
- Between 1 and 7 or the max
CollectorCardsset for the level by the Custom Stats Totals hack, if it is loaded.
- Between 1 and 7 or the max
Return Values
- (boolean | nil): If the player has collected the card or
nilif unavailable.
Examples
local FootballCardCollected = IsLevelCardCollected(1, 1)
if FootballCardCollected then
-- Do something if Homer has collected the football card
end