Execute_GetRewardObjectPool
Description
Randomly selects an object from the specified reward object pool and spawns it into the BaseObject's inventory. On success, also requests a gathering inner thought icon for the base entity.
Note
If the pool pick returns an empty result, nothing is generated.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity whose inventory will receive the randomly picked reward object |
| S1 | Reward object pool ID (RewardObjectPool.json Id) used to randomly select an object |
Examples
| Description | BaseObject | Command | S1 |
|---|---|---|---|
| Randomly reward Self from "Pool_Fruit" | Self | GetRewardObjectPool | Pool_Fruit |
| Give random reward item to Target from herb pool | Target | GetRewardObjectPool | Pool_Herb |
| Pick random reward from gathering pool for Self | Self | GetRewardObjectPool | Pool_Gather |