summaryrefslogtreecommitdiff
path: root/data/maps/Route2_EastBuilding/scripts.inc
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-10 00:44:57 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-10 01:26:20 -0500
commit4a6f15ba24c159ad6cc1be1d7c8c636e416e80d6 (patch)
tree823b6f7b6fb71cbfe54add5696b831a9f78a6703 /data/maps/Route2_EastBuilding/scripts.inc
parent94fbc3ac489e529176533a1fad7deac7e1014b9d (diff)
Sync event macros
Diffstat (limited to 'data/maps/Route2_EastBuilding/scripts.inc')
-rw-r--r--data/maps/Route2_EastBuilding/scripts.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/data/maps/Route2_EastBuilding/scripts.inc b/data/maps/Route2_EastBuilding/scripts.inc
index 002c928ab..dec1a7e0c 100644
--- a/data/maps/Route2_EastBuilding/scripts.inc
+++ b/data/maps/Route2_EastBuilding/scripts.inc
@@ -5,23 +5,21 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
lock
faceplayer
call EventScript_16F70B
- checkflag FLAG_GOT_HM05
- goto_if TRUE, EventScript_16F701
+ goto_if_set FLAG_GOT_HM05, EventScript_16F701
msgbox gUnknown_819D64F, MSGBOX_YESNO
compare 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_0x8006, 10
- goto_if lt, EventScript_1A7ABD
+ goto_if_lt EventScript_1A7ABD
msgbox gUnknown_819D74E
checkitemspace ITEM_HM05, 1
compare VAR_RESULT, 0
- goto_if eq, EventScript_1A7AC7
- additem ITEM_HM05, 1
- giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05
+ goto_if_eq EventScript_1A7AC7
+ giveitem_msg gUnknown_819D7A1, ITEM_HM05
setflag FLAG_GOT_HM05
msgbox gUnknown_819D7C1
release