Execute_AddRandomBuff
Description
Randomly selects one buff from the specified Random Buff Pool and adds it to the BaseObject character. The buff detail is populated with initiator and reason information from the script context. Interaction, Talk, and Action reasons set CreateBuffReason and use the current bag. If no bag is available, InteractionBagId is resolved from the context queue, including Trait rewards.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character that will receive the randomly selected buff (Self or Target) |
| S1 | Random Buff Pool Table ID from RandomBuffPool.json |
Examples
| Description | BaseObject | Command | S1 |
|---|---|---|---|
| Add a random buff from RandomBuffTest pool to self | Self | AddRandomBuff | RandomBuffTest |
| Add a random buff from EventPool to target character | Target | AddRandomBuff | EventBuffPool |
| Add a random seasonal buff to self | Self | AddRandomBuff | SeasonalBuffPool |