Add local object event ids for referenced objects
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
.set LOCALID_DEOXYS, 2
|
||||
|
||||
BirthIsland_Exterior_MapScripts:: @ 8267F15
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, BirthIsland_Exterior_OnTransition
|
||||
map_script MAP_SCRIPT_ON_RESUME, BirthIsland_Exterior_OnResume
|
||||
@@ -36,7 +38,7 @@ BirthIsland_Exterior_EventScript_TryRemoveDeoxys:: @ 8267F6F
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, B_OUTCOME_CAUGHT
|
||||
goto_if_ne Common_EventScript_NopReturn
|
||||
removeobject 2
|
||||
removeobject LOCALID_DEOXYS
|
||||
return
|
||||
|
||||
BirthIsland_Exterior_EventScript_Triangle:: @ 8267F83
|
||||
@@ -71,14 +73,14 @@ BirthIsland_Exterior_EventScript_Deoxys:: @ 8267FC1
|
||||
dofieldeffect FLDEFF_65
|
||||
playbgm MUS_RG_DEOEYE, 0
|
||||
waitfieldeffect FLDEFF_65
|
||||
addobject 2
|
||||
applymovement 2, BirthIsland_Exterior_Movement_DeoxysApproach
|
||||
addobject LOCALID_DEOXYS
|
||||
applymovement LOCALID_DEOXYS, BirthIsland_Exterior_Movement_DeoxysApproach
|
||||
waitmovement 0
|
||||
waitse
|
||||
playmoncry SPECIES_DEOXYS, 2
|
||||
delay 40
|
||||
waitmoncry
|
||||
setvar VAR_LAST_TALKED, 2
|
||||
setvar VAR_LAST_TALKED, LOCALID_DEOXYS
|
||||
setvar VAR_0x8004, SPECIES_DEOXYS
|
||||
setvar VAR_0x8005, 30 @ level
|
||||
setvar VAR_0x8006, ITEM_NONE
|
||||
|
||||
Reference in New Issue
Block a user