shithub: pokecrystal

Download patch

ref: 8e359978d63d88574b3f0fa3c040c570089b4c52
parent: 1dad1b48d46cd5610eba5d778c8774f13d46e8d7
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Feb 16 11:06:11 EST 2019

passtoengine -> autoinput

--- a/docs/event_commands.md
+++ b/docs/event_commands.md
@@ -279,7 +279,7 @@
 
 ## `$88`: `specialsound`
 
-## `$89`: <code>passtoengine <i>data_pointer</i></code>
+## `$89`: <code>autoinput <i>input_pointer</i></code>
 
 ## `$8A`: <code>newloadmap <i>which_method</i></code>
 
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -202,7 +202,7 @@
 	dw Script_waitsfx                    ; 86
 	dw Script_warpsound                  ; 87
 	dw Script_specialsound               ; 88
-	dw Script_passtoengine               ; 89
+	dw Script_autoinput                  ; 89
 	dw Script_newloadmap                 ; 8a
 	dw Script_pause                      ; 8b
 	dw Script_deactivatefacing           ; 8c
@@ -2653,9 +2653,9 @@
 	call CloseText
 	ret
 
-Script_passtoengine:
+Script_autoinput:
 ; script command 0x89
-; parameters: data_pointer
+; parameters: input_pointer
 
 	call GetScriptByte
 	push af
--- a/macros/legacy.asm
+++ b/macros/legacy.asm
@@ -53,6 +53,7 @@
 displaylocation   EQUS "landmarktotext"
 givepokeitem      EQUS "givepokemail"
 checkpokeitem     EQUS "checkpokemail"
+passtoengine      EQUS "autoinput"
 
 ; macros/scripts/maps.asm
 
--- a/macros/scripts/events.asm
+++ b/macros/scripts/events.asm
@@ -857,10 +857,11 @@
 	db specialsound_command
 ENDM
 
-	enum passtoengine_command ; $89
-passtoengine: MACRO
-	db passtoengine_command
-	db \1 ; data_pointer
+	enum autoinput_command ; $89
+autoinput: MACRO
+	db autoinput_command
+	db BANK(\1) ; input_bank
+	dw \1 ; input_pointer
 ENDM
 
 	enum newloadmap_command ; $8a