Skip to main content

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. If the script reason is Interaction, Talk, or Action, additional context such as InteractionBagId and CreateBuffReason is also set.

Parameters

ParameterDescription
BaseObjectThe character that will receive the randomly selected buff (Self or Target)
S1Random Buff Pool Table ID from RandomBuffPool.json

Examples

DescriptionBaseObjectCommandS1
Add a random buff from RandomBuffTest pool to selfSelfAddRandomBuffRandomBuffTest
Add a random buff from EventPool to target characterTargetAddRandomBuffEventBuffPool
Add a random seasonal buff to selfSelfAddRandomBuffSeasonalBuffPool