summaryrefslogtreecommitdiff
path: root/Improve-the-event-initialization-system.md
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-17 08:37:49 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-17 08:37:49 -0400
commitd8c57580dbc0fc98f1275294a1c0fa115888f3ec (patch)
treed9f309923e9a2c1cac3c6e7b26c150e0c8f7a69a /Improve-the-event-initialization-system.md
parent579b65830759e0dbe1ba4adf2eb7147e3130e7a1 (diff)
return → endcallback
Diffstat (limited to 'Improve-the-event-initialization-system.md')
-rw-r--r--Improve-the-event-initialization-system.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/Improve-the-event-initialization-system.md b/Improve-the-event-initialization-system.md
index a4f0029..4c0225d 100644
--- a/Improve-the-event-initialization-system.md
+++ b/Improve-the-event-initialization-system.md
@@ -173,7 +173,7 @@ Edit [engine/events/std_scripts.asm](../blob/master/engine/events/std_scripts.as
- setevent EVENT_EARLS_ACADEMY_EARL
- ...
- setevent EVENT_INITIALIZED_EVENTS
-- return
+- endcallback
```
And edit [maps/PlayersHouse2F.asm](../blob/master/maps/PlayersHouse2F.asm):
@@ -185,10 +185,10 @@ And edit [maps/PlayersHouse2F.asm](../blob/master/maps/PlayersHouse2F.asm):
- checkevent EVENT_INITIALIZED_EVENTS
- iftrue .SkipInitialization
- jumpstd initializeevents
-- return
+- endcallback
-
-.SkipInitialization:
- return
+ endcallback
```
Now we have a system for initializing the game that's independent of the starting map, easy to find with the rest of the game data, and uses less space.