Condition_HasObjectGeneralEffect
Description
Checks whether the BaseObject has the specified general effect type (S1) at the specified quality grade (S2). If S2 is not provided, only checks whether the effect exists (grade is not None). Supported effect types: Durability, Efficiency, Performance.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The game object to check for general effects (Self or Target) |
| CompareType | Comparison operator: Equal, NotEqual |
| S1 | General effect type: Durability, Efficiency, or Performance (EB1ObjectGeneralEffectType) |
| S2 | (Optional) Quality grade to compare against. EB1Quality for Durability/Efficiency, EB1ObjectPerformanceQuality for Performance |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Check if Target has any Durability general effect | Target | HasObjectGeneralEffect | Equal | Durability | |
| Check if Self has any Efficiency general effect | Self | HasObjectGeneralEffect | Equal | Efficiency | |
| Check if Target Durability effect is Good grade | Target | HasObjectGeneralEffect | Equal | Durability | Good |
| Check if Target has no Performance general effect | Target | HasObjectGeneralEffect | NotEqual | Performance |
Back to Command FinderSearch and filter all 491 Script Condition documents