Page 1 of 1

Know the actual data stage

Posted: Wed Nov 13, 2019 1:03 am
by Linver
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.

Re: Know the actual data stage

Posted: Wed Nov 13, 2019 1:27 am
by PyroFire

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.