Hi again!
Anyone know if exist a lua command or variable in data stages that give in what data stage the mod is?
Like: stage() -> "data-updates" "2"
I could implemnet it easily but I was wondering if already exist.
Know the actual data stage
Re: Know the actual data stage
Code: Select all
data.lua
data_stage=0
function GetDataStage() return data_stage end
Code: Select all
data-updates.lua
data_stage=1
function GetDataStage() return data_stage end
Code: Select all
data-final-fixes.lua
data_stage=2
function GetDataStage() return data_stage end
It otherwise does not already exist.