-- Loops through the bonus and challenge levels after beating BCZ3 -- (BCZ3 > FHZ > PTZ > FFZ > TLZ > HHZ > AGZ > ATZ > GFZ1) -- no i have no idea what im doing lol local bossNum = 0 local currentBonus = 30 addHook("BossDeath",function(mobj) bossNum = mobj.info.doomednum if bossNum == 209 then G_SetCustomExitVars(currentBonus) currentBonus = currentBonus + 1 G_ExitLevel() end end) addHook("MapLoad",function(mapnum) if not(currentBonus == 30 or currentBonus > 42) then if currentBonus == 34 then currentBonus = 40 end G_SetCustomExitVars(currentBonus) currentBonus = currentBonus + 1 elseif (currentBonus > 42) then currentBonus = 30 G_SetCustomExitVars(01) end end) -- Made by Lemin