Execute_ModifyChildrenStatsWithTag
Description
Adds a stat value to all child entities of the BaseObject that have a matching ObjectTag.
Parameters
| Parameter | Description |
|---|
| BaseObject | The parent entity whose children are iterated |
| S1 | Stat name to modify on matching child objects |
| S2 | ObjectTag that child objects must have |
| F1 | Amount of stat to add (negative values are allowed) |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 |
|---|
| Add 10 Hungry to all "FoodItem" children of Self | Self | ModifyChildrenStatsWithTag | Hungry | FoodItem | 10 |
| Subtract 5 Energy from all "Machine" children of Target | Target | ModifyChildrenStatsWithTag | Energy | Machine | -5 |
| Add 1 Cleanliness to all "Furniture" children of Self | Self | ModifyChildrenStatsWithTag | Cleanliness | Furniture | 1 |