OnStoryRelationshipChange - Quest

Revision as of 16:26, 17 November 2011 by imported>Henning
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Quest Script

Event called when this quest is started via a relationship change story manager event.

SyntaxEdit

Event OnStoryRelationshipChange(ObjectReference akActor1, ObjectReference akActor2, int aiOldRelationship, \
  int aiNewRelationship)

ParametersEdit

  • 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

ExamplesEdit

Event OnStoryRelationshipChange(ObjectReference akActor1, ObjectReference akActor2, int aiOldRelationship, \
  int aiNewRelationship)
  if aiOldRelationship < 0 && aiNewRelationship >= 0
    Debug.Trace(akActor1 + " no longer hates " + akActor2)
  endIf
endEvent

See AlsoEdit