Added new arguments to HOOK_ENCOUNTER

* to determine which encounter is being loaded, not just map ID.

Updated the document and header files.
This commit is contained in:
NovaRain
2024-05-31 15:11:40 +08:00
parent 73ac86d493
commit ca42b01193
6 changed files with 48 additions and 5 deletions
+2
View File
@@ -813,6 +813,8 @@ You can override the map for loading or the encounter.
int arg0 - event type: 0 - when a random encounter occurs, 1 - when the player enters from the world map
int arg1 - the map ID that the encounter will load (see MAPS.h or Maps.txt)
int arg2 - 1 when the encounter occurs is a special encounter, 0 otherwise
int arg3 - encounter table number, or -1 if not an encounter
int arg4 - encounter index in the table, or -1 if not an encounter
int ret0 - overrides the map ID, or pass -1 for event type 0 to cancel the encounter and continue traveling
int ret1 - pass 1 to cancel the encounter and load the specified map from the ret0 (only for event type 0)