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
| Parameter | Description |
|---|---|
| BaseObject | The school character whose current phase is checked (Self or Target). |
| CompareType | Equal: character is in the phase; NotEqual: character is not in the phase. |
| S1 | Phase name: Class, LunchBreak, Exam, AfterSchool, or BeforeSchool. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if Self is in class | Self | IsSchoolPhase | Equal | Class |
| Check if Target is not in lunch | Target | IsSchoolPhase | NotEqual | LunchBreak |
| Check if Self is in an exam phase | Self | IsSchoolPhase | Equal | Exam |
Back to Command FinderSearch and filter all 491 Script Condition documents