OnStoryRelationshipChange - Quest
Jump to navigation
Jump to search
Member of: Quest Script
Event called when this quest is started via a relationship change story manager event.
Syntax[edit | edit source]
Event OnStoryRelationshipChange(ObjectReference akActor1, ObjectReference akActor2, int aiOldRelationship, \
int aiNewRelationship)
Parameters[edit | edit source]
- akActor1: The first ObjectReference whose relationship changed.
- akActor2: The second ObjectReference whose relationship changed.
- aiOldRelationship: The old relationship value.
- aiNewRelationship: The new relationship value.
The relationship values will be one of the following:
- 4: Lover
- 3: Ally
- 2: Confidant
- 1: Friend
- 0: Acquaintance
- -1: Rival
- -2: Foe
- -3: Enemy
- -4: Archnemesis
Examples[edit | edit source]
Event OnStoryRelationshipChange(ObjectReference akActor1, ObjectReference akActor2, int aiOldRelationship, \
int aiNewRelationship)
if aiOldRelationship < 0 && aiNewRelationship >= 0
Debug.Trace(akActor1 + " no longer hates " + akActor2)
endIf
endEvent