adds constants, cleans up callstd and msgbox code

* adds some constants for standard script names and messagebox types
* replaces some callstd calls with msgbox calls where equivalent
* replaces msgbox and callstd calls using raw digits with versions that use the constants
This commit is contained in:
Melody
2018-12-02 03:37:46 -05:00
parent 145047d438
commit c557ac61ae
354 changed files with 4538 additions and 4531 deletions
+6 -6
View File
@@ -10,7 +10,7 @@ RustboroCity_House1_EventScript_21593F:: @ 821593F
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, sub_807E73C
copyvar VAR_0x8009, VAR_RESULT
msgbox RustboroCity_House1_Text_2159E8, 5
msgbox RustboroCity_House1_Text_2159E8, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_eq RustboroCity_House1_EventScript_2159BD
special sub_81B94B0
@@ -28,29 +28,29 @@ RustboroCity_House1_EventScript_21593F:: @ 821593F
special sub_807EA10
special sub_807F0E4
waitstate
msgbox RustboroCity_House1_Text_215A77, 4
msgbox RustboroCity_House1_Text_215A77, MSGBOX_DEFAULT
setflag FLAG_0x099
release
end
RustboroCity_House1_EventScript_2159BD:: @ 82159BD
msgbox RustboroCity_House1_Text_215ACE, 4
msgbox RustboroCity_House1_Text_215ACE, MSGBOX_DEFAULT
release
end
RustboroCity_House1_EventScript_2159C7:: @ 82159C7
bufferspeciesname 0, VAR_0x8009
msgbox RustboroCity_House1_Text_215A9D, 4
msgbox RustboroCity_House1_Text_215A9D, MSGBOX_DEFAULT
release
end
RustboroCity_House1_EventScript_2159D5:: @ 82159D5
msgbox RustboroCity_House1_Text_215B17, 4
msgbox RustboroCity_House1_Text_215B17, MSGBOX_DEFAULT
release
end
RustboroCity_House1_EventScript_2159DF:: @ 82159DF
msgbox RustboroCity_House1_Text_215B57, 2
msgbox RustboroCity_House1_Text_215B57, MSGBOX_NPC
end
RustboroCity_House1_Text_2159E8: @ 82159E8