RPG System


This mod adds a basic RPG system to the game (XP, level-up and skills)

7 months ago
0.16 - 1.1
102K

i Use of mod-gui

5 years ago

You can replace the function with those to use mod-gui

function InitPlayer(player)
    mod_gui.get_button_flow(player).add{name="btcharxp", type="sprite-button", sprite = "entity/player", tooltip = {"panel-title"}, style = "mod_gui_button"}
    SetupPlayer(player,true)
end

function resetAllPlayerStats()
    for _, player in pairs(game.players) do
        if not mod_gui.get_button_flow(player).btcharxp then
            InitPlayer(player)
            else
            SetupPlayer(player,false)
            end
        end
end
5 years ago

Thank you Y.Petremann, I´ll use it.

New response