Condition_CompareSkillSum
Description
Compares the BaseObject's combined level of two skills against the Target's combined level of the same skills. The difference (BaseObject sum - Target sum) is compared against F1. A missing skill counts as level 0. Returns false when there is no Target.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The Character whose skill sum is the left-hand side. Must not be Target. |
| CompareType | Comparison operator applied to (BaseObject sum - Target sum [op] F1). |
| S1 | First Skill.Id. |
| S2 | Second Skill.Id. |
| F1 | Difference to compare against. F2 is the upper bound for range comparisons. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 | F1 |
|---|---|---|---|---|---|---|
| Check if Self's dance+performance is 20+ above Target's | Self | CompareSkillSum | GreaterOrEqual | Dance | Performance | 20 |
| Check if Self's dance+performance is below Target's | Self | CompareSkillSum | Less | Dance | Performance | 0 |