summaryrefslogtreecommitdiff
path: root/data/maps/BattleFrontier_OutsideEast
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-06-21 01:56:57 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-06-22 17:18:58 -0400
commitfac62881560190b3380d7fdbf197aa48ce337982 (patch)
tree028ddeb79c29fb61466b630ef7ff05706a7f81a0 /data/maps/BattleFrontier_OutsideEast
parent46f4a4bbf7239743c333cd32d30b74a7b3176acc (diff)
Add local object event ids for referenced objects
Diffstat (limited to 'data/maps/BattleFrontier_OutsideEast')
-rw-r--r--data/maps/BattleFrontier_OutsideEast/scripts.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/maps/BattleFrontier_OutsideEast/scripts.inc b/data/maps/BattleFrontier_OutsideEast/scripts.inc
index ebfdba916..6995e405e 100644
--- a/data/maps/BattleFrontier_OutsideEast/scripts.inc
+++ b/data/maps/BattleFrontier_OutsideEast/scripts.inc
@@ -1,3 +1,5 @@
+.set LOCALID_SUDOWOODO, 14
+
BattleFrontier_OutsideEast_MapScripts:: @ 8242C04
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_OutsideEast_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_OutsideEast_OnTransition
@@ -106,8 +108,8 @@ BattleFrontier_OutsideEast_EventScript_Sudowoodo:: @ 8242CEA
lock
faceplayer
waitse
- playse 269
- applymovement 14, BattleFrontier_OutsideEast_Movement_SudowoodoShake
+ playse SE_USSOKI
+ applymovement LOCALID_SUDOWOODO, BattleFrontier_OutsideEast_Movement_SudowoodoShake
waitmovement 0
release
end
@@ -119,7 +121,7 @@ BattleFrontier_OutsideEast_EventScript_WaterSudowoodo:: @ 8242CFC
waitstate
waitse
playse SE_USSOKI
- applymovement 14, BattleFrontier_OutsideEast_Movement_SudowoodoShake
+ applymovement LOCALID_SUDOWOODO, BattleFrontier_OutsideEast_Movement_SudowoodoShake
waitmovement 0
msgbox gText_Sudowoodo_Attacked, MSGBOX_DEFAULT
closemessage
@@ -127,7 +129,7 @@ BattleFrontier_OutsideEast_EventScript_WaterSudowoodo:: @ 8242CFC
playmoncry SPECIES_SUDOWOODO, 2
delay 40
waitmoncry
- setvar VAR_LAST_TALKED, 14 @ Sudowoodo object event id
+ setvar VAR_LAST_TALKED, LOCALID_SUDOWOODO
setwildbattle SPECIES_SUDOWOODO, 40, ITEM_NONE
setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle