summaryrefslogtreecommitdiff
path: root/data/maps/Route24/scripts.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-10-23 09:05:26 -0400
committerGitHub <noreply@github.com>2019-10-23 09:05:26 -0400
commit6e36c229200e083ca005cbc448e99210d111f3b2 (patch)
treeaec86bd0f081a7ff207f68cba33315991b629be1 /data/maps/Route24/scripts.inc
parent4bc284ff2c7d0ec3f24df8d94a77860fbaed588b (diff)
parent3efd2e1210b4149628197446d063df0fc11281ab (diff)
Merge pull request #130 from PikalaxALT/trainers
Trainers, event flags, mystery_event_msg, map object gfx
Diffstat (limited to 'data/maps/Route24/scripts.inc')
-rw-r--r--data/maps/Route24/scripts.inc18
1 files changed, 9 insertions, 9 deletions
diff --git a/data/maps/Route24/scripts.inc b/data/maps/Route24/scripts.inc
index dede3df50..175cc7210 100644
--- a/data/maps/Route24/scripts.inc
+++ b/data/maps/Route24/scripts.inc
@@ -4,12 +4,12 @@ Route24_MapScripts:: @ 816861F
Route24_EventScript_168620:: @ 8168620
lock
faceplayer
- compare_var_to_value VAR_0x406B, 1
- goto_if_eq EventScript_168656
+ compare_var_to_value VAR_MAP_SCENE_ROUTE24, 1
+ goto_if eq, EventScript_168656
msgbox gUnknown_8188C3C
checkitemspace ITEM_NUGGET, 1
compare_var_to_value VAR_RESULT, 0
- goto_if_eq EventScript_16864C
+ goto_if eq, EventScript_16864C
call EventScript_1686B9
release
end
@@ -39,15 +39,15 @@ Route24_EventScript_16866C:: @ 816866C
EventScript_168678:: @ 8168678
textcolor 0
compare_var_to_value VAR_0x4001, 0
- call_if 1, EventScript_1686FD
+ call_if eq, EventScript_1686FD
compare_var_to_value VAR_0x4001, 1
- call_if 1, EventScript_168708
+ call_if eq, EventScript_168708
applymovement 255, Movement_1A75EB
waitmovement 0
msgbox gUnknown_8188C3C
checkitemspace ITEM_NUGGET, 1
compare_var_to_value VAR_RESULT, 0
- goto_if_eq EventScript_168713
+ goto_if eq, EventScript_168713
call EventScript_1686B9
releaseall
end
@@ -60,9 +60,9 @@ EventScript_1686B9:: @ 81686B9
playbgm MUS_ROCKET, 0
waitbuttonpress
setvar VAR_LAST_TALKED, 1
- trainerbattle 3, 356, 0, Text_188DDC
+ trainerbattle 3, TRAINER_TEAM_ROCKET_GRUNT_6, 0, Text_188DDC
msgbox gUnknown_8188DF1
- setvar VAR_0x406B, 1
+ setvar VAR_MAP_SCENE_ROUTE24, 1
return
EventScript_1686FD:: @ 81686FD
@@ -81,7 +81,7 @@ EventScript_168713:: @ 8168713
applymovement 255, Movement_168743
waitmovement 0
compare_var_to_value VAR_0x4001, 0
- call_if 1, EventScript_168733
+ call_if eq, EventScript_168733
release
end