mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Add seteventmon
This commit is contained in:
parent
110fbc559c
commit
3a6c633905
@ -1931,3 +1931,11 @@
|
||||
waitbuttonpress
|
||||
closebraillemessage
|
||||
.endm
|
||||
|
||||
@ Creates an "event legal" Pokémon for an encounter
|
||||
.macro seteventmon species:req, level:req, item=ITEM_NONE
|
||||
setvar VAR_0x8004, \species
|
||||
setvar VAR_0x8005, \level
|
||||
setvar VAR_0x8006, \item
|
||||
special CreateEventLegalEnemyMon
|
||||
.endm
|
||||
|
@ -82,10 +82,7 @@ BirthIsland_Exterior_EventScript_Deoxys::
|
||||
delay 40
|
||||
waitmoncry
|
||||
setvar VAR_LAST_TALKED, LOCALID_DEOXYS
|
||||
setvar VAR_0x8004, SPECIES_DEOXYS
|
||||
setvar VAR_0x8005, 30 @ level
|
||||
setvar VAR_0x8006, ITEM_NONE
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_DEOXYS, 30
|
||||
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
special BattleSetup_StartLegendaryBattle
|
||||
waitstate
|
||||
|
@ -129,10 +129,7 @@ FarawayIsland_Interior_EventScript_Mew::
|
||||
special DestroyMewEmergingGrassSprite
|
||||
delay 40
|
||||
waitmoncry
|
||||
setvar VAR_0x8004, SPECIES_MEW
|
||||
setvar VAR_0x8005, 30 @ level
|
||||
setvar VAR_0x8006, ITEM_NONE
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_MEW, 30
|
||||
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
special BattleSetup_StartLegendaryBattle
|
||||
waitstate
|
||||
|
@ -53,10 +53,7 @@ NavelRock_Bottom_EventScript_Lugia::
|
||||
playmoncry SPECIES_LUGIA, CRY_MODE_ENCOUNTER
|
||||
waitmoncry
|
||||
delay 20
|
||||
setvar VAR_0x8004, SPECIES_LUGIA
|
||||
setvar VAR_0x8005, 70 @ level
|
||||
setvar VAR_0x8006, ITEM_NONE
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_LUGIA, 70
|
||||
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
special BattleSetup_StartLegendaryBattle
|
||||
waitstate
|
||||
|
@ -57,10 +57,7 @@ NavelRock_Top_EventScript_HoOh::
|
||||
applymovement LOCALID_HO_OH, NavelRock_Top_Movement_HoOhApproach
|
||||
waitmovement 0
|
||||
special RemoveCameraObject
|
||||
setvar VAR_0x8004, SPECIES_HO_OH
|
||||
setvar VAR_0x8005, 70 @ level
|
||||
setvar VAR_0x8006, ITEM_NONE
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_HO_OH, 70
|
||||
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
special BattleSetup_StartLegendaryBattle
|
||||
waitstate
|
||||
|
@ -105,17 +105,11 @@ SouthernIsland_Interior_EventScript_Sign::
|
||||
end
|
||||
|
||||
SouthernIsland_Interior_EventScript_SetLatiosBattleVars::
|
||||
setvar VAR_0x8004, SPECIES_LATIOS
|
||||
setvar VAR_0x8005, 50 @ level
|
||||
setvar VAR_0x8006, ITEM_SOUL_DEW
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_LATIOS, 50, ITEM_SOUL_DEW
|
||||
return
|
||||
|
||||
SouthernIsland_Interior_EventScript_SetLatiasBattleVars::
|
||||
setvar VAR_0x8004, SPECIES_LATIAS
|
||||
setvar VAR_0x8005, 50 @ level
|
||||
setvar VAR_0x8006, ITEM_SOUL_DEW
|
||||
special CreateEventLegalEnemyMon
|
||||
seteventmon SPECIES_LATIAS, 50, ITEM_SOUL_DEW
|
||||
return
|
||||
|
||||
SouthernIsland_Interior_Movement_CameraPanUp:
|
||||
|
Loading…
Reference in New Issue
Block a user