Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
== Event Trigger Examples == |
== Event Trigger Examples == |
||
Event Triggers can be set up as '''AreaChange''' events, like this: |
Event Triggers can be set up as '''AreaChange''' events, like this: |
||
+ | <pre> |
||
− | <syntaxhighlight lang="json"> |
||
{ |
{ |
||
"eventName": "LandingEventInside", |
"eventName": "LandingEventInside", |
||
Line 9: | Line 9: | ||
"eventFileLocation": "Events", |
"eventFileLocation": "Events", |
||
"inArea": "InsideAdministrationBuilding" |
"inArea": "InsideAdministrationBuilding" |
||
− | }, |
+ | },</pre> |
− | </syntaxhighlight> |
||
That example triggers the area named '''LandingEventInside''' whenever the player enters the administration building. |
That example triggers the area named '''LandingEventInside''' whenever the player enters the administration building. |
||
+ | <pre> |
||
− | <syntaxhighlight lang="json"> |
||
{ |
{ |
||
"eventName": "LandingEventWithHailey", |
"eventName": "LandingEventWithHailey", |
||
Line 21: | Line 20: | ||
"eventFileLocation": "Events", |
"eventFileLocation": "Events", |
||
"inArea": "InsideAdministrationBuilding" |
"inArea": "InsideAdministrationBuilding" |
||
− | }, |
+ | },</pre> |
− | </syntaxhighlight> |
||
The above example is a dialog based trigger. It triggers when talking to Hailey, and in this example it requires you to be inside the administration building. If you want to create a followup event, you can use a '''requiredFlag''' like this: |
The above example is a dialog based trigger. It triggers when talking to Hailey, and in this example it requires you to be inside the administration building. If you want to create a followup event, you can use a '''requiredFlag''' like this: |
||
+ | <pre> |
||
− | <syntaxhighlight lang="json"> |
||
{ |
{ |
||
"eventName": "LandingEventFollowup", |
"eventName": "LandingEventFollowup", |
||
Line 32: | Line 30: | ||
"eventFileLocation": "Events", |
"eventFileLocation": "Events", |
||
"requiredFlag": "LandingEventWithHailey" |
"requiredFlag": "LandingEventWithHailey" |
||
− | }, |
+ | },</pre> |
− | </syntaxhighlight> |
||
In this above example, the LandingEventFollowup will trigger, but it requires you to have seen the LandingEventWithHailey event. Note that you can set flags in dialog with the "SetFlag" command, or whenever the event with that name is triggered. This is a simple followup event, and you can make a chain of them. |
In this above example, the LandingEventFollowup will trigger, but it requires you to have seen the LandingEventWithHailey event. Note that you can set flags in dialog with the "SetFlag" command, or whenever the event with that name is triggered. This is a simple followup event, and you can make a chain of them. |