Triggers and Events: Difference between revisions

From SkyTemple
Argonien (talk | contribs)
Added the Page
 
Argonien (talk | contribs)
No edit summary
Line 34: Line 34:


Once everything is selected, press OK and now the Event should be setup to be used in a Trigger.
Once everything is selected, press OK and now the Event should be setup to be used in a Trigger.
</noinclude>{{Navbox
| name = NavScriptTerms
| title = [[Script|Scripts]] and [[Scene|Scenes]]
| bodyclass = hlist
| group1 = Lists
| list1 =
* [[List of Coroutines|Coroutines]]
* [[ExplorerScript Reference]]
* [[List of Opcodes|Opcodes]]
* [[Performance Progress Flags]]
* [[List of Script Variables|Script Variables]]
* [[List of Special Processes|Special Processes]]
* [[List of Script Locations|Script Locations]]
* [[List of Script Menus|Script Menus]]
| group2 = Scene Types
| list2 =
* [[Acting Scene]]
* [[Enter Scene]]
* [[Sub Scene]]
| group3 = Terminology
| list3 =
* [[Actor]]
* [[Object]]
* [[Performer]]
* [[Scene]]
* [[Script]]
* [[Script Engine]]
* [[Script & Map Categories]]
* [[Sector]]
* [[Script Parameter Types]]
* [[Triggers and Events‏‎]]
| group4 = Tools
| list4 =
* [[Scene#Scene Editor|Scene Editor]]
* [[Script Engine Debugger]]
}}<noinclude>
[[Category:Navigation templates|{{PAGENAME}}]]
</noinclude>

Revision as of 22:28, 30 August 2023

This page contains information about Triggers and Events in Overworld free roaming segments.

Triggers Overview


A Trigger is a spriteless object that executes its assigned enter script when the player collides with it during free roaming segments.

You can add trigger in the enter scene by pressing the button with the exclamation mark on it and then pressing anywhere in your scene.


Once added, you can modify the triggers width(W) and height(H) by pressen on it.

This menu is also used to assign an Event to the Trigger.

Events Overview


Events are a way to assign enter scripts to Triggers

The tab to edit the Events can be found on the top left of the enter scene.


There, you can add or delete an event using the "+" and "-" Buttons. Once an Event is newly added, a menu pops up.


In this menu, you can now select an enter script that should be triggered, a Coroutine and two currently unknown factors which can be left blank. Usually, the Coroutine "GETOUT_NORMAL" is used for triggers.

Once everything is selected, press OK and now the Event should be setup to be used in a Trigger.