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
+8 -8
View File
@@ -8,39 +8,39 @@ FortreeCity_House2_EventScript_2177CB:: @ 82177CB
goto_eq FortreeCity_House2_EventScript_21786E
checkflag FLAG_0x076
call_if 0, FortreeCity_House2_EventScript_217862
msgbox FortreeCity_House2_Text_2178D6, 4
msgbox FortreeCity_House2_Text_2178D6, MSGBOX_DEFAULT
multichoice 21, 8, 54, 1
switch VAR_RESULT
case 1, FortreeCity_House2_EventScript_217878
msgbox FortreeCity_House2_Text_21796A, 4
msgbox FortreeCity_House2_Text_21796A, MSGBOX_DEFAULT
multichoice 21, 8, 54, 1
switch VAR_RESULT
case 1, FortreeCity_House2_EventScript_217878
msgbox FortreeCity_House2_Text_2179C9, 4
msgbox FortreeCity_House2_Text_2179C9, MSGBOX_DEFAULT
multichoice 21, 8, 54, 1
switch VAR_RESULT
case 0, FortreeCity_House2_EventScript_217878
msgbox FortreeCity_House2_Text_217A28, 4
msgbox FortreeCity_House2_Text_217A28, MSGBOX_DEFAULT
giveitem_std ITEM_TM10
compare VAR_RESULT, 0
goto_eq FortreeCity_House2_EventScript_272054
setflag FLAG_0x108
msgbox FortreeCity_House2_Text_217A91, 4
msgbox FortreeCity_House2_Text_217A91, MSGBOX_DEFAULT
release
end
FortreeCity_House2_EventScript_217862:: @ 8217862
msgbox FortreeCity_House2_Text_217882, 4
msgbox FortreeCity_House2_Text_217882, MSGBOX_DEFAULT
setflag FLAG_0x076
return
FortreeCity_House2_EventScript_21786E:: @ 821786E
msgbox FortreeCity_House2_Text_217A91, 4
msgbox FortreeCity_House2_Text_217A91, MSGBOX_DEFAULT
release
end
FortreeCity_House2_EventScript_217878:: @ 8217878
msgbox FortreeCity_House2_Text_217AC7, 4
msgbox FortreeCity_House2_Text_217AC7, MSGBOX_DEFAULT
release
end