summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeekrhino <challenert@gmail.com>2021-12-27 00:21:11 -0600
committermeekrhino <challenert@gmail.com>2021-12-27 00:21:11 -0600
commit34e90282ffee8ef6ddf6708a0e6ce9f0aa73af6b (patch)
treea869ff51546981f8408ab23449f8ca403455b274
parent016a78d76f10a17904f5cca274b75ecbc6f3153f (diff)
Updated Trigger Map Scripts By Flag (markdown)
-rw-r--r--Trigger-Map-Scripts-By-Flag.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Trigger-Map-Scripts-By-Flag.md b/Trigger-Map-Scripts-By-Flag.md
index 07c09f1..2bb86a2 100644
--- a/Trigger-Map-Scripts-By-Flag.md
+++ b/Trigger-Map-Scripts-By-Flag.md
@@ -1,6 +1,6 @@
### Triggering Map Scripts With Flags
-In vanilla emerald, mapscripts are conditionally triggered based on the value of a provided variable. This small change allows mapscripts to be triggered based on the value of a flag instead. This is useful if you have an event/cutscene that you need to activate only once.
+In vanilla emerald, mapscripts are conditionally triggered based on the value of a provided variable. This small change allows mapscripts to be triggered based on the value of a flag instead. This is useful if you have an event/cutscene that you need to activate only once. This also works just fine with poryscript.
To add this feature, you will modify the function `MapHeaderCheckScriptTable` in the file `src\script.c`. Simply replace that entire function with the following:
@@ -62,7 +62,7 @@ MyMap_MapScripts_MAP_SCRIPT_ON_FRAME_TABLE:
.2byte 0
```
-It's that easy! This also works just fine with poryscript.
+It's that easy!
## Caveats ##
Due to the values associated with them, this will NOT work for "Special" flags, i.e. those beginning at `SPECIAL_FLAGS_START`. Those overlap with the VAR indices, and thus will be read as though they are VARs instead of flags.