Document seldom-used trigger functionality
Added a define for use in overworld triggers where the goal is to run the provided script in the immediate script context instead of the global one like normal. This is used in triggers in the desert, on faraway island, and a couple other places to do weather effects quickly and on the same frame. Suggestions for a better define name are welcome.
This commit is contained in:
@@ -304,4 +304,10 @@
|
||||
|
||||
#define SPECIAL_VARS_END 0x8015
|
||||
|
||||
// If an overworld trigger uses this pseudo-variable as the trigger check,
|
||||
// then the script will be run using RunScriptImmediately instead of in the
|
||||
// global script context. This means it will run faster, but cannot do any
|
||||
// cutscenes nor call a wait command. Used for weather effects in vanilla.
|
||||
#define VAR_RUN_TRIGGER_IMMEDIATELY 0
|
||||
|
||||
#endif // GUARD_CONSTANTS_VARS_H
|
||||
|
||||
Reference in New Issue
Block a user