Skip to main content

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

ParameterDescription
BaseObjectThe Source character (the one whose aggro entry is updated)
NonBaseObjectThe Target character (resolved automatically as the opposite of BaseObject)
S1AggroReason — Aggro.json TableRow Id (e.g. AttackedByOther)
F1AggroValue — positive integer accumulated into the (Source, Target) Reason bucket

Examples

DescriptionBaseObjectCommandS1F1
Self gains 50 AttackedByOther aggro toward TargetSelfAddAggroAttackedByOther50
Target gains 30 ItemStolen aggro toward SelfTargetAddAggroItemStolen30