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
| Parameter | Description |
|---|
| BaseObject | The character whose criminal behavior count will be checked |
| CompareType | Equal, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual, InRange, OutRange |
| S1 | Crime ID to check. If omitted (None), all criminal behaviors are counted. |
| F1 | Behavior count to compare against |
| F2 | Upper bound for range comparisons (InRange, OutRange) |
Examples
| Description | BaseObject | Command | CompareType | S1 | F1 | F2 |
|---|
| Check if Self's theft behavior count is 3 or more | Self | CriminalBehaviorCount | GreaterOrEqual | Theft | 3 | |
| Check if Self has no criminal behavior at all | Self | CriminalBehaviorCount | Equal | | 0 | |
| Check if Self's total crime count is between 1 and 5 | Self | CriminalBehaviorCount | InRange | | 1 | 5 |