Skip to main content

Condition_IsSchoolActivity

Description

Script condition function to check whether the BaseObject character is currently in a specific SchoolActivity schedule slot.

Parameters

ParameterDescription
BaseObjectThe school character whose current activity is checked (Self or Target).
CompareTypeEqual: character is in the activity; NotEqual: character is not in the activity.
S1SchoolActivity table row ID to compare against the current schedule slot.

Notes

  • Returns false if BaseObject cannot resolve to a school member.
  • If multiple schedule slots are active, this condition succeeds when any active slot has the requested SchoolActivity ID.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if Self is in math classSelfIsSchoolActivityEqualSchool_Subject_Math
Check if Target is not in math classTargetIsSchoolActivityNotEqualSchool_Subject_Math