local function motorwaynight()
	for s in sectors.iterate do
		s.lightlevel = max($*75/100, 0) -- replace x with amount to lower light level
	end
end

addHook("LinedefExecute", motorwaynight, "MBMWDARK")