Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main function:
- function main()
- -- Load the game:
- while not SystemIsReady() do
- Wait(0)
- end
- -- Main loop:
- while true do
- Wait(0)
- end
- end
- -- STimeCycle functions:
- function F_StartClass()
- if not IsMissionCompleated("3_08") or IsMissionCompleated("3_08_PostDummy") then
- F_RingSchoolBell()
- end
- end
- function F_EndClass()
- if not IsMissionCompleated("3_08") or IsMissionCompleated("3_08_PostDummy") then
- F_RingSchoolBell()
- end
- end
- function F_AttendedClass()
- if not IsMissionCompleated("3_08") or IsMissionCompleated("3_08_PostDummy") then
- SetSkippedClass(false)
- PlayerSetPunishmentPoints(0)
- end
- end
- function F_MissedClass()
- if not IsMissionCompleated("3_08") or IsMissionCompleated("3_08_PostDummy") then
- SetSkippedClass(true)
- StatAddToInt(166)
- end
- end
- function F_UpdateTimeCycle()
- if not IsMissionCompleated("1_B") then
- local day = GetCurrentDay(false)
- if day < 0 or day > 2 then
- SetCurrentDay(0)
- end
- end
- F_UpdateCurfew()
- end
- function F_UpdateCurfew()
- (shared.gCurfewRules or F_CurfewDefaultRules)()
- end
- function F_CurfewDefaultRules()
- local t = ClockGet()
- shared.gCurfew = t >= 23 or t < 7
- end
- function F_Nothing()
- end
- function F_ClassWarning()
- end
- F_StartMorning = F_UpdateTimeCycle
- F_EndMorning = F_UpdateTimeCycle
- F_StartLunch = F_UpdateTimeCycle
- F_EndLunch = F_UpdateTimeCycle
- F_StartAfternoon = F_UpdateTimeCycle
- F_EndAfternoon = F_UpdateTimeCycle
- F_StartEvening = F_UpdateTimeCycle
- F_EndEvening = F_UpdateTimeCycle
- F_StartCurfew_SlightlyTired = F_UpdateTimeCycle
- F_StartCurfew_Tired = F_UpdateTimeCycle
- F_StartCurfew_MoreTired = F_UpdateTimeCycle
- F_StartCurfew_TooTired = F_UpdateTimeCycle
- F_EndCurfew_TooTired = F_UpdateTimeCycle
- F_EndTired = F_UpdateTimeCycle
Advertisement
Add Comment
Please, Sign In to add comment