improve goto_if macros

This commit is contained in:
Melody
2018-12-21 20:28:24 -05:00
parent 87fd6b8dc2
commit ac2e4adf2d
273 changed files with 2555 additions and 3036 deletions

View File

@@ -14,8 +14,7 @@ MossdeepCity_MapScript1_1E4A9C: @ 81E4A9C
MossdeepCity_EventScript_1E4AB2:: @ 81E4AB2
lock
faceplayer
checkflag FLAG_0x07B
goto_eq MossdeepCity_EventScript_1E4AC7
goto_if_set FLAG_0x07B, MossdeepCity_EventScript_1E4AC7
msgbox MossdeepCity_Text_1E4E90, MSGBOX_DEFAULT
release
end
@@ -28,8 +27,7 @@ MossdeepCity_EventScript_1E4AC7:: @ 81E4AC7
MossdeepCity_EventScript_1E4AD1:: @ 81E4AD1
lock
faceplayer
checkflag FLAG_0x07B
goto_eq MossdeepCity_EventScript_1E4AE6
goto_if_set FLAG_0x07B, MossdeepCity_EventScript_1E4AE6
msgbox MossdeepCity_Text_1E4F50, MSGBOX_DEFAULT
release
end
@@ -227,15 +225,14 @@ MossdeepCity_EventScript_1E4C10:: @ 81E4C10
MossdeepCity_EventScript_1E4C26:: @ 81E4C26
lock
faceplayer
checkflag FLAG_0x114
goto_eq MossdeepCity_EventScript_1E4C68
goto_if_set FLAG_0x114, MossdeepCity_EventScript_1E4C68
msgbox MossdeepCity_Text_1E4CED, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_eq MossdeepCity_EventScript_1E4C72
goto_if_eq MossdeepCity_EventScript_1E4C72
msgbox MossdeepCity_Text_1E4D5B, MSGBOX_DEFAULT
giveitem_std ITEM_KINGS_ROCK
compare VAR_RESULT, 0
goto_eq MossdeepCity_EventScript_272054
goto_if_eq MossdeepCity_EventScript_272054
setflag FLAG_0x114
release
end