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
+5 -5
View File
@@ -10,7 +10,7 @@ BattleFrontier_Lounge6_EventScript_264FED:: @ 8264FED
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, sub_807E73C
copyvar VAR_0x8009, VAR_RESULT
msgbox BattleFrontier_Lounge6_Text_26508D, 5
msgbox BattleFrontier_Lounge6_Text_26508D, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_eq BattleFrontier_Lounge6_EventScript_26506B
special sub_81B94B0
@@ -28,24 +28,24 @@ BattleFrontier_Lounge6_EventScript_264FED:: @ 8264FED
special sub_807EA10
special sub_807F0E4
waitstate
msgbox BattleFrontier_Lounge6_Text_265128, 4
msgbox BattleFrontier_Lounge6_Text_265128, MSGBOX_DEFAULT
setflag FLAG_0x09C
release
end
BattleFrontier_Lounge6_EventScript_26506B:: @ 826506B
msgbox BattleFrontier_Lounge6_Text_2651CB, 4
msgbox BattleFrontier_Lounge6_Text_2651CB, MSGBOX_DEFAULT
release
end
BattleFrontier_Lounge6_EventScript_265075:: @ 8265075
bufferspeciesname 0, VAR_0x8009
msgbox BattleFrontier_Lounge6_Text_26518D, 4
msgbox BattleFrontier_Lounge6_Text_26518D, MSGBOX_DEFAULT
release
end
BattleFrontier_Lounge6_EventScript_265083:: @ 8265083
msgbox BattleFrontier_Lounge6_Text_26520E, 4
msgbox BattleFrontier_Lounge6_Text_26520E, MSGBOX_DEFAULT
release
end