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:
@@ -36,10 +36,10 @@ Route111_Text_27659D: @ 827659D
|
||||
Route111_EventScript_2765FF:: @ 82765FF
|
||||
lock
|
||||
faceplayer
|
||||
msgbox Route111_Text_2762C9, 5
|
||||
msgbox Route111_Text_2762C9, MSGBOX_YESNO
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route111_EventScript_27661E
|
||||
msgbox Route111_Text_27655C, 4
|
||||
msgbox Route111_Text_27655C, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
@@ -47,7 +47,7 @@ Route111_EventScript_27661E:: @ 827661E
|
||||
giveitem_std ITEM_TM43
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route111_EventScript_276680
|
||||
msgbox Route111_Text_27636E, 4
|
||||
msgbox Route111_Text_27636E, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
setflag FLAG_0x060
|
||||
clearflag FLAG_HIDE_SLATEPORT_CITY_TM_SALESMAN
|
||||
@@ -72,7 +72,7 @@ Route111_EventScript_276675:: @ 8276675
|
||||
return
|
||||
|
||||
Route111_EventScript_276680:: @ 8276680
|
||||
msgbox Route111_Text_27659D, 4
|
||||
msgbox Route111_Text_27659D, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user