Skip to main content

Execute_ReplaceTrait

Description

Replaces one trait with another on the BaseObject entity. Removes the old trait (S2) first, then adds the new trait (S1).

Parameters

ParameterDescription
BaseObjectThe entity whose trait will be replaced (Self or Target)
S1New Trait ID to add (defined in Trait.json)
S2Old Trait ID to remove (defined in Trait.json)

Examples

DescriptionBaseObjectCommandS1S2
Replace Loyal trait with Flirty on SelfSelfReplaceTraitFlirtyLoyal
Replace Perfectionist trait with Clumsy on TargetTargetReplaceTraitClumsyPerfectionist