Skip to main content

Condition_CriminalBehaviorCount

Description

Checks the criminal behavior count for the BaseObject character. If a Crime ID is specified in S1, checks the count for that specific crime. If S1 is omitted (None), checks the total count across all criminal behaviors.

Parameters

ParameterDescription
BaseObjectThe character whose criminal behavior count will be checked
CompareTypeEqual, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual, InRange, OutRange
S1Crime ID to check. If omitted (None), all criminal behaviors are counted.
F1Behavior count to compare against
F2Upper bound for range comparisons (InRange, OutRange)

Examples

DescriptionBaseObjectCommandCompareTypeS1F1F2
Check if Self's theft behavior count is 3 or moreSelfCriminalBehaviorCountGreaterOrEqualTheft3
Check if Self has no criminal behavior at allSelfCriminalBehaviorCountEqual0
Check if Self's total crime count is between 1 and 5SelfCriminalBehaviorCountInRange15