Scratch Its

data/scratchits.lua

This file handles all configuration for the scratch it tickets.

These tickets are generated from premade templates, and may not lend themselves well to alterations of the game number values.

Use this file primarily to modify win_chance and max_reward.

Templates

Valid templates are as follows:

  • LuckyRoll

  • LuckyScratch

  • DiamondDollars

  • MegaLotto

local scratchIts = {
    LuckyRoll = {
        template = "LuckyRoll",         -- what template should this game use?
        win_chance = 50,                -- % chance of this ticket generating a winner
        
        games = {
            {
                type = "mini",          -- what game type is this?
                numbers = 6,            -- how many numbers does this game have?
                max_reward = 10000,     -- what is the jackpot reward for this game?
            },
        }
    },

    LuckyScratch = {
        template = "LuckyScratch",      -- what template should this game use?
        win_chance = 50,                -- % chance of this ticket generating a winner

        games = {
            {
                type = "big",           -- what game type is this?
                winning_numbers = 4,    -- how many winning numbers does this game have?    
                numbers = 20,           -- how many numbers does this game have?
                max_reward = 50000,     -- what is the jackpot reward for this game?
            },
        }
    },

    DiamondDollars = {
        template = "DiamondDollars",    -- what template should this game use?
        win_chance = 50,                -- % chance of this ticket generating a winner

        games = {
            {
                type = "column",        -- what game type is this?
                winning_numbers = 4,    -- how many winning numbers does this game have?    
                numbers = 5,            -- how many numbers does this game have?
                max_reward = 50000,     -- what is the jackpot reward for this game?
            },
        }
    },

    MegaLotto = {
        template = "MegaLotto",         -- what template should this game use?
        win_chance = 50,                -- % chance of this ticket generating a winner

        games = {
            {
                type = "big",           -- what game type is this?
                winning_numbers = 4,    -- how many winning numbers does this game have?    
                numbers = 12,           -- how many numbers does this game have?
                max_reward = 50000,     -- what is the jackpot reward for this game?
            },
            {
                type = "mini",          -- what game type is this?
                numbers = 6,            -- how many numbers does this game have?
                max_reward = 10000,     -- what is the jackpot reward for this game?
            },
        }
    },
}

Last updated