local numbered_stages= { Stage_1st= true, Stage_2nd= true, Stage_3rd= true, Stage_4th= true, Stage_5th= true, Stage_6th= true, Stage_Next= true, } function thified_curstage_index(on_eval) local cur_stage= GAMESTATE:GetCurrentStage() local adjust= 1 -- hack: ScreenEvaluation shows the current stage, but it needs to show -- the last stage instead. Adjust the amount. if on_eval then adjust= 0 end if numbered_stages[cur_stage] then return FormatNumberAndSuffix(GAMESTATE:GetCurrentStageIndex() + adjust) else return ToEnumShortString(cur_stage) end end function check_stop_course_early() return course_stopped_by_pause_menu end