summaryrefslogtreecommitdiff
path: root/data/maps/Route2_EastBuilding/scripts.inc
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-10-27 20:52:55 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-10-27 20:52:55 -0400
commit47534a1471019a25e25c29a3f5bb529ccbd73e86 (patch)
treeda4f2abb0fa27f5f07bcbdd4af47ca4eec84a786 /data/maps/Route2_EastBuilding/scripts.inc
parentb8fec3d9f617ec9a764bb56804c526ff7449631f (diff)
parent922411abebd56d0f5d6072bad4924c909c8e2c27 (diff)
Merge branch 'master' of github.com:pret/pokefirered into trade
Diffstat (limited to 'data/maps/Route2_EastBuilding/scripts.inc')
-rw-r--r--data/maps/Route2_EastBuilding/scripts.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/data/maps/Route2_EastBuilding/scripts.inc b/data/maps/Route2_EastBuilding/scripts.inc
index a1b2d0e7a..de3889bf4 100644
--- a/data/maps/Route2_EastBuilding/scripts.inc
+++ b/data/maps/Route2_EastBuilding/scripts.inc
@@ -5,24 +5,24 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
lock
faceplayer
call EventScript_16F70B
- checkflag FLAG_0x23B
- goto_if_eq EventScript_16F701
+ checkflag FLAG_GOT_HM05
+ goto_if TRUE, EventScript_16F701
msgbox gUnknown_819D64F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
- goto_if_eq EventScript_1A7AD1
+ goto_if eq, EventScript_1A7AD1
setvar VAR_0x8004, 0
specialvar VAR_RESULT, Special_GetPokedexCount
getnumberstring 2, VAR_0x8006
call EventScript_16F70B
compare_var_to_value VAR_0x8006, 10
- goto_if 0, EventScript_1A7ABD
+ goto_if lt, EventScript_1A7ABD
msgbox gUnknown_819D74E
checkitemspace ITEM_HM05, 1
compare_var_to_value VAR_RESULT, 0
- goto_if_eq EventScript_1A7AC7
+ goto_if eq, EventScript_1A7AC7
additem ITEM_HM05, 1
giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05
- setflag FLAG_0x23B
+ setflag FLAG_GOT_HM05
msgbox gUnknown_819D7C1
release
end