Skip to main content

Condition_IsSchoolPhase

Description

Checks the current school phase for the BaseObject character using the character's school class schedule and the current game time.

Notes

Returns false if BaseObject cannot resolve to a school member. BeforeSchool and AfterSchool are evaluated only on school days (Monday-Friday, excluding holidays).

Parameters

ParameterDescription
BaseObjectThe school character whose current phase is checked (Self or Target).
CompareTypeEqual: character is in the phase; NotEqual: character is not in the phase.
S1Phase name: Class, LunchBreak, Exam, AfterSchool, or BeforeSchool.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if Self is in classSelfIsSchoolPhaseEqualClass
Check if Target is not in lunchTargetIsSchoolPhaseNotEqualLunchBreak
Check if Self is in an exam phaseSelfIsSchoolPhaseEqualExam