Condition_HasBuffWithTarget
Description
Checks whether the BaseObject remembers a non-expired buff with S1 BuffId toward the NonBaseObject. Uses MemoryComponent's target-specific emotion buff records, including their remaining bonus time. Historical BuffMemories and buffs excluded from emotion grouping do not count.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Owner of the memory (Self or Target); the other entity is the target. |
| CompareType | Equal: the condition matches / NotEqual: it does not match. |
| S1 | Buff.Id to find in the target-specific emotion buff records. |
| S2, F1, F2 | Unused. |
Examples
| Description | BaseObject | Command | S1 | CompareType |
|---|---|---|---|---|
| Check Self's memory toward Target | Self | HasBuffWithTarget | Buff_Happy | Equal |
| Check the reverse direction for no match | Target | HasBuffWithTarget | Buff_Happy | NotEqual |