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

View File

@@ -6,29 +6,29 @@ MtPyre_6F_EventScript_231D3B:: @ 8231D3B
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_eq MtPyre_6F_EventScript_231D86
msgbox MtPyre_6F_Text_231DFC, 4
msgbox MtPyre_6F_Text_231DFC, MSGBOX_DEFAULT
release
end
MtPyre_6F_EventScript_231D67:: @ 8231D67
special sub_80B4808
waitmovement 0
msgbox MtPyre_6F_Text_231E43, 4
msgbox MtPyre_6F_Text_231E43, MSGBOX_DEFAULT
setvar VAR_0x8004, 108
special SetMatchCallRegisteredFlag
setorcopyvar VAR_0x8000, 108
callstd 8
callstd STD_REGISTER_MATCH_CALL
release
end
MtPyre_6F_EventScript_231D86:: @ 8231D86
trainerbattle 5, TRAINER_VALERIE_1, 0, MtPyre_6F_Text_231EB3, MtPyre_6F_Text_231ECB
msgbox MtPyre_6F_Text_231EE1, 6
msgbox MtPyre_6F_Text_231EE1, MSGBOX_AUTOCLOSE
end
MtPyre_6F_EventScript_231D9D:: @ 8231D9D
trainerbattle 0, TRAINER_CEDRIC, 0, MtPyre_6F_Text_231F11, MtPyre_6F_Text_231F4A
msgbox MtPyre_6F_Text_231F5C, 6
msgbox MtPyre_6F_Text_231F5C, MSGBOX_AUTOCLOSE
end
MtPyre_6F_Text_231DB4: @ 8231DB4