So I'm working on a scenario where if the player hits certain targets between 9-6 he gets penalized, where as outside of working hours he gains VPs as normal.
I figure I need to do something like this for the time
Code: Select all
local now = ScenEdit_CurrentTime()
local elapsed = now - timeFromLastTriggered
if elapsed > 3600*14 then
-- Past 6, 14 hours later than game start
approved_time = true
end
But what I can't figure out is how to get the point scoring event not to triger if it's within that time frame (and instead trigger a penalty for civ casualties) any help is appreciated, thanks!