CreateEvent

CreateEvent sends a custom event to the Story Manager. All the parameters except Keyword are optional.

Syntax

CreateEvent KeywordID, LocationID, Ref1, Ref2, Value1, Value2

Examples

CreateEvent MS01Event1    ; Creates an event with only keyword data
CreateEvent MS01Event2 RiverwoodLocation AlvorRef    ; Creates an event with keyword, location, and 1 reference as data


To create an event with just a reference, you still need to pass in a location as a parameter (for example "zBogusLocation") in order for your function call to be valid. The same is true for forms; you need to pass in a location and 2 references (ref 1 and ref 2) before you could pass in a form. So for example:

CreateEvent MS01Event2 zBogusLocation AlvorRef
;Creates an event with keyword, a location, and 1 reference as data.
;zBogusLocation is used to fill in the location parameter.


Papyrus VersionEdit

SendStoryEvent - Keyword