OnStoryScript - Quest

From Creation Kit
Jump to: navigation, search

Member of: Quest Script

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

Syntax

Event OnStoryScript(Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, \
  int aiValue1, int aiValue2)

Parameters

  • akKeyword: The Keyword sent by the script
  • akLocation: The Location sent by the script
  • akRef1: The first ObjectReference sent by the script
  • akRef2: The second ObjectReference sent by the script
  • aiValue1: The first value sent by the script
  • aiValue2: The second value sent by the script

Examples

Event OnStoryScript(Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, \
  int aiValue1, int aiValue2)
  Debug.Trace("This quest was started by a script story event")
endEvent

Notes

  • aiValue1 and aiValue2 cannot be negative. Even if the event was sent with negative parameters, they are received as 0.

See Also