Module:CurrentSyntheticEvent
From NOISZ Wiki
This module is meant to be used with EventCycleTime as an input; that module inputs how many seconds we are into a 10-week event cycle to determine which event is currently running, as it's the same order: Joker -> Grace -> Sera -> Hakuno -> SUmire. This returns the name of whoever's Antiphon Armament Style is currently active in NOISZ STΔRLIVHT/Events/Forge of Antiphon.
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
-- args still needed so this module can receive cyclestart if it's changed
local args = frame:getParent().args
-- This calls the eventCycleTime template, but uses the cyclestart argument received by this module to adjust it
local eventCycleTime = tonumber(frame:expandTemplate({ title = 'eventCycleTime', cyclestart = {cyclestart = args.syntheticcyclestart} }))
local CurrentEvent = {}
if eventCycleTime < 0 then currentEvent = "No event is currently running."
elseif eventCycleTime < 1209600 then currentEvent = "Joker"
elseif eventCycleTime < 2419200 then currentEvent = "Sera Hoshikawa"
elseif eventCycleTime < 3628800 then currentEvent = "Grace Kamenashi"
elseif eventCycleTime < 4838400 then currentEvent = "Hakuno Nekoda"
elseif eventCycleTime < 6048000 then currentEvent = "Sumire Hitori"
else currentEvent = "No event is currently running."
end
return currentEvent
end
return p