Execute_AddAggro
Description
Adds aggro from BaseObject (Source) to NonBaseObject (Target) for the given Reason. Routes to B2AggroHelper::AddAggro, which delegates to FB2AggroManager.
S1 is the AggroReason — must be a row Id from Aggro.json (e.g. AttackedByOther, Threatened). F1 is the aggro value, cast to int32. Non-positive values are rejected to keep parity with manager-side AddAggro guards.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The Source character (the one whose aggro entry is updated) |
| NonBaseObject | The Target character (resolved automatically as the opposite of BaseObject) |
| S1 | AggroReason — Aggro.json TableRow Id (e.g. AttackedByOther) |
| F1 | AggroValue — positive integer accumulated into the (Source, Target) Reason bucket |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| Self gains 50 AttackedByOther aggro toward Target | Self | AddAggro | AttackedByOther | 50 |
| Target gains 30 ItemStolen aggro toward Self | Target | AddAggro | ItemStolen | 30 |