Skip to main content

Execute_ModifyChildrenStatsWithTag

Description

Adds a stat value to all child entities of the BaseObject that have a matching ObjectTag.

Parameters

ParameterDescription
BaseObjectThe parent entity whose children are iterated
S1Stat name to modify on matching child objects
S2ObjectTag that child objects must have
F1Amount of stat to add (negative values are allowed)

Examples

DescriptionBaseObjectCommandS1S2F1
Add 10 Hungry to all "FoodItem" children of SelfSelfModifyChildrenStatsWithTagHungryFoodItem10
Subtract 5 Energy from all "Machine" children of TargetTargetModifyChildrenStatsWithTagEnergyMachine-5
Add 1 Cleanliness to all "Furniture" children of SelfSelfModifyChildrenStatsWithTagCleanlinessFurniture1