The Relationship System provides 20 Visual Scripting components for Game Creator 2: 11 Instructions, 5 Conditions, and 4 Events.

Instructions (11)

Modify Relationship

Add or subtract value from a relationship.

Category: Relationship System/Relationships/Modify Relationship
Parameters: Entity A, Entity B, Change Amount, Definition

Set Relationship

Set relationship to specific value.

Category: Relationship System/Relationships/Set Relationship
Parameters: Entity A, Entity B, Value, Definition

Lock/Unlock Relationship

Prevent or allow changes to relationship values.

Use Case: Lock during story moments, unlock afterwards

Add/Remove from Faction

Manage faction membership for characters.

Parameters: Character (GameObject), Faction (ScriptableObject)

Broadcast Faction Relationship

Modify relationship with ALL members of a faction.

Use Case: Attack one guard → all guards hostile

Declare War / Make Alliance

Set faction-to-faction relationships instantly.

War: Sets to minValue | Alliance: Sets to maxValue

Save/Load Relationships

Manual save/load control.

Note: Use RelationshipRemember component for automatic save/load

Conditions (5)

Relationship Value

Compare relationship value with CompareDouble.

Operators: Greater, Less, Equal, GreaterOrEqual, LessOrEqual

Relationship At Level

Check if relationship is at specific level name.

Example: Is Player at "Friendly" with Merchant?

Is Faction Member

Check if character belongs to faction.

Faction Relationship

Check aggregate relationship between character and faction.

Faction to Faction Relationship

Check relationship between two factions.

Use Case: Are Kingdom and Empire at war?

Events (4)

On Relationship Changed

Fires when any relationship value changes.

Variables: rel_oldValue, rel_newValue

On Relationship Level Changed

Fires when relationship crosses level threshold.

Variables: rel_oldLevel, rel_newLevel

On Faction Member Added/Removed

Fires when character joins or leaves faction.