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:
@@ -2,7 +2,7 @@ RustboroCity_Flat2_2F_MapScripts:: @ 8215FD7
|
||||
.byte 0
|
||||
|
||||
RustboroCity_Flat2_2F_EventScript_215FD8:: @ 8215FD8
|
||||
msgbox RustboroCity_Flat2_2F_Text_21601A, 2
|
||||
msgbox RustboroCity_Flat2_2F_Text_21601A, MSGBOX_NPC
|
||||
end
|
||||
|
||||
RustboroCity_Flat2_2F_EventScript_215FE1:: @ 8215FE1
|
||||
@@ -10,7 +10,7 @@ RustboroCity_Flat2_2F_EventScript_215FE1:: @ 8215FE1
|
||||
faceplayer
|
||||
checkflag FLAG_0x0D5
|
||||
goto_eq RustboroCity_Flat2_2F_EventScript_216010
|
||||
msgbox RustboroCity_Flat2_2F_Text_21605A, 4
|
||||
msgbox RustboroCity_Flat2_2F_Text_21605A, MSGBOX_DEFAULT
|
||||
giveitem_std ITEM_PREMIER_BALL
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq RustboroCity_Flat2_2F_EventScript_272054
|
||||
@@ -19,7 +19,7 @@ RustboroCity_Flat2_2F_EventScript_215FE1:: @ 8215FE1
|
||||
end
|
||||
|
||||
RustboroCity_Flat2_2F_EventScript_216010:: @ 8216010
|
||||
msgbox RustboroCity_Flat2_2F_Text_2160BD, 4
|
||||
msgbox RustboroCity_Flat2_2F_Text_2160BD, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user