Skip to main content

Execute_AddRelationshipFlag

Description

Adds the specified relationship flag from BaseObject to the counterpart. The flag is automatically removed after the LifeTime defined in RelationshipFlag.json. Start scripts (StartScriptIds) defined for the flag are executed when it is added. If another flag in the same Category already exists, it is removed and replaced; its EndScriptIds are executed.

Parameters

ParameterDescription
BaseObjectCharacter who receives the relationship flag (Self or Target)
S1Relationship flag ID to add

Examples

DescriptionBaseObjectCommandS1
Self has a crush on TargetSelfAddRelationshipFlagCrush
Target has a crush on SelfTargetAddRelationshipFlagCrush
Self gives a present to TargetSelfAddRelationshipFlagGavePresent
Target gives a present to SelfTargetAddRelationshipFlagGavePresent