Background for Skyrim SE
Member of the Quest script
eventOnStoryScript(KeywordakKeyword, LocationakLocation, ObjectReferenceakRef1, ObjectReferenceakRef2, intaiValue1, intaiValue2)

Description

Wiki Description

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


Caveats

CK Wiki - Notes

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

Parameters

KeywordakKeyword

CK Wiki Description

The Keyword sent by the script

LocationakLocation

CK Wiki Description

The Location sent by the script

ObjectReferenceakRef1

CK Wiki Description

The first ObjectReference sent by the script

ObjectReferenceakRef2

CK Wiki Description

The second ObjectReference sent by the script

intaiValue1

CK Wiki Description

The first value sent by the script

intaiValue2

CK Wiki Description

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

Auto-Generated Example

Scriptname MyCoolScript extends Quest

event OnStoryScript(Keyword akKeyword, Location akLocation, ObjectReference akRef1, ObjectReference akRef2, int aiValue1, int aiValue2)
    Debug.trace("Event received - OnStoryScript: akKeyword = " + akKeyword + " akLocation = " + akLocation + " akRef1 = " + akRef1 + " akRef2 = " + akRef2 + " aiValue1 = " + aiValue1 + " aiValue2 = " + aiValue2)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.