Merge branch 'master' into doc-overworld

This commit is contained in:
GriffinR
2020-07-18 20:24:09 -04:00
committed by GitHub
247 changed files with 4787 additions and 4035 deletions
+6 -6
View File
@@ -1263,8 +1263,8 @@
various \battler, VARIOUS_GET_MOVE_TARGET various \battler, VARIOUS_GET_MOVE_TARGET
.endm .endm
.macro various4 battler:req .macro getbattlerfainted battler:req
various \battler, 4 various \battler, VARIOUS_GET_BATTLER_FAINTED
.endm .endm
.macro resetintimidatetracebits battler:req .macro resetintimidatetracebits battler:req
@@ -1279,8 +1279,8 @@
various \battler, 7 various \battler, 7
.endm .endm
.macro various8 battler:req .macro palaceflavortext battler:req
various \battler, 8 various \battler, VARIOUS_PALACE_FLAVOR_TEXT
.endm .endm
.macro arenajudgmentwindow .macro arenajudgmentwindow
@@ -1365,11 +1365,11 @@
.endm .endm
.macro chosenstatus1animation battler:req, status:req .macro chosenstatus1animation battler:req, status:req
chosenstatusanimation \battler 0x0 \status chosenstatusanimation \battler, 0x0, \status
.endm .endm
.macro chosenstatus2animation battler:req, status:req .macro chosenstatus2animation battler:req, status:req
chosenstatusanimation \battler 0x1 \status chosenstatusanimation \battler, 0x1, \status
.endm .endm
.macro sethword dst:req, value:req .macro sethword dst:req, value:req
+6 -6
View File
@@ -75,21 +75,21 @@ _send: @ 14c
_150: _150:
bl _recv bl _recv
bne _150 bne _150
mov r2, 0 mov r2, #0
strh r2, [r0, 0xa] @ SIOMLT_SEND strh r2, [r0, 0xa] @ SIOMLT_SEND
cmp r1, 0 cmp r1, #0
bne _150 bne _150
mov r2, 0x8000 mov r2, 0x8000
_16c: _16c:
mov r1, 0 mov r1, #0
_170: _170:
strh r1, [r0, 0xa] @ SIOMLT_SEND strh r1, [r0, 0xa] @ SIOMLT_SEND
bl _recv bl _recv
bne _150 bne _150
cmp r1, r2 cmp r1, r2
bne _16c bne _16c
lsr r2, 5 lsr r2, #5
cmp r1, 0 cmp r1, #0
bne _170 bne _170
ldr r3, =BerryFixMBHeaderGameCode ldr r3, =BerryFixMBHeaderGameCode
ldrh r2, [r3] ldrh r2, [r3]
@@ -105,7 +105,7 @@ _1a0:
bne _1a0 bne _1a0
cmp r1, r2 cmp r1, r2
bne _1a0 bne _1a0
mov r1, 0 mov r1, #0
strh r1, [r0, 0xa] @ SIOMLT_SEND strh r1, [r0, 0xa] @ SIOMLT_SEND
ldr r0, =_data_2f0 ldr r0, =_data_2f0
ldr r1, =gCode ldr r1, =gCode
+4 -4
View File
@@ -9,10 +9,10 @@
.align 2, 0 .align 2, 0
.global Init .global Init
Init: Init:
mov r0, PSR_IRQ_MODE mov r0, #PSR_IRQ_MODE
msr cpsr_cf, r0 msr cpsr_cf, r0
ldr sp, sp_irq ldr sp, sp_irq
mov r0, PSR_SYS_MODE mov r0, #PSR_SYS_MODE
msr cpsr_cf, r0 msr cpsr_cf, r0
ldr sp, sp_sys ldr sp, sp_sys
ldr r1, =INTR_VECTOR ldr r1, =INTR_VECTOR
@@ -34,8 +34,8 @@ sp_irq: .word IWRAM_END - 0x60
.align 2, 0 .align 2, 0
.global IntrMain .global IntrMain
IntrMain: @ 0x2010048 IntrMain: @ 0x2010048
mov ip, REG_BASE mov ip, #REG_BASE
add r3, ip, OFFSET_REG_IE add r3, ip, #OFFSET_REG_IE
ldr r2, [r3] ldr r2, [r3]
and r1, r2, r2, lsr #16 and r1, r2, r2, lsr #16
mov r2, #0 mov r2, #0
+6 -6
View File
@@ -7,39 +7,39 @@
thumb_func_start CpuSet thumb_func_start CpuSet
CpuSet: @ 81E3B64 CpuSet: @ 81E3B64
swi 0xB svc 0xB
bx lr bx lr
thumb_func_end CpuSet thumb_func_end CpuSet
thumb_func_start Div thumb_func_start Div
Div: @ 81E3B68 Div: @ 81E3B68
swi 0x6 svc 0x6
bx lr bx lr
thumb_func_end Div thumb_func_end Div
thumb_func_start Mod thumb_func_start Mod
Mod: Mod:
swi 0x6 svc 0x6
adds r0, r1, 0 adds r0, r1, 0
bx lr bx lr
thumb_func_end Mod thumb_func_end Mod
thumb_func_start LZ77UnCompVram thumb_func_start LZ77UnCompVram
LZ77UnCompVram: @ 81E3B6C LZ77UnCompVram: @ 81E3B6C
swi 0x12 svc 0x12
bx lr bx lr
thumb_func_end LZ77UnCompVram thumb_func_end LZ77UnCompVram
thumb_func_start RegisterRamReset thumb_func_start RegisterRamReset
RegisterRamReset: @ 81E3B80 RegisterRamReset: @ 81E3B80
swi 0x1 svc 0x1
bx lr bx lr
thumb_func_end RegisterRamReset thumb_func_end RegisterRamReset
thumb_func_start VBlankIntrWait thumb_func_start VBlankIntrWait
VBlankIntrWait: @ 81E3BA0 VBlankIntrWait: @ 81E3BA0
movs r2, 0 movs r2, 0
swi 0x5 svc 0x5
bx lr bx lr
thumb_func_end VBlankIntrWait thumb_func_end VBlankIntrWait
+13 -13
View File
@@ -3153,8 +3153,8 @@ BattleScript_PursuitDmgOnSwitchOut::
waitmessage 0x40 waitmessage 0x40
tryfaintmon BS_TARGET, FALSE, NULL tryfaintmon BS_TARGET, FALSE, NULL
moveendfromto MOVEEND_ON_DAMAGE_ABILITIES, MOVEEND_CHOICE_MOVE moveendfromto MOVEEND_ON_DAMAGE_ABILITIES, MOVEEND_CHOICE_MOVE
various4 BS_TARGET getbattlerfainted BS_TARGET
jumpifbyte CMP_EQUAL, gBattleCommunication, 0x0, BattleScript_PursuitDmgOnSwitchOutRet jumpifbyte CMP_EQUAL, gBattleCommunication, FALSE, BattleScript_PursuitDmgOnSwitchOutRet
setbyte sGIVEEXP_STATE, 0x0 setbyte sGIVEEXP_STATE, 0x0
getexp BS_TARGET getexp BS_TARGET
BattleScript_PursuitDmgOnSwitchOutRet: BattleScript_PursuitDmgOnSwitchOutRet:
@@ -4442,18 +4442,18 @@ BattleScript_FlushMessageBox::
printstring STRINGID_EMPTYSTRING3 printstring STRINGID_EMPTYSTRING3
return return
BattleScript_82DB881:: BattleScript_PalacePrintFlavorText::
setbyte gBattleCommunication + 1, 0x0 setbyte gBattleCommunication + 1, 0
BattleScript_82DB887:: BattleScript_PalaceTryBattlerFlavorText::
various8 BS_ATTACKER palaceflavortext BS_ATTACKER @ BS_ATTACKER here overwritten by gBattleCommunication + 1
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0x1, BattleScript_82DB89D jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, TRUE, BattleScript_PalaceEndFlavorText
printfromtable gStringIds_85CCF0A printfromtable gBattlePalaceFlavorTextTable
waitmessage 0x40 waitmessage 0x40
BattleScript_82DB89D:: BattleScript_PalaceEndFlavorText::
addbyte gBattleCommunication + 1, 0x1 addbyte gBattleCommunication + 1, 1
jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_82DB887 jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_PalaceTryBattlerFlavorText
setbyte gBattleCommunication, 0x0 setbyte gBattleCommunication, 0
setbyte gBattleCommunication + 1, 0x0 setbyte gBattleCommunication + 1, 0
end2 end2
BattleScript_ArenaTurnBeginning:: BattleScript_ArenaTurnBeginning::
+2 -2
View File
@@ -775,8 +775,8 @@ EventScript_HideMrBriney:: @ 82721F8
return return
RusturfTunnel_EventScript_SetRusturfTunnelOpen:: @ 8272216 RusturfTunnel_EventScript_SetRusturfTunnelOpen:: @ 8272216
removeobject 1 removeobject LOCALID_WANDAS_BF
removeobject 10 removeobject LOCALID_WANDA
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDAS_BOYFRIEND clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDAS_BOYFRIEND
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDA clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDA
setvar VAR_RUSTURF_TUNNEL_STATE, 6 setvar VAR_RUSTURF_TUNNEL_STATE, 6
@@ -6,7 +6,7 @@ AbandonedShip_CaptainsOffice_EventScript_CaptSternAide:: @ 82387E2
faceplayer faceplayer
goto_if_set FLAG_EXCHANGED_SCANNER, AbandonedShip_CaptainsOffice_EventScript_ThisIsSSCactus goto_if_set FLAG_EXCHANGED_SCANNER, AbandonedShip_CaptainsOffice_EventScript_ThisIsSSCactus
checkitem ITEM_SCANNER, 1 checkitem ITEM_SCANNER, 1
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq AbandonedShip_CaptainsOffice_EventScript_CanYouDeliverScanner goto_if_eq AbandonedShip_CaptainsOffice_EventScript_CanYouDeliverScanner
goto_if_set FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_4_SCANNER, AbandonedShip_CaptainsOffice_EventScript_ThisIsSSCactus goto_if_set FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_4_SCANNER, AbandonedShip_CaptainsOffice_EventScript_ThisIsSSCactus
msgbox AbandonedShip_CaptainsOffice_Text_NoSuccessFindingScanner, MSGBOX_DEFAULT msgbox AbandonedShip_CaptainsOffice_Text_NoSuccessFindingScanner, MSGBOX_DEFAULT
+6 -3
View File
@@ -1,3 +1,6 @@
.set LOCALID_MATT, 1
.set LOCALID_SUBMARINE, 4
AquaHideout_B2F_MapScripts:: @ 8233DCF AquaHideout_B2F_MapScripts:: @ 8233DCF
map_script MAP_SCRIPT_ON_TRANSITION, AquaHideout_B2F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, AquaHideout_B2F_OnTransition
.byte 0 .byte 0
@@ -12,7 +15,7 @@ AquaHideout_B2F_EventScript_PreventMattNoticing:: @ 8233DDF
AquaHideout_B2F_EventScript_MattNoticePlayer:: @ 8233DE5 AquaHideout_B2F_EventScript_MattNoticePlayer:: @ 8233DE5
lockall lockall
setvar VAR_0x8008, 1 @ Matt object event id setvar VAR_0x8008, LOCALID_MATT
playse SE_PIN playse SE_PIN
applymovement VAR_0x8008, Common_Movement_ExclamationMark applymovement VAR_0x8008, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
@@ -29,8 +32,8 @@ AquaHideout_B2F_EventScript_Matt:: @ 8233E09
end end
AquaHideout_B2F_EventScript_SubmarineEscape:: @ 8233E25 AquaHideout_B2F_EventScript_SubmarineEscape:: @ 8233E25
setvar VAR_0x8008, 1 @ Matt object event id setvar VAR_0x8008, LOCALID_MATT
setvar VAR_0x8009, 4 @ Submarine object event id setvar VAR_0x8009, LOCALID_SUBMARINE
applymovement VAR_0x8008, Common_Movement_WalkInPlaceFastestLeft applymovement VAR_0x8008, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
delay 20 delay 20
@@ -1,3 +1,12 @@
.set LOCALID_BLACK_BELT_1, 1
.set LOCALID_BLACK_BELT_2, 2
.set LOCALID_BLACK_BELT_3, 3
.set LOCALID_BLACK_BELT_4, 4
.set LOCALID_ATTENDANT, 5
.set LOCALID_OPPONENT, 7
.set LOCALID_PLAYER, 8
.set LOCALID_ANNOUNCER, 9
BattleFrontier_BattleArenaBattleRoom_MapScripts:: @ 8257487 BattleFrontier_BattleArenaBattleRoom_MapScripts:: @ 8257487
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleArenaBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleArenaBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaBattleRoom_OnFrame
@@ -6,7 +15,7 @@ BattleFrontier_BattleArenaBattleRoom_MapScripts:: @ 8257487
.byte 0 .byte 0
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 8, which has the gfx id VAR_OBJ_GFX_ID_1 @ The player is represented instead by LOCALID_PLAYER, which has the gfx id VAR_OBJ_GFX_ID_1
BattleFrontier_BattleArenaBattleRoom_OnResume: @ 825749C BattleFrontier_BattleArenaBattleRoom_OnResume: @ 825749C
special OffsetCameraForBattle special OffsetCameraForBattle
@@ -39,48 +48,48 @@ BattleFrontier_BattleArenaBattleRoom_OnFrame: @ 82574D2
BattleFrontier_BattleArenaBattleRoom_EventScript_EnterRoom:: @ 82574DC BattleFrontier_BattleArenaBattleRoom_EventScript_EnterRoom:: @ 82574DC
lockall lockall
showobjectat 8, MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM showobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerEnter applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerEnter
waitmovement 0 waitmovement 0
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers
applymovement 5, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceDown
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceLeft
setvar VAR_TEMP_2, 1 setvar VAR_TEMP_2, 1
frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE
goto BattleFrontier_BattleArenaBattleRoom_EventScript_AskReadyForOpponent goto BattleFrontier_BattleArenaBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers:: @ 825752E BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers:: @ 825752E
tower_setopponent tower_setopponent
addobject 7 addobject LOCALID_OPPONENT
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_PlayerStepForward, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_PlayerStepForward, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForward applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForward
waitmovement 0 waitmovement 0
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
arena_gettrainername arena_gettrainername
msgbox BattleFrontier_BattleArenaBattleRoom_Text_OpponentStepForward, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_OpponentStepForward, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward
waitmovement 0 waitmovement 0
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_SetKOTourneyBegin, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_SetKOTourneyBegin, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForward applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForward
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward
waitmovement 0 waitmovement 0
palace_getopponentintro palace_getopponentintro
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -89,11 +98,11 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers:: @ 825752E
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleArenaBattleRoom_EventScript_DefeatedOpponent case 1, BattleFrontier_BattleArenaBattleRoom_EventScript_DefeatedOpponent
BattleFrontier_BattleArenaBattleRoom_EventScript_DeclareOpponentWinner:: @ 82575DB BattleFrontier_BattleArenaBattleRoom_EventScript_DeclareOpponentWinner:: @ 82575DB
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 1, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_BLACK_BELT_1, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 2, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_BLACK_BELT_2, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 3, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp applymovement LOCALID_BLACK_BELT_3, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp
applymovement 4, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp applymovement LOCALID_BLACK_BELT_4, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp
playse SE_W173 playse SE_W173
waitse waitse
waitmovement 0 waitmovement 0
@@ -111,12 +120,12 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_DefeatedOpponent:: @ 8257630
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
switch VAR_RESULT switch VAR_RESULT
case 7, BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon case 7, BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerWalkBackToLine applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerWalkBackToLine
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentExit applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentExit
waitmovement 0 waitmovement 0
removeobject 7 removeobject LOCALID_OPPONENT
applymovement 5, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceDown
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_MonsWillBeRestored, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_MonsWillBeRestored, MSGBOX_DEFAULT
special LoadPlayerParty special LoadPlayerParty
@@ -193,8 +202,8 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_AskRetireChallenge:: @ 8257808
BattleFrontier_BattleArenaBattleRoom_EventScript_ContinueChallenge:: @ 825783A BattleFrontier_BattleArenaBattleRoom_EventScript_ContinueChallenge:: @ 825783A
closemessage closemessage
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight
applymovement 5, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight
waitmovement 0 waitmovement 0
goto BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers goto BattleFrontier_BattleArenaBattleRoom_EventScript_AnnounceTrainers
waitstate waitstate
@@ -273,27 +282,27 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_AskReadyForTycoonNoRecord:: @ 8
BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGreta:: @ 8257961 BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGreta:: @ 8257961
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight
applymovement 5, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaBattleRoom_Movement_WalkInPlaceRight
waitmovement 0 waitmovement 0
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_PlayerStepForward, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_PlayerStepForward, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForwardLong applymovement LOCALID_PLAYER, BattleFrontier_BattleArenaBattleRoom_Movement_PlayerStepForwardLong
waitmovement 0 waitmovement 0
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_MakeWayForGreta, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_MakeWayForGreta, MSGBOX_DEFAULT
closemessage closemessage
addobject 7 addobject LOCALID_OPPONENT
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_GretaEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_GretaEnter
waitmovement 0 waitmovement 0
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForward
waitmovement 0 waitmovement 0
switch VAR_TEMP_F switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleArenaBattleRoom_EventScript_IntroGretaGold case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleArenaBattleRoom_EventScript_IntroGretaGold
@@ -305,11 +314,11 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGreta:: @ 8257961
msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaYoureChallenger, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaYoureChallenger, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_GretaLookAroundPlayer applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_GretaLookAroundPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_IsThatRight, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_IsThatRight, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_GretaWalkBackToCenter applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_GretaWalkBackToCenter
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_YouLookWeakTakeThingsEasy, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_YouLookWeakTakeThingsEasy, MSGBOX_DEFAULT
BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGretaSilver:: @ 8257A3F BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGretaSilver:: @ 8257A3F
@@ -324,7 +333,7 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_DefeatedGretaSilver:: @ 8257A5C
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon goto_if_ne BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForwardLong applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForwardLong
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaYoureToughAfterAll, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaYoureToughAfterAll, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
@@ -342,11 +351,11 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_IntroGretaGold:: @ 8257AA5
msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaLookingForwardToSeeingAgain, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaLookingForwardToSeeingAgain, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_GretaLookAroundPlayer applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_GretaLookAroundPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_SoAreYouReady, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_SoAreYouReady, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_GretaWalkBackToCenter applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_GretaWalkBackToCenter
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_WontAllowHalfheartedEffort, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_WontAllowHalfheartedEffort, MSGBOX_DEFAULT
BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGretaGold:: @ 8257AF8 BattleFrontier_BattleArenaBattleRoom_EventScript_BattleGretaGold:: @ 8257AF8
@@ -361,7 +370,7 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_DefeatedGretaGold:: @ 8257B15
frontier_getsymbols frontier_getsymbols
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_ReturnToLobbyWon
applymovement 7, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForwardLong applymovement LOCALID_OPPONENT, BattleFrontier_BattleArenaBattleRoom_Movement_OpponentStepForwardLong
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaBlownAway, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_GretaBlownAway, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
@@ -392,11 +401,11 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_DoArenaBattle:: @ 8257B6C
return return
BattleFrontier_BattleArenaBattleRoom_EventScript_DeclarePlayerWinner:: @ 8257BA9 BattleFrontier_BattleArenaBattleRoom_EventScript_DeclarePlayerWinner:: @ 8257BA9
applymovement 9, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 1, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_BLACK_BELT_1, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 2, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown applymovement LOCALID_BLACK_BELT_2, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceDown
applymovement 3, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp applymovement LOCALID_BLACK_BELT_3, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp
applymovement 4, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp applymovement LOCALID_BLACK_BELT_4, BattleFrontier_BattleArenaBattleRoom_Movement_JumpInPlaceUp
playse SE_BAN playse SE_BAN
waitse waitse
waitmovement 0 waitmovement 0
@@ -479,8 +488,8 @@ BattleFrontier_BattleArenaBattleRoom_OnWarp: @ 8257C0C
.2byte 0 .2byte 0
BattleFrontier_BattleArenaBattleRoom_EventScript_SetUpRoomObjects:: @ 8257C16 BattleFrontier_BattleArenaBattleRoom_EventScript_SetUpRoomObjects:: @ 8257C16
hideobjectat 8, MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM hideobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM
removeobject 7 removeobject LOCALID_OPPONENT
call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisible applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisible
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleArenaCorridor_MapScripts:: @ 82573B9 BattleFrontier_BattleArenaCorridor_MapScripts:: @ 82573B9
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaCorridor_OnFrame
.byte 0 .byte 0
@@ -9,13 +11,13 @@ BattleFrontier_BattleArenaCorridor_OnFrame: @ 82573BF
BattleFrontier_BattleArenaCorridor_EventScript_WalkToBattleRoom:: @ 82573C9 BattleFrontier_BattleArenaCorridor_EventScript_WalkToBattleRoom:: @ 82573C9
delay 16 delay 16
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 1, BattleFrontier_BattleArenaCorridor_Movement_AttendantWalkToDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaCorridor_Movement_AttendantWalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaCorridor_Movement_PlayerWalkToDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaCorridor_Movement_PlayerWalkToDoor
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattleArenaCorridor_Movement_AttendantFacePlayer applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaCorridor_Movement_AttendantFacePlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaCorridor_Text_PleaseStepIn, MSGBOX_SIGN msgbox BattleFrontier_BattleArenaCorridor_Text_PleaseStepIn, MSGBOX_SIGN
applymovement 1, BattleFrontier_BattleArenaCorridor_Movement_AttendantMoveOutOfWay applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaCorridor_Movement_AttendantMoveOutOfWay
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaCorridor_Movement_PlayerEnterDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaCorridor_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleArenaLobby_MapScripts:: @ 8255C36 BattleFrontier_BattleArenaLobby_MapScripts:: @ 8255C36
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleArenaLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleArenaLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleArenaLobby_OnWarp
@@ -206,12 +208,12 @@ BattleFrontier_BattleArenaLobby_EventScript_EndCancelChallenge:: @ 8256003
end end
BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLv50:: @ 8256005 BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLv50:: @ 8256005
applymovement 1, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToLeftDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToLeftDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToLeftDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToLeftDoor
waitmovement 0 waitmovement 0
opendoor 2, 2 opendoor 2, 2
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
closedoor 2, 2 closedoor 2, 2
@@ -255,12 +257,12 @@ BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor: @ 825604C
step_end step_end
BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLvOpen:: @ 8256050 BattleFrontier_BattleArenaLobby_EventScript_WalkToDoorLvOpen:: @ 8256050
applymovement 1, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToRightDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantWalkToRightDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToRightDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerWalkToRightDoor
waitmovement 0 waitmovement 0
opendoor 11, 2 opendoor 11, 2
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleArenaLobby_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleArenaLobby_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
closedoor 11, 2 closedoor 11, 2
@@ -1,3 +1,10 @@
.set LOCALID_ANNOUNCER, 1
.set LOCALID_AUDIENCE_TWIN, 2
.set LOCALID_AUDIENCE_WALKING, 6
.set LOCALID_REFEREE, 9
.set LOCALID_PLAYER, 13
.set LOCALID_OPPONENT, 15
BattleFrontier_BattleDomeBattleRoom_MapScripts:: @ 824BC9C BattleFrontier_BattleDomeBattleRoom_MapScripts:: @ 824BC9C
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleDomeBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleDomeBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeBattleRoom_OnFrame
@@ -43,22 +50,22 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_EnterRoom:: @ 824BD0A
call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum call BattleFrontier_BattleDomeBattleRoom_EventScript_GetRoundNum
compare VAR_RESULT, DOME_ROUND1 compare VAR_RESULT, DOME_ROUND1
call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat
applymovement 1, Common_Movement_WalkInPlaceDown applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
waitmovement 0 waitmovement 0
call BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayer call BattleFrontier_BattleDomeBattleRoom_EventScript_AnnouncePlayer
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerHasEnteredDome, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerHasEnteredDome, MSGBOX_DEFAULT
closemessage closemessage
showobjectat 13, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM showobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM
compare VAR_TEMP_F, DOME_FINAL compare VAR_TEMP_F, DOME_FINAL
goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter
compare VAR_TEMP_E, FRONTIER_BRAIN_NOT_READY compare VAR_TEMP_E, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter:: @ 824BD4E BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnter:: @ 824BD4E
applymovement 13, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnter applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnter
goto BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer goto BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer
BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker:: @ 824BD5A BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerEnterForTucker:: @ 824BD5A
applymovement 13, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnterForTucker applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerEnterForTucker
BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer:: @ 824BD61 BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceReactToPlayer:: @ 824BD61
playse SE_W227B playse SE_W227B
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
@@ -71,8 +78,8 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_BattleOpponent:: @ 824BD82
dome_getopponentname dome_getopponentname
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTrainer, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTrainer, MSGBOX_DEFAULT
closemessage closemessage
applymovement 13, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_OpponentStepForward applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_OpponentStepForward
waitmovement 0 waitmovement 0
tower_getopponentintro 0 tower_getopponentintro 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -91,12 +98,12 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_Draw:: @ 824BDF7
playse SE_W227B playse SE_W227B
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
delay 60 delay 60
applymovement 9, BattleFrontier_BattleDomeBattleRoom_Movement_TieRefereeEnter applymovement LOCALID_REFEREE, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeEnter
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeFaceLeft applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerFaceLeft
waitmovement 0 waitmovement 0
delay 180 delay 180
applymovement 9, BattleFrontier_BattleDomeBattleRoom_Movement_TieRefereeExit applymovement LOCALID_REFEREE, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeExit
waitmovement 0 waitmovement 0
compare VAR_TEMP_2, DRAW_TUCKER @ Tucker always wins on a draw compare VAR_TEMP_2, DRAW_TUCKER @ Tucker always wins on a draw
goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent
@@ -104,7 +111,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_Draw:: @ 824BDF7
switch VAR_RESULT switch VAR_RESULT
case 1, BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent case 1, BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent
BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent:: @ 824BE4F BattleFrontier_BattleDomeBattleRoom_EventScript_LostToOpponent:: @ 824BE4F
applymovement 1, Common_Movement_WalkInPlaceDown applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
waitmovement 0 waitmovement 0
dome_getopponentname dome_getopponentname
compare VAR_TEMP_2, NO_DRAW compare VAR_TEMP_2, NO_DRAW
@@ -140,7 +147,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerWonDraw:: @ 824BED9
return return
BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent:: @ 824BEE0 BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent:: @ 824BEE0
applymovement 1, Common_Movement_WalkInPlaceDown applymovement LOCALID_ANNOUNCER, Common_Movement_WalkInPlaceDown
waitmovement 0 waitmovement 0
compare VAR_TEMP_2, NO_DRAW compare VAR_TEMP_2, NO_DRAW
call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWon call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_PlayerWon
@@ -161,7 +168,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_DefeatedOpponent:: @ 824BEE0
waitstate waitstate
BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney:: @ 824BF62 BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney:: @ 824BF62
applymovement 13, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerApproachAudience applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerApproachAudience
waitmovement 0 waitmovement 0
frontier_get FRONTIER_DATA_LVL_MODE frontier_get FRONTIER_DATA_LVL_MODE
switch VAR_RESULT switch VAR_RESULT
@@ -351,9 +358,9 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_AnnounceTuckerGold:: @ 824C209
msgbox BattleFrontier_BattleDomeBattleRoom_Text_LegendHasReturnedDomeAceTucker, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_LegendHasReturnedDomeAceTucker, MSGBOX_DEFAULT
BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerEnter:: @ 824C211 BattleFrontier_BattleDomeBattleRoom_EventScript_TuckerEnter:: @ 824C211
closemessage closemessage
applymovement 2, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump applymovement LOCALID_AUDIENCE_TWIN, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump
applymovement 1, BattleFrontier_BattleDomeBattleRoom_Movement_RefereeMoveForTuckerEntrance applymovement LOCALID_ANNOUNCER, BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerMoveForTuckerEntrance
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerEnterAndDance applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerEnterAndDance
playse SE_W227B playse SE_W227B
call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround call BattleFrontier_BattleDomeBattleRoom_EventScript_AudienceLookAround
waitse waitse
@@ -397,7 +404,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerSilver:: @ 824C2B9
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney goto_if_ne BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
closemessage closemessage
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleDomeBattleRoom_Text_SeeYourFrontierPass, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_SeeYourFrontierPass, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
@@ -427,7 +434,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerGold:: @ 824C373
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_WonTourney
closemessage closemessage
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleDomeBattleRoom_Text_NeverLostWhenPowerUnleashed, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_NeverLostWhenPowerUnleashed, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
@@ -441,8 +448,8 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_BattleTuckerGold:: @ 824C373
BattleFrontier_BattleDomeBattleRoom_EventScript_DoTuckerBattle:: @ 824C400 BattleFrontier_BattleDomeBattleRoom_EventScript_DoTuckerBattle:: @ 824C400
msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTucker, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomeBattleRoom_Text_PlayerVersusTucker, MSGBOX_DEFAULT
closemessage closemessage
applymovement 13, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward2 applymovement LOCALID_PLAYER, BattleFrontier_BattleDomeBattleRoom_Movement_PlayerStepForward2
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerStepForward applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_TuckerStepForward
waitmovement 0 waitmovement 0
call BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle call BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle
return return
@@ -477,7 +484,7 @@ BattleFrontier_BattleDomeBattleRoom_OnWarp: @ 824C481
.2byte 0 .2byte 0
BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects:: @ 824C48B BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects:: @ 824C48B
hideobjectat 13, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM hideobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM
call BattleFrontier_BattleDomeBattleRoom_EventScript_AddAudience call BattleFrontier_BattleDomeBattleRoom_EventScript_AddAudience
call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx call BattleFrontier_BattleDomeBattleRoom_EventScript_SetPlayerGfx
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
@@ -490,10 +497,10 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects:: @ 824C48B
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
setobjectxyperm 15, 13, 9 setobjectxyperm LOCALID_OPPONENT, 13, 9
removeobject 15 removeobject LOCALID_OPPONENT
addobject 15 addobject LOCALID_OPPONENT
applymovement 15, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisibleFacingUp applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisibleFacingUp
BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects:: @ 824C4EF BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects:: @ 824C4EF
end end
@@ -746,7 +753,7 @@ BattleFrontier_BattleDomeBattleRoom_Movement_TuckerEnterAndDance: @ 824C78E
walk_left walk_left
step_end step_end
BattleFrontier_BattleDomeBattleRoom_Movement_RefereeMoveForTuckerEntrance: @ 824C7F9 BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerMoveForTuckerEntrance: @ 824C7F9
delay_16 delay_16
delay_16 delay_16
walk_left walk_left
@@ -893,14 +900,14 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_SetWalkingAudienceMemberPos:: @
copyvar VAR_TEMP_D, VAR_RESULT copyvar VAR_TEMP_D, VAR_RESULT
compare VAR_TEMP_D, 0 compare VAR_TEMP_D, 0
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
setobjectxyperm 6, 2, 0 setobjectxyperm LOCALID_AUDIENCE_WALKING, 2, 0
setobjectmovementtype 6, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_AUDIENCE_WALKING, MOVEMENT_TYPE_FACE_RIGHT
return return
BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat:: @ 824C938 BattleFrontier_BattleDomeBattleRoom_EventScript_TryDoAudienceMemberWalkToSeat:: @ 824C938
compare VAR_TEMP_D, 0 compare VAR_TEMP_D, 0
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
applymovement 6, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceMemberWalkToSeat applymovement LOCALID_AUDIENCE_WALKING, BattleFrontier_BattleDomeBattleRoom_Movement_AudienceMemberWalkToSeat
return return
BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump: @ 824C94B BattleFrontier_BattleDomeBattleRoom_Movement_AudienceTwinJump: @ 824C94B
@@ -932,18 +939,18 @@ BattleFrontier_BattleDomeBattleRoom_Movement_AudienceMemberWalkToSeat: @ 824C95E
walk_in_place_fastest_down walk_in_place_fastest_down
step_end step_end
BattleFrontier_BattleDomeBattleRoom_Movement_TieRefereeEnter: @ 824C964 BattleFrontier_BattleDomeBattleRoom_Movement_RefereeEnter: @ 824C964
walk_right walk_right
walk_right walk_right
walk_right walk_right
walk_right walk_right
step_end step_end
BattleFrontier_BattleDomeBattleRoom_Movement_RefereeFaceLeft: @ 824C969 BattleFrontier_BattleDomeBattleRoom_Movement_AnnouncerFaceLeft: @ 824C969
walk_in_place_fastest_left walk_in_place_fastest_left
step_end step_end
BattleFrontier_BattleDomeBattleRoom_Movement_TieRefereeExit: @ 824C96B BattleFrontier_BattleDomeBattleRoom_Movement_RefereeExit: @ 824C96B
walk_left walk_left
walk_left walk_left
walk_left walk_left
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleDomeCorridor_MapScripts:: @ 824B0FE BattleFrontier_BattleDomeCorridor_MapScripts:: @ 824B0FE
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeCorridor_OnFrame
.byte 0 .byte 0
@@ -12,12 +14,12 @@ BattleFrontier_BattleDomeCorridor_EventScript_EnterCorridor:: @ 824B10E
frontier_get FRONTIER_DATA_LVL_MODE frontier_get FRONTIER_DATA_LVL_MODE
compare VAR_RESULT, FRONTIER_LVL_OPEN compare VAR_RESULT, FRONTIER_LVL_OPEN
goto_if_eq BattleFrontier_BattleDomeCorridor_EventScript_WalkToBattleRoomLvOpen goto_if_eq BattleFrontier_BattleDomeCorridor_EventScript_WalkToBattleRoomLvOpen
applymovement 1, BattleFrontier_BattleDomeCorridor_Movement_AttendantWalkToDoorLv50 applymovement LOCALID_ATTENDANT, BattleFrontier_BattleDomeCorridor_Movement_AttendantWalkToDoorLv50
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerWalkToDoorLv50 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerWalkToDoorLv50
waitmovement 0 waitmovement 0
opendoor 13, 3 opendoor 13, 3
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattleDomeCorridor_Movement_AttendantEnterDoorLv50 applymovement LOCALID_ATTENDANT, BattleFrontier_BattleDomeCorridor_Movement_AttendantEnterDoorLv50
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerEnterDoorLv50 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerEnterDoorLv50
waitmovement 0 waitmovement 0
closedoor 13, 3 closedoor 13, 3
@@ -25,12 +27,12 @@ BattleFrontier_BattleDomeCorridor_EventScript_EnterCorridor:: @ 824B10E
goto BattleFrontier_BattleDomeCorridor_EventScript_WarpToPreBattleRoom goto BattleFrontier_BattleDomeCorridor_EventScript_WarpToPreBattleRoom
BattleFrontier_BattleDomeCorridor_EventScript_WalkToBattleRoomLvOpen:: @ 824B161 BattleFrontier_BattleDomeCorridor_EventScript_WalkToBattleRoomLvOpen:: @ 824B161
applymovement 1, BattleFrontier_BattleDomeCorridor_Movement_AttendantWalkToDoorLvOpen applymovement LOCALID_ATTENDANT, BattleFrontier_BattleDomeCorridor_Movement_AttendantWalkToDoorLvOpen
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerWalkToDoorLvOpen applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerWalkToDoorLvOpen
waitmovement 0 waitmovement 0
opendoor 37, 3 opendoor 37, 3
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattleDomeCorridor_Movement_AttendantEnterDoorLvOpen applymovement LOCALID_ATTENDANT, BattleFrontier_BattleDomeCorridor_Movement_AttendantEnterDoorLvOpen
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerEnterDoorLvOpen applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomeCorridor_Movement_PlayerEnterDoorLvOpen
waitmovement 0 waitmovement 0
closedoor 37, 3 closedoor 37, 3
@@ -1,3 +1,6 @@
.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 6
BattleFrontier_BattleDomeLobby_MapScripts:: @ 82497E2 BattleFrontier_BattleDomeLobby_MapScripts:: @ 82497E2
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeLobby_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleDomeLobby_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomeLobby_OnFrame
@@ -262,19 +265,19 @@ BattleFrontier_BattleDomeLobby_EventScript_WalkToDoor:: @ 8249C6E
return return
BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantWalkToDoor:: @ 8249CDD BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantWalkToDoor:: @ 8249CDD
applymovement 1, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor applymovement LOCALID_ATTENDANT_SINGLES, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor
return return
BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantWalkToDoor:: @ 8249CE5 BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantWalkToDoor:: @ 8249CE5
applymovement 6, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor applymovement LOCALID_ATTENDANT_DOUBLES, BattleFrontier_BattleDomeLobby_Movement_WalkToDoor
return return
BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantEnterDoor:: @ 8249CED BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendantEnterDoor:: @ 8249CED
applymovement 1, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT_SINGLES, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor
return return
BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantEnterDoor:: @ 8249CF5 BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendantEnterDoor:: @ 8249CF5
applymovement 6, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT_DOUBLES, BattleFrontier_BattleDomeLobby_Movement_AttendantEnterDoor
return return
BattleFrontier_BattleDomeLobby_EventScript_WelcomeSingles:: @ 8249CFD BattleFrontier_BattleDomeLobby_EventScript_WelcomeSingles:: @ 8249CFD
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleDomePreBattleRoom_MapScripts:: @ 824B1F9 BattleFrontier_BattleDomePreBattleRoom_MapScripts:: @ 824B1F9
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomePreBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleDomePreBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomePreBattleRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomePreBattleRoom_OnWarp
@@ -151,7 +153,7 @@ BattleFrontier_BattleDomePreBattleRoom_EventScript_ContinueChallenge:: @ 824B46D
dome_setopponent dome_setopponent
msgbox BattleFrontier_BattleDomePreBattleRoom_Text_RightThisWay, MSGBOX_DEFAULT msgbox BattleFrontier_BattleDomePreBattleRoom_Text_RightThisWay, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattleDomePreBattleRoom_Movement_AttendantMoveAside applymovement LOCALID_ATTENDANT, BattleFrontier_BattleDomePreBattleRoom_Movement_AttendantMoveAside
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomePreBattleRoom_Movement_PlayerWalkToDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleDomePreBattleRoom_Movement_PlayerWalkToDoor
waitmovement 0 waitmovement 0
@@ -1,3 +1,12 @@
.set LOCALID_SCIENTIST_1, 1
.set LOCALID_OPPONENT, 2
.set LOCALID_SCIENTIST_2, 3
.set LOCALID_SCIENTIST_3, 4
.set LOCALID_SCIENTIST_4, 5
.set LOCALID_SCIENTIST_5, 6
.set LOCALID_SCIENTIST_6, 7
.set LOCALID_PLAYER, 8
BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleFactoryBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleFactoryBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryBattleRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryBattleRoom_OnWarp
@@ -5,7 +14,7 @@ BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB
.byte 0 .byte 0
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 8, which has the gfx id VAR_OBJ_GFX_ID_F @ The player is represented instead by LOCALID_PLAYER, which has the gfx id VAR_OBJ_GFX_ID_F
BattleFrontier_BattleFactoryBattleRoom_OnTransition: @ 825ADBB BattleFrontier_BattleFactoryBattleRoom_OnTransition: @ 825ADBB
frontier_settrainers frontier_settrainers
@@ -22,7 +31,7 @@ BattleFrontier_BattleFactoryBattleRoom_OnTransition: @ 825ADBB
BattleFrontier_BattleFactoryBattleRoom_EventScript_SetUpFactoryHeadObj:: @ 825ADF3 BattleFrontier_BattleFactoryBattleRoom_EventScript_SetUpFactoryHeadObj:: @ 825ADF3
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
setobjectxyperm 2, 7, 9 setobjectxyperm LOCALID_OPPONENT, 7, 9
end end
BattleFrontier_BattleFactoryBattleRoom_OnWarp: @ 825AE00 BattleFrontier_BattleFactoryBattleRoom_OnWarp: @ 825AE00
@@ -34,7 +43,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_HideObjects:: @ 825AE0A
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM hideobjectat LOCALID_OPPONENT, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects:: @ 825AE24 BattleFrontier_BattleFactoryBattleRoom_EventScript_EndHideObjects:: @ 825AE24
end end
@@ -53,8 +62,8 @@ BattleFrontier_BattleFactoryBattleRoom_OnFrame: @ 825AE31
BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle:: @ 825AE3B BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle:: @ 825AE3B
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_GetAMoveOn, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_GetAMoveOn, MSGBOX_DEFAULT
closemessage closemessage
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_NolandMoveToBattle applymovement LOCALID_OPPONENT, BattleFrontier_BattleFactoryBattleRoom_Movement_NolandMoveToBattle
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom applymovement LOCALID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle
@@ -64,15 +73,15 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle::
BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoom:: @ 825AE67 BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoom:: @ 825AE67
compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_EnterRoomFactoryHeadBattle
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom applymovement LOCALID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle call BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle
factory_setopponentgfx factory_setopponentgfx
removeobject 2 removeobject LOCALID_OPPONENT
setobjectxyperm 2, 7, 1 setobjectxyperm LOCALID_OPPONENT, 7, 1
addobject 2 addobject LOCALID_OPPONENT
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_OpponentEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattleFactoryBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleOpponent:: @ 825AEA7 BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleOpponent:: @ 825AEA7
compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY compare VAR_TEMP_F, FRONTIER_BRAIN_NOT_READY
@@ -139,7 +148,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandSilver:: @ 825B
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_NolandLetsSeeFrontierPass, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_NolandLetsSeeFrontierPass, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland applymovement LOCALID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland
waitmovement 0 waitmovement 0
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattleFactoryBattleRoom_Text_ReceivedKnowledgeSymbol message BattleFrontier_BattleFactoryBattleRoom_Text_ReceivedKnowledgeSymbol
@@ -168,7 +177,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNolandGold:: @ 825B09
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_OutOfMyLeagueLetsSeePass, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryBattleRoom_Text_OutOfMyLeagueLetsSeePass, MSGBOX_DEFAULT
waitmessage waitmessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland applymovement LOCALID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_PlayerApproachNoland
waitmovement 0 waitmovement 0
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattleFactoryBattleRoom_Text_KnowledgeSymbolTookGoldenShine message BattleFrontier_BattleFactoryBattleRoom_Text_KnowledgeSymbolTookGoldenShine
@@ -248,12 +257,12 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyDoubles:: @ 825B1A
end end
BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle:: @ 825B1B4 BattleFrontier_BattleFactoryBattleRoom_EventScript_ScientistsFaceBattle:: @ 825B1B4
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_SCIENTIST_1, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_SCIENTIST_2, Common_Movement_WalkInPlaceFastestRight
applymovement 4, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_SCIENTIST_3, Common_Movement_WalkInPlaceFastestRight
applymovement 5, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_SCIENTIST_4, Common_Movement_WalkInPlaceFastestLeft
applymovement 6, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_SCIENTIST_5, Common_Movement_WalkInPlaceFastestLeft
applymovement 7, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_SCIENTIST_6, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,6 @@
.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 6
BattleFrontier_BattleFactoryLobby_MapScripts:: @ 82583E8 BattleFrontier_BattleFactoryLobby_MapScripts:: @ 82583E8
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryLobby_OnWarp
@@ -184,11 +187,11 @@ BattleFrontier_BattleFactoryLobby_EventScript_EnterChallenge:: @ 825871A
end end
BattleFrontier_BattleFactoryLobby_EventScript_TalkedToSinglesAttendant:: @ 825875C BattleFrontier_BattleFactoryLobby_EventScript_TalkedToSinglesAttendant:: @ 825875C
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_SINGLES
return return
BattleFrontier_BattleFactoryLobby_EventScript_TalkedToDoublesAttendant:: @ 8258762 BattleFrontier_BattleFactoryLobby_EventScript_TalkedToDoublesAttendant:: @ 8258762
setvar VAR_LAST_TALKED, 6 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_DOUBLES
return return
BattleFrontier_BattleFactoryLobby_EventScript_ExplainChallenge:: @ 8258768 BattleFrontier_BattleFactoryLobby_EventScript_ExplainChallenge:: @ 8258768
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleFactoryPreBattleRoom_MapScripts:: @ 8259ABA BattleFrontier_BattleFactoryPreBattleRoom_MapScripts:: @ 8259ABA
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryPreBattleRoom_OnWarp
@@ -11,8 +13,8 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_SetUpObjects:: @ 8259ACF
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
compare VAR_0x8006, 1 compare VAR_0x8006, 1
goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth goto_if_ne BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth
setobjectxy 1, 8, 7 setobjectxy LOCALID_ATTENDANT, 8, 7
turnobject 1, DIR_SOUTH turnobject LOCALID_ATTENDANT, DIR_SOUTH
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth:: @ 8259AEA BattleFrontier_BattleFactoryPreBattleRoom_EventScript_TurnPlayerNorth:: @ 8259AEA
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
end end
@@ -25,7 +27,7 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterRoom:: @ 8259AF9
compare VAR_0x8006, 1 compare VAR_0x8006, 1
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantEnterRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
compare VAR_0x8006, 2 compare VAR_0x8006, 2
@@ -70,11 +72,11 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_ReturnToRoomFromBattle:: @
waitse waitse
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_WaitFewMoments, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantMoveToReceiveCall
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_UnderstoodSirWillDo, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_AttendantReturnToPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow, MSGBOX_DEFAULT msgbox BattleFrontier_BattleFactoryPreBattleRoom_Text_MessageFromHeadComeRightNow, MSGBOX_DEFAULT
closemessage closemessage
@@ -419,12 +421,12 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_AskSwapBeforeHead:: @ 825A
case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom case MULTI_B_PRESSED, BattleFrontier_BattleFactoryPreBattleRoom_EventScript_EnterBattleRoom
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50:: @ 825A17C BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLv50:: @ 825A17C
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50 applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLv50
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLv50
return return
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen:: @ 825A18B BattleFrontier_BattleFactoryPreBattleRoom_EventScript_WalkToBattleRoomLvOpen:: @ 825A18B
applymovement 1, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen applymovement LOCALID_ATTENDANT, BattleFrontier_BattleFactoryPreBattleRoom_Movement_GuideWalkToBattleRoomLvOpen
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryPreBattleRoom_Movement_PlayerWalkToBattleRoomLvOpen
return return
@@ -1,3 +1,9 @@
.set LOCALID_PLAYER, 1
.set LOCALID_OPPONENT, 2
.set LOCALID_ATTENDANT, 3
.set LOCALID_DUSCLOPS, 4
.set LOCALID_AZURILL, 5
BattleFrontier_BattlePalaceBattleRoom_MapScripts:: @ 824F815 BattleFrontier_BattlePalaceBattleRoom_MapScripts:: @ 824F815
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePalaceBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePalaceBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceBattleRoom_OnFrame
@@ -5,8 +11,8 @@ BattleFrontier_BattlePalaceBattleRoom_MapScripts:: @ 824F815
.byte 0 .byte 0
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 1, which has the gfx id VAR_OBJ_GFX_ID_0 @ The player is represented instead by LOCALID_PLAYER, which has the gfx id VAR_OBJ_GFX_ID_0
@ The opponent is represented by object event 2, which has the gfx id VAR_OBJ_GFX_ID_1 @ The opponent is represented by LOCALID_OPPONENT, which has the gfx id VAR_OBJ_GFX_ID_1
BattleFrontier_BattlePalaceBattleRoom_OnTransition: @ 824F825 BattleFrontier_BattlePalaceBattleRoom_OnTransition: @ 824F825
frontier_settrainers frontier_settrainers
@@ -37,24 +43,24 @@ BattleFrontier_BattlePalaceBattleRoom_OnFrame: @ 824F861
.2byte 0 .2byte 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_EnterRoom:: @ 824F86B BattleFrontier_BattlePalaceBattleRoom_EventScript_EnterRoom:: @ 824F86B
showobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM showobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_BeginChallenge goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_BeginChallenge
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_PlayerReturnToChallenge applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_PlayerReturnToChallenge
waitmovement 0 waitmovement 0
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown
setvar VAR_TEMP_2, 1 setvar VAR_TEMP_2, 1
frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_AskReadyForOpponent goto BattleFrontier_BattlePalaceBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattlePalaceBattleRoom_EventScript_BeginChallenge:: @ 824F8B5 BattleFrontier_BattlePalaceBattleRoom_EventScript_BeginChallenge:: @ 824F8B5
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_PlayerEnterRoom applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_NextOpponentEnter:: @ 824F8BF BattleFrontier_BattlePalaceBattleRoom_EventScript_NextOpponentEnter:: @ 824F8BF
tower_setopponent tower_setopponent
addobject 2 addobject LOCALID_OPPONENT
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_OpponentEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattlePalaceBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
palace_getopponentintro palace_getopponentintro
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -73,11 +79,11 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_DefeatedOpponent:: @ 824F911
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
switch VAR_RESULT switch VAR_RESULT
case 7, BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon case 7, BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_OpponentExit applymovement LOCALID_OPPONENT, BattleFrontier_BattlePalaceBattleRoom_Movement_OpponentExit
waitmovement 0 waitmovement 0
removeobject 2 removeobject LOCALID_OPPONENT
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_LetMeRestoreYourMons, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_LetMeRestoreYourMons, MSGBOX_DEFAULT
special LoadPlayerParty special LoadPlayerParty
@@ -153,8 +159,8 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_AskRetireChallenge:: @ 824FAE2
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_AskReadyForOpponent case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_AskReadyForOpponent
BattleFrontier_BattlePalaceBattleRoom_EventScript_ContinueChallenge:: @ 824FB14 BattleFrontier_BattlePalaceBattleRoom_EventScript_ContinueChallenge:: @ 824FB14
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight
closemessage closemessage
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_NextOpponentEnter goto BattleFrontier_BattlePalaceBattleRoom_EventScript_NextOpponentEnter
@@ -203,16 +209,16 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_BattleSpenser:: @ 824FC06
call BattleFrontier_EventScript_SetBrainObjectGfx call BattleFrontier_EventScript_SetBrainObjectGfx
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_AnnounceArrivalOfSpenser, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_AnnounceArrivalOfSpenser, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceRight
setobjectxyperm 2, 15, 1 setobjectxyperm LOCALID_OPPONENT, 15, 1
addobject 2 addobject LOCALID_OPPONENT
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM hideobjectat LOCALID_OPPONENT, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
setobjectxy 2, 13, 1 setobjectxy LOCALID_OPPONENT, 13, 1
setobjectxyperm 2, 13, 1 setobjectxyperm LOCALID_OPPONENT, 13, 1
applymovement 4, BattleFrontier_BattlePalaceBattleRoom_Movement_DusclopsEnter applymovement LOCALID_DUSCLOPS, BattleFrontier_BattlePalaceBattleRoom_Movement_DusclopsEnter
applymovement 5, BattleFrontier_BattlePalaceBattleRoom_Movement_AzurillEnter applymovement LOCALID_AZURILL, BattleFrontier_BattlePalaceBattleRoom_Movement_AzurillEnter
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_SpenserEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattlePalaceBattleRoom_Movement_SpenserEnter
waitmovement 0 waitmovement 0
switch VAR_TEMP_F switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePalaceBattleRoom_EventScript_IntroSpenserGold case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePalaceBattleRoom_EventScript_IntroSpenserGold
@@ -236,18 +242,18 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_DefeatedSpenserSilver:: @ 824F
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserPostSilverBattle, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserPostSilverBattle, MSGBOX_DEFAULT
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_LetsSeeFrontierPass, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_LetsSeeFrontierPass, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattlePalaceBattleRoom_Text_ReceivedSpiritsSymbol message BattleFrontier_BattlePalaceBattleRoom_Text_ReceivedSpiritsSymbol
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
applymovement 2, Common_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT, Common_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_ATTENDANT, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserAwaitNextTime, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserAwaitNextTime, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon goto BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon
@@ -271,18 +277,18 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_DefeatedSpenserGold:: @ 824FD8
compare VAR_RESULT, 2 compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserYourTeamIsAdmirable, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserYourTeamIsAdmirable, MSGBOX_DEFAULT
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp applymovement LOCALID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceUp
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceBattleRoom_Movement_FaceDown
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_HurryWithFrontierPass, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_HurryWithFrontierPass, MSGBOX_DEFAULT
playfanfare MUS_ME_SYMBOLGET playfanfare MUS_ME_SYMBOLGET
message BattleFrontier_BattlePalaceBattleRoom_Text_SpiritsSymbolTookGoldenShine message BattleFrontier_BattlePalaceBattleRoom_Text_SpiritsSymbolTookGoldenShine
waitmessage waitmessage
waitfanfare waitfanfare
frontier_givesymbol frontier_givesymbol
applymovement 2, Common_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT, Common_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_ATTENDANT, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserComeSeeMeAgain, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePalaceBattleRoom_Text_SpenserComeSeeMeAgain, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon goto BattleFrontier_BattlePalaceBattleRoom_EventScript_WarpToLobbyWon
@@ -306,13 +312,13 @@ BattleFrontier_BattlePalaceBattleRoom_OnWarp: @ 824FE34
.2byte 0 .2byte 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_SetUpRoomObjects:: @ 824FE3E BattleFrontier_BattlePalaceBattleRoom_EventScript_SetUpRoomObjects:: @ 824FE3E
hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM hideobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
call BattleFrontier_BattlePalaceBattleRoom_EventScript_SetPlayerGfx call BattleFrontier_BattlePalaceBattleRoom_EventScript_SetPlayerGfx
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible
removeobject 2 removeobject LOCALID_OPPONENT
applymovement 4, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible applymovement LOCALID_DUSCLOPS, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible
applymovement 5, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible applymovement LOCALID_AZURILL, BattleFrontier_BattlePalaceBattleRoom_Movement_SetInvisible
end end
BattleFrontier_BattlePalaceBattleRoom_EventScript_ReadyFor2ndOpponent:: @ 824FE66 BattleFrontier_BattlePalaceBattleRoom_EventScript_ReadyFor2ndOpponent:: @ 824FE66
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattlePalaceCorridor_MapScripts:: @ 824F4A3 BattleFrontier_BattlePalaceCorridor_MapScripts:: @ 824F4A3
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceCorridor_OnFrame
.byte 0 .byte 0
@@ -8,7 +10,7 @@ BattleFrontier_BattlePalaceCorridor_OnFrame: @ 824F4A9
BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor:: @ 824F4B3 BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor:: @ 824F4B3
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor
waitmovement 0 waitmovement 0
lockall lockall
@@ -27,12 +29,12 @@ BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor:: @ 824F4B3
frontier_get FRONTIER_DATA_LVL_MODE frontier_get FRONTIER_DATA_LVL_MODE
compare VAR_RESULT, FRONTIER_LVL_OPEN compare VAR_RESULT, FRONTIER_LVL_OPEN
goto_if_eq BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom goto_if_eq BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom
applymovement 1, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkTo50BattleRoom applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkTo50BattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkTo50BattleRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkTo50BattleRoom
waitmovement 0 waitmovement 0
opendoor 6, 3 opendoor 6, 3
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom
waitmovement 0 waitmovement 0
closedoor 6, 3 closedoor 6, 3
@@ -40,12 +42,12 @@ BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor:: @ 824F4B3
goto BattleFrontier_BattlePalaceCorridor_EventScript_WarpToBattleRoom goto BattleFrontier_BattlePalaceCorridor_EventScript_WarpToBattleRoom
BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom:: @ 824F553 BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom:: @ 824F553
applymovement 1, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkToOpenBattleRoom applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkToOpenBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkToOpenBattleRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkToOpenBattleRoom
waitmovement 0 waitmovement 0
opendoor 10, 3 opendoor 10, 3
waitdooranim waitdooranim
applymovement 1, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom
waitmovement 0 waitmovement 0
closedoor 10, 3 closedoor 10, 3
@@ -1,3 +1,6 @@
.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 6
BattleFrontier_BattlePalaceLobby_MapScripts:: @ 824D77E BattleFrontier_BattlePalaceLobby_MapScripts:: @ 824D77E
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePalaceLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePalaceLobby_OnWarp
@@ -269,11 +272,11 @@ BattleFrontier_BattlePalaceLobby_EventScript_WalkToDoor:: @ 824DBBC
return return
BattleFrontier_BattlePalaceLobby_EventScript_TalkedToSinglesAttendant:: @ 824DC23 BattleFrontier_BattlePalaceLobby_EventScript_TalkedToSinglesAttendant:: @ 824DC23
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_SINGLES
return return
BattleFrontier_BattlePalaceLobby_EventScript_TalkedToDoublesAttendant:: @ 824DC29 BattleFrontier_BattlePalaceLobby_EventScript_TalkedToDoublesAttendant:: @ 824DC29
setvar VAR_LAST_TALKED, 6 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_DOUBLES
return return
BattleFrontier_BattlePalaceLobby_EventScript_OpenSinglesHallDoor:: @ 824DC2F BattleFrontier_BattlePalaceLobby_EventScript_OpenSinglesHallDoor:: @ 824DC2F
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattlePikeCorridor_MapScripts:: @ 825C771 BattleFrontier_BattlePikeCorridor_MapScripts:: @ 825C771
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeCorridor_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeCorridor_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeCorridor_OnWarp
@@ -13,7 +15,7 @@ BattleFrontier_BattlePikeCorridor_EventScript_EnterCorridor:: @ 825C786
pike_cleartrainerids pike_cleartrainerids
pike_nohealing TRUE pike_nohealing TRUE
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerEnterCorridor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_PlayerEnterCorridor
applymovement 1, BattleFrontier_BattlePikeCorridor_Movement_AttendantEnterCorridor applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePikeCorridor_Movement_AttendantEnterCorridor
waitmovement 0 waitmovement 0
lockall lockall
msgbox BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeCorridor_Text_YourChallengeHasBegun, MSGBOX_DEFAULT
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattlePikeLobby_MapScripts:: @ 825B6C6 BattleFrontier_BattlePikeLobby_MapScripts:: @ 825B6C6
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeLobby_OnWarp
@@ -200,7 +202,7 @@ BattleFrontier_BattlePikeLobby_EventScript_ShowResults:: @ 825BA80
end end
BattleFrontier_BattlePikeLobby_EventScript_WalkToCorridor:: @ 825BA94 BattleFrontier_BattlePikeLobby_EventScript_WalkToCorridor:: @ 825BA94
applymovement 1, BattleFrontier_BattlePikeLobby_Movement_AttendantWalkToCorridor applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePikeLobby_Movement_AttendantWalkToCorridor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeLobby_Movement_PlayerWalkToCorridor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeLobby_Movement_PlayerWalkToCorridor
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattlePikeRoomFinal_MapScripts:: @ 825E392 BattleFrontier_BattlePikeRoomFinal_MapScripts:: @ 825E392
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomFinal_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomFinal_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomFinal_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoomFinal_OnWarp
@@ -9,7 +11,7 @@ BattleFrontier_BattlePikeRoomFinal_OnFrame: @ 825E39D
BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom:: @ 825E3A7 BattleFrontier_BattlePikeRoomFinal_EventScript_EnterRoom:: @ 825E3A7
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePikeRoomFinal_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
lockall lockall
@@ -1,3 +1,8 @@
@ Objects in this room are set dynamically with OBJ_EVENT_GFX_VAR_0 and OBJ_EVENT_GFX_VAR_1
@ Note: LOCALIDs shared with data/scripts/battle_pike.inc
.equ LOCALID_OBJ_0, 1
.equ LOCALID_OBJ_1, 2
BattleFrontier_BattlePikeRoomNormal_MapScripts:: @ 825D152 BattleFrontier_BattlePikeRoomNormal_MapScripts:: @ 825D152
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePikeRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePikeRoom_OnTransition
@@ -24,7 +29,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterRoom:: @ 825D171
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterSingleBattleRoom:: @ 825D1C6 BattleFrontier_BattlePikeRoomNormal_EventScript_EnterSingleBattleRoom:: @ 825D1C6
lockall lockall
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
waitmovement 0 waitmovement 0
pike_gettrainerintro 0 pike_gettrainerintro 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -44,7 +49,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost:: @ 825D20A
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_WonSingleBattle:: @ 825D226 BattleFrontier_BattlePikeRoomNormal_EventScript_WonSingleBattle:: @ 825D226
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
waitmovement 0 waitmovement 0
end end
@@ -54,7 +59,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterHardBattleRoom:: @ 825D231
msgbox BattleFrontier_BattlePikeRoomNormal_Text_BattleSomewhatToughTrainer, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_BattleSomewhatToughTrainer, MSGBOX_DEFAULT
waitmessage waitmessage
closemessage closemessage
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
waitmovement 0 waitmovement 0
pike_gettrainerintro 0 pike_gettrainerintro 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -71,9 +76,9 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterHardBattleRoom:: @ 825D231
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle:: @ 825D285 BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle:: @ 825D285
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCApproachPlayer applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCApproachPlayer
waitmovement 0 waitmovement 0
lock lock
faceplayer faceplayer
@@ -84,14 +89,14 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle:: @ 825D285
msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge2, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge2, MSGBOX_DEFAULT
closemessage closemessage
release release
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
waitmovement 0 waitmovement 0
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterBrainRoom:: @ 825D2BF BattleFrontier_BattlePikeRoomNormal_EventScript_EnterBrainRoom:: @ 825D2BF
delay 22 delay 22
lockall lockall
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_PreQueenHealNPCApproachPlayer applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_PreQueenHealNPCApproachPlayer
waitmovement 0 waitmovement 0
pike_prequeenheal pike_prequeenheal
switch VAR_RESULT switch VAR_RESULT
@@ -104,7 +109,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter:: @ 825D2FB
closemessage closemessage
special SpawnCameraObject special SpawnCameraObject
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePikeRoomNormal_Movement_CameraPanUp applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePikeRoomNormal_Movement_CameraPanUp
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExitForLucy applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExitForLucy
waitmovement 0 waitmovement 0
playse SE_CURTAIN playse SE_CURTAIN
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed
@@ -118,13 +123,13 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter:: @ 825D2FB
playse SE_CURTAIN1 playse SE_CURTAIN1
delay 65 delay 65
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesMostlyClosed call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesMostlyClosed
showobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL showobjectat LOCALID_OBJ_0, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL
delay 4 delay 4
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed
delay 4 delay 4
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesOpen call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesOpen
waitse waitse
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_LucyEnter applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_LucyEnter
waitmovement 0 waitmovement 0
pike_getbrainstatus pike_getbrainstatus
switch VAR_RESULT switch VAR_RESULT
@@ -188,7 +193,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucyGold:: @ 825D460
end end
BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy:: @ 825D49D BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy:: @ 825D49D
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_LucyMoveAside applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_LucyMoveAside
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerWalkUp2 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerWalkUp2
waitmovement 0 waitmovement 0
@@ -221,7 +226,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenHealTwoMons:: @ 825D4FC
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom:: @ 825D50E BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom:: @ 825D50E
lockall lockall
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
waitmovement 0 waitmovement 0
message BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreToFullHealth message BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreToFullHealth
waitmessage waitmessage
@@ -230,7 +235,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom:: @ 825D50E
special HealPlayerParty special HealPlayerParty
msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
waitmovement 0 waitmovement 0
releaseall releaseall
end end
@@ -238,14 +243,14 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom:: @ 825D50E
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom:: @ 825D53E BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom:: @ 825D53E
lockall lockall
delay 16 delay 16
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1WalkRight applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1WalkRight
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2WalkLeft applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2WalkLeft
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1FacePlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1FacePlayer
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2FacePlayer applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2FacePlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer1 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer1
waitmovement 0 waitmovement 0
@@ -270,9 +275,9 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom:: @ 825D53
BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle:: @ 825D5DC BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle:: @ 825D5DC
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer2 applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer2
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1Exit applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1Exit
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2Exit applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2Exit
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceUp applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceUp
waitmovement 0 waitmovement 0
@@ -281,7 +286,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle:: @ 825D5DC
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterStatusRoom:: @ 825D605 BattleFrontier_BattlePikeRoomNormal_EventScript_EnterStatusRoom:: @ 825D605
lockall lockall
message BattleFrontier_BattlePikeRoomNormal_Text_WatchOut message BattleFrontier_BattlePikeRoomNormal_Text_WatchOut
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonApproachPlayer applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonApproachPlayer
waitmovement 0 waitmovement 0
pike_getstatusmon pike_getstatusmon
copyvar VAR_0x8004, VAR_RESULT copyvar VAR_0x8004, VAR_RESULT
@@ -311,9 +316,9 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaAttack:: @ 825D643
call_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedHypnosis call_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedHypnosis
pike_flashscreen pike_flashscreen
waitstate waitstate
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC
waitmovement 0 waitmovement 0
waitse waitse
playmoncry SPECIES_KIRLIA, 0 playmoncry SPECIES_KIRLIA, 0
@@ -323,8 +328,8 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaAttack:: @ 825D643
playmoncry SPECIES_KIRLIA, 0 playmoncry SPECIES_KIRLIA, 0
waitmoncry waitmoncry
closemessage closemessage
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForKirlia, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForKirlia, MSGBOX_DEFAULT
return return
@@ -342,9 +347,9 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsAttack:: @ 825D6D5
call_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedWillOWisp call_if_eq BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedWillOWisp
pike_flashscreen pike_flashscreen
waitstate waitstate
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC
waitmovement 0 waitmovement 0
waitse waitse
playmoncry SPECIES_DUSCLOPS, 0 playmoncry SPECIES_DUSCLOPS, 0
@@ -354,8 +359,8 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsAttack:: @ 825D6D5
playmoncry SPECIES_DUSCLOPS, 0 playmoncry SPECIES_DUSCLOPS, 0
waitmoncry waitmoncry
closemessage closemessage
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForDusclops, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForDusclops, MSGBOX_DEFAULT
return return
@@ -573,7 +578,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_HealNPC:: @ 825D83E
msgbox BattleFrontier_BattlePikeRoomNormal_Text_BestOfLuckFarewell, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_BestOfLuckFarewell, MSGBOX_DEFAULT
closemessage closemessage
release release
applymovement 1, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExit applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExit
waitmovement 0 waitmovement 0
end end
@@ -598,7 +603,7 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_StatusMon:: @ 825D88D
msgbox BattleFrontier_BattlePikeRoomNormal_Text_Silence, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeRoomNormal_Text_Silence, MSGBOX_DEFAULT
closemessage closemessage
release release
applymovement 2, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceRight applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceRight
waitmovement 0 waitmovement 0
end end
@@ -1,3 +1,5 @@
.set LOCALID_HINT_GIVER, 2
BattleFrontier_BattlePikeThreePathRoom_MapScripts:: @ 825C843 BattleFrontier_BattlePikeThreePathRoom_MapScripts:: @ 825C843
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeThreePathRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeThreePathRoom_OnFrame
@@ -159,12 +161,12 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_SetPikeQueenHint:: @ 825CA91
end end
BattleFrontier_BattlePikeThreePathRoom_EventScript_GivePikeQueenHint:: @ 825CA97 BattleFrontier_BattlePikeThreePathRoom_EventScript_GivePikeQueenHint:: @ 825CA97
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverApproachPlayer applymovement LOCALID_HINT_GIVER, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverApproachPlayer
waitmovement 0 waitmovement 0
lockall lockall
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent, MSGBOX_DEFAULT
releaseall releaseall
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverReturnToPos applymovement LOCALID_HINT_GIVER, BattleFrontier_BattlePikeThreePathRoom_Movement_HintGiverReturnToPos
waitmovement 0 waitmovement 0
setvar VAR_TEMP_5, 255 setvar VAR_TEMP_5, 255
end end
@@ -1,3 +1,6 @@
.set LOCALID_ATTENDANT, 1
.set LOCALID_HINT_GIVER, 2
BattleFrontier_BattlePyramidLobby_MapScripts:: @ 8250716 BattleFrontier_BattlePyramidLobby_MapScripts:: @ 8250716
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleDomeLobby_OnWarp
@@ -206,7 +209,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_EndCancelChallenge:: @ 8250ACC
BattleFrontier_BattlePyramidLobby_EventScript_HintGiver:: @ 8250ACE BattleFrontier_BattlePyramidLobby_EventScript_HintGiver:: @ 8250ACE
lockall lockall
applymovement 2, Common_Movement_FacePlayer applymovement LOCALID_HINT_GIVER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidLobby_Text_TellYouWhatMisfortunesAwait, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidLobby_Text_TellYouWhatMisfortunesAwait, MSGBOX_DEFAULT
call BattleFrontier_BattlePyramidLobby_EventScript_GiveHint call BattleFrontier_BattlePyramidLobby_EventScript_GiveHint
@@ -370,7 +373,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_ShowResults:: @ 8250D42
end end
BattleFrontier_BattlePyramidLobby_EventScript_WalkToPanelAndReceiveBag:: @ 8250D56 BattleFrontier_BattlePyramidLobby_EventScript_WalkToPanelAndReceiveBag:: @ 8250D56
applymovement 1, BattleFrontier_BattlePyramidLobby_Movement_AttendantWalkToPanel applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidLobby_Movement_AttendantWalkToPanel
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidLobby_Movement_PlayerWalkToPanel applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidLobby_Movement_PlayerWalkToPanel
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidLobby_Text_WeWillHoldBagForSafekeeping, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidLobby_Text_WeWillHoldBagForSafekeeping, MSGBOX_DEFAULT
@@ -389,7 +392,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_ReceiveBattleBag:: @ 8250D9C
waitse waitse
msgbox BattleFrontier_BattlePyramidLobby_Text_StepOnFloorPanel, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidLobby_Text_StepOnFloorPanel, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattlePyramidLobby_Movement_AttendantMoveAside applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidLobby_Movement_AttendantMoveAside
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidLobby_Movement_PlayerStepOnPanel applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidLobby_Movement_PlayerStepOnPanel
waitmovement 0 waitmovement 0
@@ -1,3 +1,6 @@
.set LOCALID_ATTENDANT, 1
.set LOCALID_BRANDON, 2
BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1 BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidTop_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidTop_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidTop_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidTop_OnFrame
@@ -19,7 +22,7 @@ BattleFrontier_BattlePyramidTop_EventScript_SetUpObjects:: @ 82550D8
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
compare VAR_TEMP_C, 0 compare VAR_TEMP_C, 0
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects
setobjectxyperm 2, 0, 0 setobjectxyperm LOCALID_BRANDON, 0, 0
BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects:: @ 82550F3 BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects:: @ 82550F3
end end
@@ -77,11 +80,11 @@ BattleFrontier_BattlePyramidTop_EventScript_Attendant:: @ 82551D0
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside
msgbox BattleFrontier_BattlePyramidTop_Text_ReachedSummitUpYouGo, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ReachedSummitUpYouGo, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath
waitmovement 0 waitmovement 0
message BattleFrontier_BattlePyramidTop_Text_PlayerConqueredPyramid message BattleFrontier_BattlePyramidTop_Text_PlayerConqueredPyramid
waitmessage waitmessage
@@ -101,7 +104,7 @@ BattleFrontier_BattlePyramidTop_EventScript_StepForwardWhenReady:: @ 8255236
BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside:: @ 8255240 BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside:: @ 8255240
msgbox BattleFrontier_BattlePyramidTop_Text_ChiefBeatYouHere, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ChiefBeatYouHere, MSGBOX_DEFAULT
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
setvar VAR_TEMP_D, 1 setvar VAR_TEMP_D, 1
closemessage closemessage
end end
@@ -121,14 +124,14 @@ BattleFrontier_BattlePyramidTop_EventScript_BattleBrandon:: @ 8255256
msgbox BattleFrontier_BattlePyramidTop_Text_ExplorationsAreGrandestAdventure, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ExplorationsAreGrandestAdventure, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_ImPyramidKingBrandon, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_ImPyramidKingBrandon, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver
end end
BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech:: @ 82552D0 BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech:: @ 82552D0
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver:: @ 82552DA BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver:: @ 82552DA
msgbox BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle, MSGBOX_DEFAULT
@@ -161,14 +164,14 @@ BattleFrontier_BattlePyramidTop_EventScript_BrandonIntroGold:: @ 8255335
msgbox BattleFrontier_BattlePyramidTop_Text_BrandonYouveReturned, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_BrandonYouveReturned, MSGBOX_DEFAULT
closemessage closemessage
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_MyCourageIsOffMeter, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_MyCourageIsOffMeter, MSGBOX_DEFAULT
goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold
end end
BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech:: @ 8255388 BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech:: @ 8255388
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
waitmovement 0 waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold:: @ 8255392 BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold:: @ 8255392
msgbox BattleFrontier_BattlePyramidTop_Text_EverythingYouHave, MSGBOX_DEFAULT msgbox BattleFrontier_BattlePyramidTop_Text_EverythingYouHave, MSGBOX_DEFAULT
@@ -1,3 +1,7 @@
.set LOCALID_OPPONENT, 1
.set LOCALID_ATTENDANT_1, 2
.set LOCALID_ATTENDANT_2, 3
BattleFrontier_BattleTowerBattleRoom_MapScripts:: @ 8241B40 BattleFrontier_BattleTowerBattleRoom_MapScripts:: @ 8241B40
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerBattleRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerBattleRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerBattleRoom_OnWarp
@@ -9,7 +13,7 @@ BattleFrontier_BattleTowerBattleRoom_OnWarp: @ 8241B4B
BattleFrontier_BattleTowerBattleRoom_EventScript_SetUpObjects:: @ 8241B55 BattleFrontier_BattleTowerBattleRoom_EventScript_SetUpObjects:: @ 8241B55
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_SetInvisible applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SetInvisible
end end
BattleFrontier_BattleTowerBattleRoom_OnFrame: @ 8241B62 BattleFrontier_BattleTowerBattleRoom_OnFrame: @ 8241B62
@@ -23,7 +27,7 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_EnterRoom:: @ 8241B6C
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter goto_if_eq BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter
applymovement 2, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant
waitmovement 0 waitmovement 0
@@ -33,8 +37,8 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_EnterRoom:: @ 8241B6C
BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter:: @ 8241BC3 BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter:: @ 8241BC3
tower_setopponent tower_setopponent
addobject 1 addobject LOCALID_OPPONENT
applymovement 1, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
tower_getopponentintro 0 tower_getopponentintro 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
@@ -54,13 +58,13 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_DefeatedOpponent:: @ 8241C2F
tower_setbattlewon tower_setbattlewon
switch VAR_RESULT switch VAR_RESULT
case 7, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon case 7, BattleFrontier_BattleTowerBattleRoom_EventScript_WarpToLobbyWon
applymovement 1, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentExit applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_OpponentExit
waitmovement 0 waitmovement 0
removeobject 1 removeobject LOCALID_OPPONENT
frontier_getbrainstatus frontier_getbrainstatus
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
call_if_ne BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter call_if_ne BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter
applymovement 2, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceAttendant
waitmovement 0 waitmovement 0
@@ -127,7 +131,7 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_ContinueChallenge:: @ 8241DDC
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos
waitmovement 0 waitmovement 0
goto BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter goto BattleFrontier_BattleTowerBattleRoom_EventScript_OpponentEnter
@@ -193,19 +197,19 @@ BattleFrontier_EventScript_IncrementWinStreak:: @ 8241EBA
return return
BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter:: @ 8241EC3 BattleFrontier_BattleTowerBattleRoom_EventScript_SecondAttendantEnter:: @ 8241EC3
applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantEnter applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantEnter
waitmovement 0 waitmovement 0
applymovement 3, Common_Movement_WalkInPlaceLeft applymovement LOCALID_ATTENDANT_2, Common_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark applymovement LOCALID_ATTENDANT_1, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 2, Common_Movement_Delay48 applymovement LOCALID_ATTENDANT_1, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantDelay applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantDelay
applymovement 2, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantFaceSecondAttendant applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantFaceSecondAttendant
waitmovement 0 waitmovement 0
applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantExit applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerBattleRoom_Movement_SecondAttendantExit
waitmovement 0 waitmovement 0
return return
@@ -241,10 +245,10 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_BattleAnabel:: @ 8241FAF
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerBattleRoom_Movement_PlayerFaceBattle
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerBattleRoom_Movement_AttendantReturnToPos
waitmovement 0 waitmovement 0
addobject 1 addobject LOCALID_OPPONENT
applymovement 1, BattleFrontier_BattleTowerBattleRoom_Movement_AnabelEnter applymovement LOCALID_OPPONENT, BattleFrontier_BattleTowerBattleRoom_Movement_AnabelEnter
waitmovement 0 waitmovement 0
switch VAR_TEMP_F switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleTowerBattleRoom_EventScript_AnabelGoldIntro case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleTowerBattleRoom_EventScript_AnabelGoldIntro
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleTowerCorridor_MapScripts:: @ 8241AAA BattleFrontier_BattleTowerCorridor_MapScripts:: @ 8241AAA
map_script MAP_SCRIPT_ON_LOAD, BattleFrontier_BattleTowerCorridor_OnLoad map_script MAP_SCRIPT_ON_LOAD, BattleFrontier_BattleTowerCorridor_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerCorridor_OnFrame
@@ -23,13 +25,13 @@ BattleFrontier_BattleTowerCorridor_EventScript_EnterCorridor:: @ 8241AF0
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
compare VAR_0x8006, 1 compare VAR_0x8006, 1
goto_if_eq BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor goto_if_eq BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor
applymovement 1, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToDoor
waitmovement 0 waitmovement 0
goto BattleFrontier_BattleTowerCorridor_EventScript_WarpToBattleRoom goto BattleFrontier_BattleTowerCorridor_EventScript_WarpToBattleRoom
BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor:: @ 8241B16 BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor:: @ 8241B16
applymovement 1, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToFarDoor applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToFarDoor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToFarDoor applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToFarDoor
waitmovement 0 waitmovement 0
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleTowerElevator_MapScripts:: @ 82419DB BattleFrontier_BattleTowerElevator_MapScripts:: @ 82419DB
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerElevator_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleTowerElevator_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerElevator_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerElevator_OnWarp
@@ -9,7 +11,7 @@ BattleFrontier_BattleTowerElevator_OnFrame: @ 82419E6
BattleFrontier_BattleTowerElevator_EventScript_EnterElevator:: @ 82419F0 BattleFrontier_BattleTowerElevator_EventScript_EnterElevator:: @ 82419F0
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 1, BattleFrontier_BattleTowerElevator_Movement_AttendantEnter applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerElevator_Movement_AttendantEnter
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerEnter applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerEnter
waitmovement 0 waitmovement 0
special BufferBattleTowerElevatorFloors special BufferBattleTowerElevatorFloors
@@ -17,7 +19,7 @@ BattleFrontier_BattleTowerElevator_EventScript_EnterElevator:: @ 82419F0
special MoveElevator special MoveElevator
waitstate waitstate
delay 48 delay 48
applymovement 1, BattleFrontier_BattleTowerElevator_Movement_AttendantExit applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerElevator_Movement_AttendantExit
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerExit applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerExit
waitmovement 0 waitmovement 0
call BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoom call BattleFrontier_BattleTowerElevator_EventScript_WarpToNextRoom
@@ -1,3 +1,8 @@
.set LOCALID_ATTENDANT_SINGLES, 1
.set LOCALID_ATTENDANT_DOUBLES, 7
.set LOCALID_ATTENDANT_MULTIS, 8
.set LOCALID_ATTENDANT_LINK_MULTIS, 9
BattleFrontier_BattleTowerLobby_MapScripts:: @ 823E67B BattleFrontier_BattleTowerLobby_MapScripts:: @ 823E67B
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleTowerLobby_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleTowerLobby_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerLobby_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerLobby_OnTransition
@@ -706,19 +711,19 @@ BattleFrontier_BattleTowerLobby_EventScript_SetAttendantTalkedTo:: @ 823F1E8
return return
BattleFrontier_BattleTowerLobby_EventScript_TalkedToSinglesAttendant:: @ 823F215 BattleFrontier_BattleTowerLobby_EventScript_TalkedToSinglesAttendant:: @ 823F215
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_SINGLES
return return
BattleFrontier_BattleTowerLobby_EventScript_TalkedToDoublesAttendant:: @ 823F21B BattleFrontier_BattleTowerLobby_EventScript_TalkedToDoublesAttendant:: @ 823F21B
setvar VAR_LAST_TALKED, 7 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_DOUBLES
return return
BattleFrontier_BattleTowerLobby_EventScript_TalkedToMultisAttendant:: @ 823F221 BattleFrontier_BattleTowerLobby_EventScript_TalkedToMultisAttendant:: @ 823F221
setvar VAR_LAST_TALKED, 8 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_MULTIS
return return
BattleFrontier_BattleTowerLobby_EventScript_TalkedToLinkMultisAttendant:: @ 823F227 BattleFrontier_BattleTowerLobby_EventScript_TalkedToLinkMultisAttendant:: @ 823F227
setvar VAR_LAST_TALKED, 9 setvar VAR_LAST_TALKED, LOCALID_ATTENDANT_LINK_MULTIS
return return
BattleFrontier_BattleTowerLobby_EventScript_GetDoorXCoord:: @ 823F22D BattleFrontier_BattleTowerLobby_EventScript_GetDoorXCoord:: @ 823F22D
@@ -1,3 +1,10 @@
.set LOCALID_OPPONENT_1, 1
.set LOCALID_ATTENDANT_1, 2
.set LOCALID_ATTENDANT_2, 3
.set LOCALID_OPPONENT_2, 4
.set LOCALID_PLAYER, 5
.set LOCALID_PARTNER, 6
BattleFrontier_BattleTowerMultiBattleRoom_MapScripts:: @ 8248EE8 BattleFrontier_BattleTowerMultiBattleRoom_MapScripts:: @ 8248EE8
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerMultiBattleRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerMultiBattleRoom_OnWarp
@@ -5,8 +12,8 @@ BattleFrontier_BattleTowerMultiBattleRoom_MapScripts:: @ 8248EE8
.byte 0 .byte 0
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 5, which has the gfx id VAR_OBJ_GFX_ID_F @ The player is represented instead by LOCALID_PLAYER, which has the gfx id VAR_OBJ_GFX_ID_F
@ The multi partner is represented by object event 6, which has the gfx id VAR_OBJ_GFX_ID_E @ The multi partner is represented by LOCALID_PARTNER, which has the gfx id VAR_OBJ_GFX_ID_E
BattleFrontier_BattleTowerMultiBattleRoom_OnTransition: @ 8248EF8 BattleFrontier_BattleTowerMultiBattleRoom_OnTransition: @ 8248EF8
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS
@@ -45,38 +52,38 @@ BattleFrontier_BattleTowerMultiBattleRoom_OnFrame: @ 8248F43
BattleFrontier_BattleTowerMultiBattleRoom_EventScript_EnterRoom:: @ 8248F4D BattleFrontier_BattleTowerMultiBattleRoom_EventScript_EnterRoom:: @ 8248F4D
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 5, BattleFrontier_BattleTowerMultiBattleRoom_Movement_PlayerEnterRoom applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_PlayerEnterRoom
applymovement 6, BattleFrontier_BattleTowerMultiBattleRoom_Movement_PartnerEnterRoom applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_PartnerEnterRoom
waitmovement 0 waitmovement 0
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter
applymovement 2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer
applymovement 3, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement 5, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant
applymovement 6, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant
waitmovement 0 waitmovement 0
frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE frontier_set FRONTIER_DATA_RECORD_DISABLED, TRUE
goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_AskReadyForOpponents goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_AskReadyForOpponents
BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter:: @ 8248FB4 BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter:: @ 8248FB4
tower_setopponent tower_setopponent
addobject 1 addobject LOCALID_OPPONENT_1
addobject 4 addobject LOCALID_OPPONENT_2
applymovement 1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent1Enter applymovement LOCALID_OPPONENT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent1Enter
applymovement 4, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent2Enter applymovement LOCALID_OPPONENT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent2Enter
waitmovement 0 waitmovement 0
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS
goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_DoOpponentIntrosLink goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_DoOpponentIntrosLink
tower_getopponentintro 0 tower_getopponentintro 0
delay 15 delay 15
applymovement 1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
waitmessage waitmessage
tower_getopponentintro 1 tower_getopponentintro 1
applymovement 4, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
msgbox gStringVar4, MSGBOX_DEFAULT msgbox gStringVar4, MSGBOX_DEFAULT
waitmessage waitmessage
@@ -85,13 +92,13 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter:: @ 8248FB4
BattleFrontier_BattleTowerMultiBattleRoom_EventScript_DoOpponentIntrosLink:: @ 8249026 BattleFrontier_BattleTowerMultiBattleRoom_EventScript_DoOpponentIntrosLink:: @ 8249026
tower_getopponentintro 0 tower_getopponentintro 0
delay 15 delay 15
applymovement 1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
messageautoscroll gStringVar4 messageautoscroll gStringVar4
waitmessage waitmessage
delay 48 delay 48
tower_getopponentintro 1 tower_getopponentintro 1
applymovement 4, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft applymovement LOCALID_OPPONENT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_WalkInPlaceLeft
waitmovement 0 waitmovement 0
messageautoscroll gStringVar4 messageautoscroll gStringVar4
waitmessage waitmessage
@@ -112,16 +119,16 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_DefeatedOpponents:: @ 8249
tower_setbattlewon tower_setbattlewon
switch VAR_RESULT switch VAR_RESULT
case 7, BattleFrontier_BattleTowerMultiBattleRoom_EventScript_WarpToLobbyWon case 7, BattleFrontier_BattleTowerMultiBattleRoom_EventScript_WarpToLobbyWon
applymovement 4, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent2Exit applymovement LOCALID_OPPONENT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent2Exit
applymovement 1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent1Exit applymovement LOCALID_OPPONENT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_Opponent1Exit
waitmovement 0 waitmovement 0
removeobject 1 removeobject LOCALID_OPPONENT_1
removeobject 4 removeobject LOCALID_OPPONENT_2
applymovement 2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer
applymovement 3, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement 5, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant
applymovement 6, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceAttendant
waitmovement 0 waitmovement 0
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_LINK_MULTIS
goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_RetorePartyMsgLink goto_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_RetorePartyMsgLink
@@ -196,11 +203,11 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_AskRetireChallenge:: @ 824
BattleFrontier_BattleTowerMultiBattleRoom_EventScript_ContinueChallenge:: @ 8249283 BattleFrontier_BattleTowerMultiBattleRoom_EventScript_ContinueChallenge:: @ 8249283
closemessage closemessage
clearflag FLAG_TEMP_2 clearflag FLAG_TEMP_2
applymovement 5, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceBattle applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceBattle
applymovement 6, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceBattle applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiBattleRoom_Movement_FaceBattle
waitmovement 0 waitmovement 0
applymovement 2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantReturnToPos applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantReturnToPos
applymovement 3, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantReturnToPos applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerMultiBattleRoom_Movement_AttendantReturnToPos
waitmovement 0 waitmovement 0
goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_OpponentsEnter
end end
@@ -1,3 +1,8 @@
.set LOCALID_PLAYER, 1
.set LOCALID_ATTENDANT_1, 2
.set LOCALID_ATTENDANT_2, 3
.set LOCALID_PARTNER, 4
BattleFrontier_BattleTowerMultiCorridor_MapScripts:: @ 8248D4A BattleFrontier_BattleTowerMultiCorridor_MapScripts:: @ 8248D4A
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiCorridor_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiCorridor_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerMultiCorridor_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleTowerMultiCorridor_OnWarp
@@ -5,8 +10,8 @@ BattleFrontier_BattleTowerMultiCorridor_MapScripts:: @ 8248D4A
.byte 0 .byte 0
@ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden @ On this map the player (OBJ_EVENT_ID_PLAYER) is hidden
@ The player is represented instead by object event 1, which has the gfx id VAR_OBJ_GFX_ID_F @ The player is represented instead by LOCALID_PLAYER, and has the gfx id VAR_OBJ_GFX_ID_F
@ The multi partner is represented by object event 4, which has the gfx id VAR_OBJ_GFX_ID_E @ The multi partner is represented by LOCALID_PARTNER, and has the gfx id VAR_OBJ_GFX_ID_E
BattleFrontier_BattleTowerMultiCorridor_OnTransition: @ 8248D5A BattleFrontier_BattleTowerMultiCorridor_OnTransition: @ 8248D5A
compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS compare VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_MULTIS
@@ -37,8 +42,8 @@ BattleFrontier_BattleTowerMultiCorridor_OnWarp: @ 8248D95
BattleFrontier_BattleTowerMultiCorridor_EventScript_SetUpObjects:: @ 8248D9F BattleFrontier_BattleTowerMultiCorridor_EventScript_SetUpObjects:: @ 8248D9F
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR
hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR hideobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR
hideobjectat 4, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR hideobjectat LOCALID_PARTNER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR
special OffsetCameraForBattle special OffsetCameraForBattle
end end
@@ -54,10 +59,10 @@ BattleFrontier_BattleTowerMultiCorridor_EventScript_EnterCorridor:: @ 8248DBC
opendoor 1, 1 opendoor 1, 1
waitdooranim waitdooranim
clearflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR clearflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR
showobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR showobjectat LOCALID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR
showobjectat 4, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR showobjectat LOCALID_PARTNER, MAP_BATTLE_FRONTIER_BATTLE_TOWER_MULTI_CORRIDOR
applymovement 1, BattleFrontier_BattleTowerMultiCorridor_Movement_ExitElevator applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiCorridor_Movement_ExitElevator
applymovement 4, BattleFrontier_BattleTowerMultiCorridor_Movement_ExitElevator applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiCorridor_Movement_ExitElevator
waitmovement 0 waitmovement 0
setflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR setflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR
setvar VAR_0x8004, 14 @ x coord of far door, used by DrawDoor setvar VAR_0x8004, 14 @ x coord of far door, used by DrawDoor
@@ -65,21 +70,21 @@ BattleFrontier_BattleTowerMultiCorridor_EventScript_EnterCorridor:: @ 8248DBC
closedoor 1, 1 closedoor 1, 1
waitdooranim waitdooranim
clearflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR clearflag FLAG_ENABLE_MULTI_CORRIDOR_DOOR
applymovement 1, BattleFrontier_BattleTowerMultiCorridor_Movement_PlayerWalkToDoor applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiCorridor_Movement_PlayerWalkToDoor
applymovement 4, BattleFrontier_BattleTowerMultiCorridor_Movement_PartnerWalkToDoor applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiCorridor_Movement_PartnerWalkToDoor
applymovement 3, BattleFrontier_BattleTowerMultiCorridor_Movement_PlayerAttendantWalkToDoor applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerMultiCorridor_Movement_PlayerAttendantWalkToDoor
applymovement 2, BattleFrontier_BattleTowerMultiCorridor_Movement_PartnerAttendantWalkToDoor applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerMultiCorridor_Movement_PartnerAttendantWalkToDoor
waitmovement 0 waitmovement 0
delay 40 delay 40
applymovement 3, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_ATTENDANT_2, Common_Movement_WalkInPlaceFastestUp
applymovement 2, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_ATTENDANT_1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
opendoor 7, 1 opendoor 7, 1
waitdooranim waitdooranim
applymovement 3, BattleFrontier_BattleTowerMultiCorridor_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT_2, BattleFrontier_BattleTowerMultiCorridor_Movement_AttendantEnterDoor
applymovement 2, BattleFrontier_BattleTowerMultiCorridor_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT_1, BattleFrontier_BattleTowerMultiCorridor_Movement_AttendantEnterDoor
applymovement 1, BattleFrontier_BattleTowerMultiCorridor_Movement_TrainerEnterDoor applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerMultiCorridor_Movement_TrainerEnterDoor
applymovement 4, BattleFrontier_BattleTowerMultiCorridor_Movement_TrainerEnterDoor applymovement LOCALID_PARTNER, BattleFrontier_BattleTowerMultiCorridor_Movement_TrainerEnterDoor
waitmovement 0 waitmovement 0
closedoor 7, 1 closedoor 7, 1
waitdooranim waitdooranim
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
BattleFrontier_BattleTowerMultiPartnerRoom_MapScripts:: @ 8243D92 BattleFrontier_BattleTowerMultiPartnerRoom_MapScripts:: @ 8243D92
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleTowerMultiPartnerRoom_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattleTowerMultiPartnerRoom_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiPartnerRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleTowerMultiPartnerRoom_OnTransition
@@ -33,7 +35,7 @@ BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_ChosePartner:: @ 8243DDA
setvar VAR_OBJ_GFX_ID_7, OBJ_EVENT_GFX_BOY_1 setvar VAR_OBJ_GFX_ID_7, OBJ_EVENT_GFX_BOY_1
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
setvar VAR_TEMP_3, 1 setvar VAR_TEMP_3, 1
setobjectxyperm 1, 10, 2 setobjectxyperm LOCALID_ATTENDANT, 10, 2
end end
BattleFrontier_BattleTowerMultiPartnerRoom_OnWarp: @ 8243E14 BattleFrontier_BattleTowerMultiPartnerRoom_OnWarp: @ 8243E14
@@ -59,9 +61,9 @@ BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_EnterRoom:: @ 8243E41
lockall lockall
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterRoom applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterRoom
waitmovement 0 waitmovement 0
applymovement 1, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantBlockExit applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantBlockExit
waitmovement 0 waitmovement 0
copyobjectxytoperm 1 copyobjectxytoperm LOCALID_ATTENDANT
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleTowerMultiPartnerRoom_Text_PleaseFindPartner, MSGBOX_DEFAULT msgbox BattleFrontier_BattleTowerMultiPartnerRoom_Text_PleaseFindPartner, MSGBOX_DEFAULT
@@ -99,7 +101,7 @@ BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_QuitChallenge:: @ 8243E9D
BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_EnterElevator:: @ 8243EB5 BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_EnterElevator:: @ 8243EB5
msgbox BattleFrontier_BattleTowerMultiPartnerRoom_Text_ThankYouForChoosingPartner, MSGBOX_DEFAULT msgbox BattleFrontier_BattleTowerMultiPartnerRoom_Text_ThankYouForChoosingPartner, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_ATTENDANT, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
opendoor 10, 1 opendoor 10, 1
waitdooranim waitdooranim
@@ -112,21 +114,21 @@ BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_EnterElevator:: @ 8243EB5
end end
BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevator:: @ 8243EE4 BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevator:: @ 8243EE4
applymovement 1, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterElevator applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterElevator
waitmovement 0 waitmovement 0
return return
@ Unused @ Unused
BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevatorEast: @ 8243EF6 BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevatorEast: @ 8243EF6
applymovement 1, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterElevatorEast applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEnterElevatorEast
waitmovement 0 waitmovement 0
return return
@ Unused @ Unused
BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevatorWest: @ 8243F08 BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_MoveToElevatorWest: @ 8243F08
applymovement 1, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_AttendantEnterElevator
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEneterElevatorWest applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerMultiPartnerRoom_Movement_PlayerEneterElevatorWest
waitmovement 0 waitmovement 0
return return
+3 -1
View File
@@ -1,3 +1,5 @@
.set LOCALID_OLD_WOMAN, 2
BattleFrontier_Mart_MapScripts:: @ 8267ACB BattleFrontier_Mart_MapScripts:: @ 8267ACB
.byte 0 .byte 0
@@ -36,7 +38,7 @@ BattleFrontier_Mart_EventScript_OldMan:: @ 8267B02
BattleFrontier_Mart_EventScript_OldWoman:: @ 8267B0B BattleFrontier_Mart_EventScript_OldWoman:: @ 8267B0B
lock lock
applymovement 2, Common_Movement_FaceDown applymovement LOCALID_OLD_WOMAN, Common_Movement_FaceDown
waitmovement 0 waitmovement 0
msgbox BattleFrontier_Mart_Text_ProteinMakeNiceGift, MSGBOX_DEFAULT msgbox BattleFrontier_Mart_Text_ProteinMakeNiceGift, MSGBOX_DEFAULT
release release
@@ -1,3 +1,5 @@
.set LOCALID_SUDOWOODO, 14
BattleFrontier_OutsideEast_MapScripts:: @ 8242C04 BattleFrontier_OutsideEast_MapScripts:: @ 8242C04
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_OutsideEast_OnResume map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_OutsideEast_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_OutsideEast_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_OutsideEast_OnTransition
@@ -106,8 +108,8 @@ BattleFrontier_OutsideEast_EventScript_Sudowoodo:: @ 8242CEA
lock lock
faceplayer faceplayer
waitse waitse
playse 269 playse SE_USSOKI
applymovement 14, BattleFrontier_OutsideEast_Movement_SudowoodoShake applymovement LOCALID_SUDOWOODO, BattleFrontier_OutsideEast_Movement_SudowoodoShake
waitmovement 0 waitmovement 0
release release
end end
@@ -119,7 +121,7 @@ BattleFrontier_OutsideEast_EventScript_WaterSudowoodo:: @ 8242CFC
waitstate waitstate
waitse waitse
playse SE_USSOKI playse SE_USSOKI
applymovement 14, BattleFrontier_OutsideEast_Movement_SudowoodoShake applymovement LOCALID_SUDOWOODO, BattleFrontier_OutsideEast_Movement_SudowoodoShake
waitmovement 0 waitmovement 0
msgbox gText_Sudowoodo_Attacked, MSGBOX_DEFAULT msgbox gText_Sudowoodo_Attacked, MSGBOX_DEFAULT
closemessage closemessage
@@ -127,7 +129,7 @@ BattleFrontier_OutsideEast_EventScript_WaterSudowoodo:: @ 8242CFC
playmoncry SPECIES_SUDOWOODO, 2 playmoncry SPECIES_SUDOWOODO, 2
delay 40 delay 40
waitmoncry waitmoncry
setvar VAR_LAST_TALKED, 14 @ Sudowoodo object event id setvar VAR_LAST_TALKED, LOCALID_SUDOWOODO
setwildbattle SPECIES_SUDOWOODO, 40, ITEM_NONE setwildbattle SPECIES_SUDOWOODO, 40, ITEM_NONE
setflag FLAG_SYS_CTRL_OBJ_DELETE setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle dowildbattle
@@ -1,3 +1,12 @@
.set LOCALID_SS_TIDAL, 2
.set LOCALID_FERRY_ATTENDANT, 3
.set LOCALID_MANIAC_1, 9
.set LOCALID_MANIAC_2, 10
.set LOCALID_GIRL, 12
.set LOCALID_CAMPER, 14
.set LOCALID_FISHERMAN_2, 18
.set LOCALID_MAN_4, 23
BattleFrontier_OutsideWest_MapScripts:: @ 823D3E1 BattleFrontier_OutsideWest_MapScripts:: @ 823D3E1
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_OutsideWest_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_OutsideWest_OnTransition
.byte 0 .byte 0
@@ -66,8 +75,8 @@ BattleFrontier_OutsideWest_EventScript_BoardFerry:: @ 823D4BA
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
delay 30 delay 30
hideobjectat 3, MAP_BATTLE_FRONTIER_OUTSIDE_WEST hideobjectat LOCALID_FERRY_ATTENDANT, MAP_BATTLE_FRONTIER_OUTSIDE_WEST
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepartIsland call Common_EventScript_FerryDepartIsland
return return
@@ -107,7 +116,7 @@ BattleFrontier_OutsideWest_EventScript_Fisherman2:: @ 823D518
faceplayer faceplayer
message BattleFrontier_OutsideWest_Text_GotSeasickOnWayHere message BattleFrontier_OutsideWest_Text_GotSeasickOnWayHere
waitmessage waitmessage
applymovement 18, Common_Movement_FaceAwayPlayer applymovement LOCALID_FISHERMAN_2, Common_Movement_FaceAwayPlayer
waitmovement 0 waitmovement 0
waitbuttonpress waitbuttonpress
release release
@@ -128,16 +137,16 @@ BattleFrontier_OutsideWest_EventScript_Maniac2:: @ 823D53D
end end
BattleFrontier_OutsideWest_EventScript_FactoryChallengersTalk:: @ 823D544 BattleFrontier_OutsideWest_EventScript_FactoryChallengersTalk:: @ 823D544
applymovement 9, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_MANIAC_1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox BattleFrontier_OutsideWest_Text_SureWeCanChallengeWithNoMons, MSGBOX_DEFAULT msgbox BattleFrontier_OutsideWest_Text_SureWeCanChallengeWithNoMons, MSGBOX_DEFAULT
applymovement 10, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MANIAC_2, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox BattleFrontier_OutsideWest_Text_BigGuySaidIllLendYouMons, MSGBOX_DEFAULT msgbox BattleFrontier_OutsideWest_Text_BigGuySaidIllLendYouMons, MSGBOX_DEFAULT
closemessage closemessage
delay 25 delay 25
applymovement 9, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_MANIAC_1, Common_Movement_WalkInPlaceFastestUp
applymovement 10, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_MANIAC_2, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
release release
end end
@@ -159,7 +168,7 @@ BattleFrontier_OutsideWest_EventScript_Camper:: @ 823D57F
end end
BattleFrontier_OutsideWest_EventScript_CamperFaceFactory:: @ 823D5BA BattleFrontier_OutsideWest_EventScript_CamperFaceFactory:: @ 823D5BA
applymovement 14, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_CAMPER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
return return
@@ -184,22 +193,22 @@ BattleFrontier_OutsideWest_EventScript_Girl:: @ 823D5C6
end end
BattleFrontier_OutsideWest_EventScript_GirlShudderNorth:: @ 823D5FD BattleFrontier_OutsideWest_EventScript_GirlShudderNorth:: @ 823D5FD
applymovement 12, BattleFrontier_OutsideWest_Movement_GirlShudderNorth applymovement LOCALID_GIRL, BattleFrontier_OutsideWest_Movement_GirlShudderNorth
waitmovement 0 waitmovement 0
return return
BattleFrontier_OutsideWest_EventScript_GirlShudderSouth:: @ 823D608 BattleFrontier_OutsideWest_EventScript_GirlShudderSouth:: @ 823D608
applymovement 12, BattleFrontier_OutsideWest_Movement_GirlShudderSouth applymovement LOCALID_GIRL, BattleFrontier_OutsideWest_Movement_GirlShudderSouth
waitmovement 0 waitmovement 0
return return
BattleFrontier_OutsideWest_EventScript_GirlShudderWest:: @ 823D613 BattleFrontier_OutsideWest_EventScript_GirlShudderWest:: @ 823D613
applymovement 12, BattleFrontier_OutsideWest_Movement_GirlShudderWest applymovement LOCALID_GIRL, BattleFrontier_OutsideWest_Movement_GirlShudderWest
waitmovement 0 waitmovement 0
return return
BattleFrontier_OutsideWest_EventScript_GirlShudderEast:: @ 823D61E BattleFrontier_OutsideWest_EventScript_GirlShudderEast:: @ 823D61E
applymovement 12, BattleFrontier_OutsideWest_Movement_GirlShudderEast applymovement LOCALID_GIRL, BattleFrontier_OutsideWest_Movement_GirlShudderEast
waitmovement 0 waitmovement 0
return return
@@ -301,7 +310,7 @@ BattleFrontier_OutsideWest_EventScript_Man4:: @ 823D6D7
faceplayer faceplayer
msgbox BattleFrontier_OutsideWest_Text_FansOverThereUsedToBeTrainers, MSGBOX_DEFAULT msgbox BattleFrontier_OutsideWest_Text_FansOverThereUsedToBeTrainers, MSGBOX_DEFAULT
closemessage closemessage
applymovement 23, Common_Movement_FaceOriginalDirection applymovement LOCALID_MAN_4, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
BattleFrontier_PokemonCenter_1F_MapScripts:: @ 82678F9 BattleFrontier_PokemonCenter_1F_MapScripts:: @ 82678F9
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -7,9 +9,8 @@ BattleFrontier_PokemonCenter_1F_OnTransition: @ 8267904
setrespawn HEAL_LOCATION_BATTLE_FRONTIER_OUTSIDE_EAST setrespawn HEAL_LOCATION_BATTLE_FRONTIER_OUTSIDE_EAST
end end
@ VAR_0x800B is the Nurse's object event id
BattleFrontier_PokemonCenter_1F_EventScript_Nurse:: @ 8267908 BattleFrontier_PokemonCenter_1F_EventScript_Nurse:: @ 8267908
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -1,3 +1,7 @@
.set LOCALID_GREETER, 1
.set LOCALID_GUIDE, 2
.set LOCALID_SCOTT, 4
BattleFrontier_ReceptionGate_MapScripts:: @ 82661DA BattleFrontier_ReceptionGate_MapScripts:: @ 82661DA
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_ReceptionGate_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_ReceptionGate_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_ReceptionGate_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_ReceptionGate_OnTransition
@@ -15,9 +19,9 @@ BattleFrontier_ReceptionGate_EventScript_FirstTimeEntering:: @ 82661F3
lockall lockall
setvar VAR_HAS_ENTERED_BATTLE_FRONTIER, 1 setvar VAR_HAS_ENTERED_BATTLE_FRONTIER, 1
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_GREETER, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_GREETER, Common_Movement_Delay48
waitmovement 0 waitmovement 0
msgbox BattleFrontier_ReceptionGate_Text_FirstTimeHereThisWay, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_FirstTimeHereThisWay, MSGBOX_DEFAULT
closemessage closemessage
@@ -38,27 +42,27 @@ BattleFrontier_ReceptionGate_EventScript_ScottScene:: @ 8266229
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
msgbox BattleFrontier_ReceptionGate_Text_IfItIsntPlayerYouCame, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_IfItIsntPlayerYouCame, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_GREETER, Common_Movement_WalkInPlaceFastestUp
applymovement 2, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_GUIDE, Common_Movement_WalkInPlaceFastestUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_GREETER, Common_Movement_ExclamationMark
applymovement 2, Common_Movement_ExclamationMark applymovement LOCALID_GUIDE, Common_Movement_ExclamationMark
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_ExclamationMark applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
msgbox BattleFrontier_ReceptionGate_Text_OhMrScottGoodDay, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_OhMrScottGoodDay, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, BattleFrontier_ReceptionGate_Movement_GreeterFaceScott applymovement LOCALID_GREETER, BattleFrontier_ReceptionGate_Movement_GreeterFaceScott
applymovement 2, BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott applymovement LOCALID_GUIDE, BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_ReceptionGate_Movement_PlayerFaceScott applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_ReceptionGate_Movement_PlayerFaceScott
applymovement 4, BattleFrontier_ReceptionGate_Movement_ScottEnter applymovement LOCALID_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottEnter
waitmovement 0 waitmovement 0
msgbox BattleFrontier_ReceptionGate_Text_ScottGreatToSeeYouHere, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_ScottGreatToSeeYouHere, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, BattleFrontier_ReceptionGate_Movement_ScottExit applymovement LOCALID_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottExit
waitmovement 0 waitmovement 0
removeobject 4 removeobject LOCALID_SCOTT
releaseall releaseall
end end
@@ -1,3 +1,5 @@
.set LOCALID_SCOTT, 1
BattleFrontier_ScottsHouse_MapScripts:: @ 82636A7 BattleFrontier_ScottsHouse_MapScripts:: @ 82636A7
.byte 0 .byte 0
@@ -161,7 +163,7 @@ BattleFrontier_ScottsHouse_EventScript_WelcomeToFrontier:: @ 8263943
compare VAR_FACING, DIR_WEST compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest
msgbox BattleFrontier_ScottsHouse_Text_HowMuchEffortItTookToMakeReal, MSGBOX_DEFAULT msgbox BattleFrontier_ScottsHouse_Text_HowMuchEffortItTookToMakeReal, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_SCOTT, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox BattleFrontier_ScottsHouse_Text_HaveThisAsMementoOfOurPathsCrossing, MSGBOX_DEFAULT msgbox BattleFrontier_ScottsHouse_Text_HaveThisAsMementoOfOurPathsCrossing, MSGBOX_DEFAULT
compare VAR_SCOTT_STATE, 13 compare VAR_SCOTT_STATE, 13
@@ -207,22 +209,22 @@ BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints:: @ 82639F8
end end
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayNorth:: @ 8263A13 BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayNorth:: @ 8263A13
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
return return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwaySouth:: @ 8263A1E BattleFrontier_ScottsHouse_EventScript_ScottFaceAwaySouth:: @ 8263A1E
applymovement 1, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
return return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayEast:: @ 8263A29 BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayEast:: @ 8263A29
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
return return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest:: @ 8263A34 BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest:: @ 8263A34
applymovement 1, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
+8 -5
View File
@@ -1,3 +1,6 @@
.set LOCALID_DEOXYS_ROCK, 1
.set LOCALID_DEOXYS, 2
BirthIsland_Exterior_MapScripts:: @ 8267F15 BirthIsland_Exterior_MapScripts:: @ 8267F15
map_script MAP_SCRIPT_ON_TRANSITION, BirthIsland_Exterior_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, BirthIsland_Exterior_OnTransition
map_script MAP_SCRIPT_ON_RESUME, BirthIsland_Exterior_OnResume map_script MAP_SCRIPT_ON_RESUME, BirthIsland_Exterior_OnResume
@@ -36,7 +39,7 @@ BirthIsland_Exterior_EventScript_TryRemoveDeoxys:: @ 8267F6F
specialvar VAR_RESULT, GetBattleOutcome specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_CAUGHT compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn goto_if_ne Common_EventScript_NopReturn
removeobject 2 removeobject LOCALID_DEOXYS
return return
BirthIsland_Exterior_EventScript_Triangle:: @ 8267F83 BirthIsland_Exterior_EventScript_Triangle:: @ 8267F83
@@ -65,20 +68,20 @@ BirthIsland_Exterior_EventScript_NotSolved3:: @ 8267FBF
BirthIsland_Exterior_EventScript_Deoxys:: @ 8267FC1 BirthIsland_Exterior_EventScript_Deoxys:: @ 8267FC1
waitse waitse
setfieldeffectargument 0, 1 setfieldeffectargument 0, LOCALID_DEOXYS_ROCK
setfieldeffectargument 1, 58 setfieldeffectargument 1, 58
setfieldeffectargument 2, 26 setfieldeffectargument 2, 26
dofieldeffect FLDEFF_DESTROY_DEOXYS_ROCK dofieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
playbgm MUS_RG_DEOEYE, 0 playbgm MUS_RG_DEOEYE, 0
waitfieldeffect FLDEFF_DESTROY_DEOXYS_ROCK waitfieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
addobject 2 addobject LOCALID_DEOXYS
applymovement 2, BirthIsland_Exterior_Movement_DeoxysApproach applymovement LOCALID_DEOXYS, BirthIsland_Exterior_Movement_DeoxysApproach
waitmovement 0 waitmovement 0
waitse waitse
playmoncry SPECIES_DEOXYS, 2 playmoncry SPECIES_DEOXYS, 2
delay 40 delay 40
waitmoncry waitmoncry
setvar VAR_LAST_TALKED, 2 setvar VAR_LAST_TALKED, LOCALID_DEOXYS
setvar VAR_0x8004, SPECIES_DEOXYS setvar VAR_0x8004, SPECIES_DEOXYS
setvar VAR_0x8005, 30 @ level setvar VAR_0x8005, 30 @ level
setvar VAR_0x8006, ITEM_NONE setvar VAR_0x8006, ITEM_NONE
+5 -2
View File
@@ -1,3 +1,6 @@
.set LOCALID_SAILOR, 1
.set LOCALID_SS_TIDAL, 2
BirthIsland_Harbor_MapScripts:: @ 826805C BirthIsland_Harbor_MapScripts:: @ 826805C
.byte 0 .byte 0
@@ -12,8 +15,8 @@ BirthIsland_Harbor_EventScript_Sailor:: @ 826805D
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
delay 30 delay 30
hideobjectat 1, MAP_BIRTH_ISLAND_HARBOR hideobjectat LOCALID_SAILOR, MAP_BIRTH_ISLAND_HARBOR
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepartIsland call Common_EventScript_FerryDepartIsland
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11 warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
waitstate waitstate
+7 -5
View File
@@ -1,3 +1,5 @@
.set LOCALID_WALLACE, 1
CaveOfOrigin_B1F_MapScripts:: @ 82357A8 CaveOfOrigin_B1F_MapScripts:: @ 82357A8
.byte 0 .byte 0
@@ -6,16 +8,16 @@ CaveOfOrigin_B1F_EventScript_Wallace:: @ 82357A9
faceplayer faceplayer
msgbox CaveOfOrigin_B1F_Text_WallaceStory, MSGBOX_DEFAULT msgbox CaveOfOrigin_B1F_Text_WallaceStory, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 60 delay 60
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_WALLACE, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_WALLACE, Common_Movement_Delay48
waitmovement 0 waitmovement 0
delay 30 delay 30
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_WALLACE, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
message CaveOfOrigin_B1F_Text_WhereIsRayquaza message CaveOfOrigin_B1F_Text_WhereIsRayquaza
waitmessage waitmessage
@@ -53,7 +55,7 @@ CaveOfOrigin_B1F_EventScript_AtSkyPillar:: @ 823584D
fadescreenspeed FADE_TO_BLACK, 4 fadescreenspeed FADE_TO_BLACK, 4
setflag FLAG_WALLACE_GOES_TO_SKY_PILLAR setflag FLAG_WALLACE_GOES_TO_SKY_PILLAR
setvar VAR_SOOTOPOLIS_CITY_STATE, 3 setvar VAR_SOOTOPOLIS_CITY_STATE, 3
removeobject 1 removeobject LOCALID_WALLACE
clearflag FLAG_HIDE_SKY_PILLAR_WALLACE clearflag FLAG_HIDE_SKY_PILLAR_WALLACE
fadescreen FADE_FROM_BLACK fadescreen FADE_FROM_BLACK
release release
+4 -2
View File
@@ -1,3 +1,5 @@
.set LOCALID_FOSSIL, 1
DesertUnderpass_MapScripts:: @ 823AF37 DesertUnderpass_MapScripts:: @ 823AF37
map_script MAP_SCRIPT_ON_TRANSITION, DesertUnderpass_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, DesertUnderpass_OnTransition
.byte 0 .byte 0
@@ -16,13 +18,13 @@ DesertUnderpass_EventScript_Fossil:: @ 823AF41
DesertUnderpass_EventScript_GiveClawFossil:: @ 823AF57 DesertUnderpass_EventScript_GiveClawFossil:: @ 823AF57
giveitem ITEM_CLAW_FOSSIL giveitem ITEM_CLAW_FOSSIL
removeobject 1 removeobject LOCALID_FOSSIL
release release
end end
DesertUnderpass_EventScript_GiveRootFossil:: @ 823AF68 DesertUnderpass_EventScript_GiveRootFossil:: @ 823AF68
giveitem ITEM_ROOT_FOSSIL giveitem ITEM_ROOT_FOSSIL
removeobject 1 removeobject LOCALID_FOSSIL
release release
end end
+29 -17
View File
@@ -1,3 +1,15 @@
@ Sailing to and from Dewford uses local IDs from different maps
@ e.g. Route 104's sail to Dewford script references local IDs from Dewford's map
@ All of these local IDs are labeled here
.equ LOCALID_BRINEY_DEWFORD, 2
.equ LOCALID_BOAT_DEWFORD, 4
.equ LOCALID_BOAT_R109, 1
.equ LOCALID_BRINEY_R109, 2
.equ LOCALID_BOAT_R104, 7
.equ LOCALID_BRINEY_R104, 8
DewfordTown_MapScripts:: @ 81E9507 DewfordTown_MapScripts:: @ 81E9507
map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_OnTransition
.byte 0 .byte 0
@@ -116,16 +128,16 @@ DewfordTown_EventScript_FishingNotSoGood:: @ 81E9656
DewfordTown_EventScript_SailToPetalburg:: @ 81E9660 DewfordTown_EventScript_SailToPetalburg:: @ 81E9660
call EventScript_BackupMrBrineyLocation call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0 setobjectpriority LOCALID_BRINEY_DEWFORD, MAP_DEWFORD_TOWN, 0
setobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN, 0 setobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN, 0
applymovement 2, DewfordTown_Movement_BrineyBoardBoat applymovement LOCALID_BRINEY_DEWFORD, DewfordTown_Movement_BrineyBoardBoat
waitmovement 0 waitmovement 0
removeobject 2 removeobject LOCALID_BRINEY_DEWFORD
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_PlayerBoardBoat applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_PlayerBoardBoat
waitmovement 0 waitmovement 0
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
call Common_EventScript_PlayBrineysBoatMusic call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_SailToPetalburg applymovement LOCALID_BOAT_DEWFORD, DewfordTown_Movement_SailToPetalburg
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_SailToPetalburg applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_SailToPetalburg
waitmovement 0 waitmovement 0
showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104 showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE104
@@ -137,7 +149,7 @@ DewfordTown_EventScript_SailToPetalburg:: @ 81E9660
clearflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO clearflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
clearflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT clearflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
hideobjectat 4, MAP_DEWFORD_TOWN hideobjectat LOCALID_BOAT_DEWFORD, MAP_DEWFORD_TOWN
setvar VAR_BOARD_BRINEY_BOAT_STATE, 2 setvar VAR_BOARD_BRINEY_BOAT_STATE, 2
resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4 warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4
@@ -148,39 +160,39 @@ DewfordTown_EventScript_SailToPetalburg:: @ 81E9660
DewfordTown_EventScript_SailToSlateport:: @ 81E96E7 DewfordTown_EventScript_SailToSlateport:: @ 81E96E7
call EventScript_BackupMrBrineyLocation call EventScript_BackupMrBrineyLocation
setobjectpriority 2, MAP_DEWFORD_TOWN, 0 setobjectpriority LOCALID_BRINEY_DEWFORD, MAP_DEWFORD_TOWN, 0
setobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN, 1 setobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN, 1
applymovement 2, DewfordTown_Movement_BrineyBoardBoat applymovement LOCALID_BRINEY_DEWFORD, DewfordTown_Movement_BrineyBoardBoat
waitmovement 0 waitmovement 0
removeobject 2 removeobject LOCALID_BRINEY_DEWFORD
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_PlayerBoardBoat applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_PlayerBoardBoat
waitmovement 0 waitmovement 0
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN hideobjectat OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
call Common_EventScript_PlayBrineysBoatMusic call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_SailToSlateport applymovement LOCALID_BOAT_DEWFORD, DewfordTown_Movement_SailToSlateport
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_SailToSlateport applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_SailToSlateport
waitmovement 0 waitmovement 0
call Common_EventScript_StopBrineysBoatMusic call Common_EventScript_StopBrineysBoatMusic
showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE109 showobjectat OBJ_EVENT_ID_PLAYER, MAP_ROUTE109
applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_ExitBoatSlateport applymovement OBJ_EVENT_ID_PLAYER, DewfordTown_Movement_ExitBoatSlateport
waitmovement 0 waitmovement 0
setobjectxyperm 2, 21, 26 setobjectxyperm LOCALID_BRINEY_R109, 21, 26
addobject 2 addobject LOCALID_BRINEY_R109
setobjectpriority 2, MAP_ROUTE109, 0 setobjectpriority LOCALID_BRINEY_R109, MAP_ROUTE109, 0
applymovement 2, DewfordTown_Movement_BrineyExitBoat applymovement LOCALID_BRINEY_R109, DewfordTown_Movement_BrineyExitBoat
waitmovement 0 waitmovement 0
clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY
addobject 1 addobject LOCALID_BOAT_R109
clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
hideobjectat 4, MAP_DEWFORD_TOWN hideobjectat LOCALID_BOAT_DEWFORD, MAP_DEWFORD_TOWN
call_if_unset FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_LandedSlateportDeliverGoods call_if_unset FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_LandedSlateportDeliverGoods
call_if_set FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_LandedSlateport call_if_set FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_LandedSlateport
closemessage closemessage
copyvar VAR_BRINEY_LOCATION, VAR_0x8008 copyvar VAR_BRINEY_LOCATION, VAR_0x8008
resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN resetobjectpriority OBJ_EVENT_ID_PLAYER, MAP_DEWFORD_TOWN
resetobjectpriority 2, MAP_ROUTE109 resetobjectpriority LOCALID_BRINEY_R109, MAP_ROUTE109
copyobjectxytoperm 2 copyobjectxytoperm LOCALID_BRINEY_R109
release release
end end
+9 -4
View File
@@ -1,3 +1,8 @@
.set LOCALID_EXPERT_M, 4
.set LOCALID_TWIN, 5
.set LOCALID_SCHOOL_KID_M, 7
.set LOCALID_PSYCHIC_M, 8
DewfordTown_Hall_MapScripts:: @ 81FD4CF DewfordTown_Hall_MapScripts:: @ 81FD4CF
.byte 0 .byte 0
@@ -53,7 +58,7 @@ DewfordTown_Hall_EventScript_ExpertM:: @ 81FD547
call Common_EventScript_BufferTrendyPhrase call Common_EventScript_BufferTrendyPhrase
msgbox DewfordTown_Hall_Text_TVShowAboutTrend, MSGBOX_DEFAULT msgbox DewfordTown_Hall_Text_TVShowAboutTrend, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_EXPERT_M, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
release release
end end
@@ -64,7 +69,7 @@ DewfordTown_Hall_EventScript_Twin:: @ 81FD563
call Common_EventScript_BufferTrendyPhrase call Common_EventScript_BufferTrendyPhrase
msgbox DewfordTown_Hall_Text_IsTrendMorePopularAcrossSea, MSGBOX_DEFAULT msgbox DewfordTown_Hall_Text_IsTrendMorePopularAcrossSea, MSGBOX_DEFAULT
closemessage closemessage
applymovement 5, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_TWIN, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
release release
end end
@@ -189,7 +194,7 @@ DewfordTown_Hall_EventScript_DontMovePlayer1:: @ 81FD739
return return
DewfordTown_Hall_EventScript_DebateReact1:: @ 81FD73A DewfordTown_Hall_EventScript_DebateReact1:: @ 81FD73A
applymovement 8, DewfordTown_Hall_Movement_PsychicWalkInPlaceLeft applymovement LOCALID_PSYCHIC_M, DewfordTown_Hall_Movement_PsychicWalkInPlaceLeft
waitmovement 0 waitmovement 0
compare VAR_0x8008, 0 compare VAR_0x8008, 0
goto_if_eq DewfordTown_Hall_EventScript_PlayerReactWest goto_if_eq DewfordTown_Hall_EventScript_PlayerReactWest
@@ -208,7 +213,7 @@ DewfordTown_Hall_EventScript_DontMovePlayer2:: @ 81FD771
return return
DewfordTown_Hall_EventScript_DebateReact2:: @ 81FD772 DewfordTown_Hall_EventScript_DebateReact2:: @ 81FD772
applymovement 7, DewfordTown_Hall_Movement_SchoolKidWalkInPlaceRight applymovement LOCALID_SCHOOL_KID_M, DewfordTown_Hall_Movement_SchoolKidWalkInPlaceRight
waitmovement 0 waitmovement 0
compare VAR_0x8008, 0 compare VAR_0x8008, 0
goto_if_eq DewfordTown_Hall_EventScript_PlayerReactNorthSouth goto_if_eq DewfordTown_Hall_EventScript_PlayerReactNorthSouth
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
DewfordTown_PokemonCenter_1F_MapScripts:: @ 81FC523 DewfordTown_PokemonCenter_1F_MapScripts:: @ 81FC523
map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -8,9 +10,8 @@ DewfordTown_PokemonCenter_1F_OnTransition: @ 81FC52E
call Common_EventScript_UpdateBrineyLocation call Common_EventScript_UpdateBrineyLocation
end end
@ VAR_0x800B is the Nurse's object event id
DewfordTown_PokemonCenter_1F_EventScript_Nurse:: @ 81FC537 DewfordTown_PokemonCenter_1F_EventScript_Nurse:: @ 81FC537
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -1,3 +1,7 @@
.set LOCALID_WALLACE, 1
.set LOCALID_RIVAL, 2
.set LOCALID_BIRCH, 3
EverGrandeCity_ChampionsRoom_MapScripts:: @ 82289EF EverGrandeCity_ChampionsRoom_MapScripts:: @ 82289EF
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_ChampionsRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_ChampionsRoom_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_ChampionsRoom_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_ChampionsRoom_OnWarp
@@ -57,7 +61,7 @@ EverGrandeCity_ChampionsRoom_EventScript_Defeated:: @ 8228A61
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic
compare VAR_RESULT, FEMALE compare VAR_RESULT, FEMALE
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic
addobject 2 addobject LOCALID_RIVAL
call EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer call EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer
checkplayergender checkplayergender
compare VAR_RESULT, MALE compare VAR_RESULT, MALE
@@ -78,9 +82,9 @@ EverGrandeCity_ChampionsRoom_EventScript_MayAdvice:: @ 8228AC6
msgbox EverGrandeCity_ChampionsRoom_Text_MayAdvice, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_MayAdvice, MSGBOX_DEFAULT
delay 40 delay 40
playse SE_PIN playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 2, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
msgbox EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver, MSGBOX_DEFAULT
@@ -91,9 +95,9 @@ EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice:: @ 8228AFB
msgbox EverGrandeCity_ChampionsRoom_Text_BrendanAdvice, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_BrendanAdvice, MSGBOX_DEFAULT
delay 40 delay 40
playse SE_PIN playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 2, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
msgbox EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon, MSGBOX_DEFAULT
@@ -102,26 +106,26 @@ EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice:: @ 8228AFB
EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF:: @ 8228B30 EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF:: @ 8228B30
closemessage closemessage
addobject 3 addobject LOCALID_BIRCH
applymovement 3, EverGrandeCity_ChampionsRoom_Movement_BirchArrives applymovement LOCALID_BIRCH, EverGrandeCity_ChampionsRoom_Movement_BirchArrives
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex, MSGBOX_DEFAULT
call ProfBirch_EventScript_RatePokedex call ProfBirch_EventScript_RatePokedex
msgbox EverGrandeCity_ChampionsRoom_Text_BirchCongratulations, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_BirchCongratulations, MSGBOX_DEFAULT
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 20 delay 20
applymovement 1, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
msgbox EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe, MSGBOX_DEFAULT msgbox EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe, MSGBOX_DEFAULT
closemessage closemessage
delay 30 delay 30
applymovement 1, EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart applymovement LOCALID_WALLACE, EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart
applymovement 3, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFastestUp
applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalFollows applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalFollows
waitmovement 0 waitmovement 0
delay 20 delay 20
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
@@ -133,7 +137,7 @@ EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF:: @ 8228B30
compare VAR_RESULT, FEMALE compare VAR_RESULT, FEMALE
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations call_if_eq EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations
closemessage closemessage
applymovement 1, EverGrandeCity_ChampionsRoom_Movement_WallaceExit applymovement LOCALID_WALLACE, EverGrandeCity_ChampionsRoom_Movement_WallaceExit
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExit applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExit
waitmovement 0 waitmovement 0
setflag FLAG_HIDE_PETALBURG_GYM_GREETER setflag FLAG_HIDE_PETALBURG_GYM_GREETER
@@ -151,14 +155,14 @@ EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations:: @ 8228BF4
return return
EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer:: @ 8228BFD EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer:: @ 8228BFD
applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth:: @ 8228C12 EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth:: @ 8228C12
applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth applymovement LOCALID_RIVAL, EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,5 @@
.set LOCALID_WALLACE, 1
EverGrandeCity_HallOfFame_MapScripts:: @ 822982C EverGrandeCity_HallOfFame_MapScripts:: @ 822982C
map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_HallOfFame_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_HallOfFame_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_HallOfFame_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_HallOfFame_OnWarp
@@ -17,24 +19,24 @@ EverGrandeCity_HallOfFame_OnFrame: @ 8229846
EverGrandeCity_HallOfFame_EventScript_EnterHallOfFame:: @ 8229850 EverGrandeCity_HallOfFame_EventScript_EnterHallOfFame:: @ 8229850
lockall lockall
applymovement 1, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame1 applymovement LOCALID_WALLACE, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame1
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame1 applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame1
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestRight
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox EverGrandeCity_HallOfFame_Text_HereWeHonorLeagueChampions, MSGBOX_DEFAULT msgbox EverGrandeCity_HallOfFame_Text_HereWeHonorLeagueChampions, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame2 applymovement LOCALID_WALLACE, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame2
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame2 applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_WalkIntoHallOfFame2
waitmovement 0 waitmovement 0
delay 20 delay 20
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestRight
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox EverGrandeCity_HallOfFame_Text_LetsRecordYouAndYourPartnersNames, MSGBOX_DEFAULT msgbox EverGrandeCity_HallOfFame_Text_LetsRecordYouAndYourPartnersNames, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_WALLACE, Common_Movement_WalkInPlaceFastestUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 20 delay 20
@@ -1,3 +1,6 @@
.set LOCALID_NURSE, 1
.set LOCALID_SCOTT, 4
EverGrandeCity_PokemonCenter_1F_MapScripts:: @ 8229A34 EverGrandeCity_PokemonCenter_1F_MapScripts:: @ 8229A34
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -13,9 +16,8 @@ EverGrandeCity_PokemonCenter_1F_EventScript_TryShowScott:: @ 8229A4C
clearflag FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT clearflag FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT
return return
@ VAR_0x800B is the Nurse's object event id
EverGrandeCity_PokemonCenter_1F_EventScript_Nurse:: @ 8229A59 EverGrandeCity_PokemonCenter_1F_EventScript_Nurse:: @ 8229A59
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -45,17 +47,17 @@ EverGrandeCity_PokemonCenter_1F_EventScript_Scott:: @ 8229A79
setflag FLAG_MET_SCOTT_IN_EVERGRANDE setflag FLAG_MET_SCOTT_IN_EVERGRANDE
playse SE_KAIDAN playse SE_KAIDAN
waitse waitse
removeobject 4 removeobject LOCALID_SCOTT
release release
end end
EverGrandeCity_PokemonCenter_1F_EventScript_ScottExitNorth:: @ 8229AB6 EverGrandeCity_PokemonCenter_1F_EventScript_ScottExitNorth:: @ 8229AB6
applymovement 4, EverGrandeCity_PokemonCenter_1F_Movement_ScottExitNorth applymovement LOCALID_SCOTT, EverGrandeCity_PokemonCenter_1F_Movement_ScottExitNorth
waitmovement 0 waitmovement 0
return return
EverGrandeCity_PokemonCenter_1F_EventScript_ScottExit:: @ 8229AC1 EverGrandeCity_PokemonCenter_1F_EventScript_ScottExit:: @ 8229AC1
applymovement 4, EverGrandeCity_PokemonCenter_1F_Movement_ScottExit applymovement LOCALID_SCOTT, EverGrandeCity_PokemonCenter_1F_Movement_ScottExit
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,7 @@
.set LOCALID_NURSE, 1
.set LOCALID_GUARD_1, 3
.set LOCALID_GUARD_2, 4
EverGrandeCity_PokemonLeague_1F_MapScripts:: @ 82295D2 EverGrandeCity_PokemonLeague_1F_MapScripts:: @ 82295D2
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonLeague_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonLeague_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -10,13 +14,12 @@ EverGrandeCity_PokemonLeague_1F_OnTransition: @ 82295DD
end end
EverGrandeCity_PokemonLeague_1F_EventScript_GuardsBlockDoor:: @ 82295ED EverGrandeCity_PokemonLeague_1F_EventScript_GuardsBlockDoor:: @ 82295ED
setobjectxyperm 3, 9, 2 setobjectxyperm LOCALID_GUARD_1, 9, 2
setobjectxyperm 4, 10, 2 setobjectxyperm LOCALID_GUARD_2, 10, 2
return return
@ VAR_0x800B is the Nurse's object event id
EverGrandeCity_PokemonLeague_1F_EventScript_Nurse:: @ 82295FC EverGrandeCity_PokemonLeague_1F_EventScript_Nurse:: @ 82295FC
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -61,8 +64,8 @@ EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard:: @ 8229636
delay 120 delay 120
goto_if_unset FLAG_BADGE06_GET, EverGrandeCity_PokemonLeague_1F_EventScript_NotAllBadges goto_if_unset FLAG_BADGE06_GET, EverGrandeCity_PokemonLeague_1F_EventScript_NotAllBadges
closemessage closemessage
applymovement 3, EverGrandeCity_PokemonLeague_1F_Movement_LeftGuardOutOfWay applymovement LOCALID_GUARD_1, EverGrandeCity_PokemonLeague_1F_Movement_LeftGuardOutOfWay
applymovement 4, EverGrandeCity_PokemonLeague_1F_Movement_RightGuardOutOfWay applymovement LOCALID_GUARD_2, EverGrandeCity_PokemonLeague_1F_Movement_RightGuardOutOfWay
waitmovement 0 waitmovement 0
delay 10 delay 10
playfanfare MUS_ME_BACHI playfanfare MUS_ME_BACHI
@@ -70,8 +73,8 @@ EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard:: @ 8229636
waitmessage waitmessage
waitfanfare waitfanfare
closemessage closemessage
copyobjectxytoperm 3 copyobjectxytoperm LOCALID_GUARD_1
copyobjectxytoperm 4 copyobjectxytoperm LOCALID_GUARD_2
setflag FLAG_ENTERED_ELITE_FOUR setflag FLAG_ENTERED_ELITE_FOUR
releaseall releaseall
end end
@@ -1,3 +1,7 @@
.set LOCALID_PLAYER, 1
.set LOCALID_ATTENDANT, 2
.set LOCALID_OPPONENT, 3
FallarborTown_BattleTentBattleRoom_MapScripts:: @ 8200899 FallarborTown_BattleTentBattleRoom_MapScripts:: @ 8200899
map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_BattleTentBattleRoom_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_BattleTentBattleRoom_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentBattleRoom_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentBattleRoom_OnFrame
@@ -36,18 +40,18 @@ FallarborTown_BattleTentBattleRoom_OnFrame: @ 82008DD
FallarborTown_BattleTentBattleRoom_EventScript_EnterRoom:: @ 82008E7 FallarborTown_BattleTentBattleRoom_EventScript_EnterRoom:: @ 82008E7
lockall lockall
showobjectat 1, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM showobjectat LOCALID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_PlayerEnter applymovement LOCALID_PLAYER, FallarborTown_BattleTentBattleRoom_Movement_PlayerEnter
waitmovement 0 waitmovement 0
frontier_get FRONTIER_DATA_BATTLE_NUM frontier_get FRONTIER_DATA_BATTLE_NUM
compare VAR_RESULT, 0 compare VAR_RESULT, 0
goto_if_ne FallarborTown_BattleTentBattleRoom_EventScript_ResumeChallenge goto_if_ne FallarborTown_BattleTentBattleRoom_EventScript_ResumeChallenge
FallarborTown_BattleTentBattleRoom_EventScript_NextOpponentEnter:: @ 820090F FallarborTown_BattleTentBattleRoom_EventScript_NextOpponentEnter:: @ 820090F
tower_setopponent tower_setopponent
addobject 3 addobject LOCALID_OPPONENT
applymovement 3, FallarborTown_BattleTentBattleRoom_Movement_OpponentEnter applymovement LOCALID_OPPONENT, FallarborTown_BattleTentBattleRoom_Movement_OpponentEnter
waitmovement 0 waitmovement 0
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump
playse SE_W187 playse SE_W187
waitse waitse
waitmovement 0 waitmovement 0
@@ -58,7 +62,7 @@ FallarborTown_BattleTentBattleRoom_EventScript_NextOpponentEnter:: @ 820090F
call BattleFrontier_BattleArenaBattleRoom_EventScript_DoArenaBattle call BattleFrontier_BattleArenaBattleRoom_EventScript_DoArenaBattle
switch VAR_RESULT switch VAR_RESULT
case 1, FallarborTown_BattleTentBattleRoom_EventScript_DefeatedOpponent case 1, FallarborTown_BattleTentBattleRoom_EventScript_DefeatedOpponent
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump
playse SE_W173 playse SE_W173
waitse waitse
waitmovement 0 waitmovement 0
@@ -71,7 +75,7 @@ FallarborTown_BattleTentBattleRoom_EventScript_WarpToLobbyLost:: @ 820097E
waitstate waitstate
FallarborTown_BattleTentBattleRoom_EventScript_DefeatedOpponent:: @ 820099C FallarborTown_BattleTentBattleRoom_EventScript_DefeatedOpponent:: @ 820099C
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantJump
playse SE_BAN playse SE_BAN
waitse waitse
waitmovement 0 waitmovement 0
@@ -83,12 +87,12 @@ FallarborTown_BattleTentBattleRoom_EventScript_IncrementBattleNum:: @ 82009B3
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
switch VAR_RESULT switch VAR_RESULT
case 3, FallarborTown_BattleTentBattleRoom_EventScript_WarpToLobbyWon case 3, FallarborTown_BattleTentBattleRoom_EventScript_WarpToLobbyWon
applymovement 3, FallarborTown_BattleTentBattleRoom_Movement_OpponentExit applymovement LOCALID_OPPONENT, FallarborTown_BattleTentBattleRoom_Movement_OpponentExit
waitmovement 0 waitmovement 0
removeobject 3 removeobject LOCALID_OPPONENT
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceAttendant applymovement LOCALID_PLAYER, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceAttendant
waitmovement 0 waitmovement 0
msgbox BattleFrontier_BattleArenaBattleRoom_Text_MonsWillBeRestored, MSGBOX_DEFAULT msgbox BattleFrontier_BattleArenaBattleRoom_Text_MonsWillBeRestored, MSGBOX_DEFAULT
special LoadPlayerParty special LoadPlayerParty
@@ -127,9 +131,9 @@ FallarborTown_BattleTentBattleRoom_EventScript_AskRetireChallenge:: @ 8200AA6
FallarborTown_BattleTentBattleRoom_EventScript_ContinueChallenge:: @ 8200AD8 FallarborTown_BattleTentBattleRoom_EventScript_ContinueChallenge:: @ 8200AD8
closemessage closemessage
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantReturnToPos applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantReturnToPos
waitmovement 0 waitmovement 0
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceBattle applymovement LOCALID_PLAYER, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceBattle
waitmovement 0 waitmovement 0
goto FallarborTown_BattleTentBattleRoom_EventScript_NextOpponentEnter goto FallarborTown_BattleTentBattleRoom_EventScript_NextOpponentEnter
waitstate waitstate
@@ -170,9 +174,9 @@ FallarborTown_BattleTentBattleRoom_EventScript_PauseChallenge:: @ 8200B51
end end
FallarborTown_BattleTentBattleRoom_EventScript_ResumeChallenge:: @ 8200B73 FallarborTown_BattleTentBattleRoom_EventScript_ResumeChallenge:: @ 8200B73
applymovement 2, FallarborTown_BattleTentBattleRoom_Movement_AttendantApproachPlayer applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentBattleRoom_Movement_AttendantApproachPlayer
waitmovement 0 waitmovement 0
applymovement 1, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceAttendant applymovement LOCALID_PLAYER, FallarborTown_BattleTentBattleRoom_Movement_PlayerFaceAttendant
waitmovement 0 waitmovement 0
goto FallarborTown_BattleTentBattleRoom_EventScript_AskContinueChallenge goto FallarborTown_BattleTentBattleRoom_EventScript_AskContinueChallenge
end end
@@ -237,8 +241,8 @@ FallarborTown_BattleTentBattleRoom_OnWarp: @ 8200BB0
FallarborTown_BattleTentBattleRoom_EventScript_SetUpObjects:: @ 8200BBA FallarborTown_BattleTentBattleRoom_EventScript_SetUpObjects:: @ 8200BBA
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM hideobjectat OBJ_EVENT_ID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
hideobjectat 1, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM hideobjectat LOCALID_PLAYER, MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM
removeobject 3 removeobject LOCALID_OPPONENT
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
end end
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
FallarborTown_BattleTentCorridor_MapScripts:: @ 82006A7 FallarborTown_BattleTentCorridor_MapScripts:: @ 82006A7
map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentCorridor_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentCorridor_OnFrame
.byte 0 .byte 0
@@ -9,12 +11,12 @@ FallarborTown_BattleTentCorridor_OnFrame: @ 82006AD
FallarborTown_BattleTentCorridor_EventScript_EnterCorridor:: @ 82006B7 FallarborTown_BattleTentCorridor_EventScript_EnterCorridor:: @ 82006B7
lockall lockall
setvar VAR_TEMP_0, 1 setvar VAR_TEMP_0, 1
applymovement 1, FallarborTown_BattleTentCorridor_Movement_WalkToDoor applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentCorridor_Movement_WalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentCorridor_Movement_WalkToDoor applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentCorridor_Movement_WalkToDoor
waitmovement 0 waitmovement 0
opendoor 2, 1 opendoor 2, 1
waitdooranim waitdooranim
applymovement 1, FallarborTown_BattleTentCorridor_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentCorridor_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentCorridor_Movement_PlayerEnterDoor applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentCorridor_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
closedoor 2, 1 closedoor 2, 1
@@ -1,3 +1,5 @@
.set LOCALID_ATTENDANT, 1
FallarborTown_BattleTentLobby_MapScripts:: @ 81FFE66 FallarborTown_BattleTentLobby_MapScripts:: @ 81FFE66
map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_BattleTentLobby_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, FallarborTown_BattleTentLobby_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, FallarborTown_BattleTentLobby_OnWarp
@@ -193,12 +195,12 @@ FallarborTown_BattleTentLobby_EventScript_EndCancelChallenge:: @ 82001CD
end end
FallarborTown_BattleTentLobby_EventScript_WalkToDoor:: @ 82001CF FallarborTown_BattleTentLobby_EventScript_WalkToDoor:: @ 82001CF
applymovement 1, FallarborTown_BattleTentLobby_Movement_AttendantWalkToDoor applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentLobby_Movement_AttendantWalkToDoor
applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentLobby_Movement_PlayerWalkToDoor applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentLobby_Movement_PlayerWalkToDoor
waitmovement 0 waitmovement 0
opendoor 6, 1 opendoor 6, 1
waitdooranim waitdooranim
applymovement 1, FallarborTown_BattleTentLobby_Movement_AttendantEnterDoor applymovement LOCALID_ATTENDANT, FallarborTown_BattleTentLobby_Movement_AttendantEnterDoor
applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentLobby_Movement_PlayerEnterDoor applymovement OBJ_EVENT_ID_PLAYER, FallarborTown_BattleTentLobby_Movement_PlayerEnterDoor
waitmovement 0 waitmovement 0
closedoor 6, 1 closedoor 6, 1
@@ -1,9 +1,11 @@
.set LOCALID_MOVE_RELEARNER, 1
FallarborTown_MoveRelearnersHouse_MapScripts:: @ 8201382 FallarborTown_MoveRelearnersHouse_MapScripts:: @ 8201382
.byte 0 .byte 0
FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner:: @ 8201383 FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner:: @ 8201383
lockall lockall
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_MOVE_RELEARNER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
goto_if_set FLAG_TEMP_1, FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove goto_if_set FLAG_TEMP_1, FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove
msgbox FallarborTown_MoveRelearnersHouse_Text_ImTheMoveTutor, MSGBOX_DEFAULT msgbox FallarborTown_MoveRelearnersHouse_Text_ImTheMoveTutor, MSGBOX_DEFAULT
@@ -13,7 +15,7 @@ FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner:: @ 8201383
FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove:: @ 82013A8 FallarborTown_MoveRelearnersHouse_EventScript_AskTeachMove:: @ 82013A8
checkitem ITEM_HEART_SCALE, 1 checkitem ITEM_HEART_SCALE, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale goto_if_eq FallarborTown_MoveRelearnersHouse_EventScript_ComeBackWithHeartScale
msgbox FallarborTown_MoveRelearnersHouse_Text_ThatsAHeartScaleWantMeToTeachMove, MSGBOX_YESNO msgbox FallarborTown_MoveRelearnersHouse_Text_ThatsAHeartScaleWantMeToTeachMove, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
@@ -1,3 +1,6 @@
.set LOCALID_NURSE, 1
.set LOCALID_LANETTE, 4
FallarborTown_PokemonCenter_1F_MapScripts:: @ 8200BCD FallarborTown_PokemonCenter_1F_MapScripts:: @ 8200BCD
map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -8,9 +11,8 @@ FallarborTown_PokemonCenter_1F_OnTransition: @ 8200BD8
call Common_EventScript_UpdateBrineyLocation call Common_EventScript_UpdateBrineyLocation
end end
@ VAR_0x800B is the Nurse's object event id
FallarborTown_PokemonCenter_1F_EventScript_Nurse:: @ 8200BE1 FallarborTown_PokemonCenter_1F_EventScript_Nurse:: @ 8200BE1
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -36,20 +38,20 @@ FallarborTown_PokemonCenter_1F_EventScript_Lanette:: @ 8200C01
end end
FallarborTown_PokemonCenter_1F_EventScript_LanetteExitNorth:: @ 8200C28 FallarborTown_PokemonCenter_1F_EventScript_LanetteExitNorth:: @ 8200C28
applymovement 4, FallarborTown_PokemonCenter_1F_Movement_LanetteExitNorth applymovement LOCALID_LANETTE, FallarborTown_PokemonCenter_1F_Movement_LanetteExitNorth
waitmovement 0 waitmovement 0
goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited
end end
FallarborTown_PokemonCenter_1F_EventScript_LanetteExitWest:: @ 8200C38 FallarborTown_PokemonCenter_1F_EventScript_LanetteExitWest:: @ 8200C38
applymovement 4, FallarborTown_PokemonCenter_1F_Movement_LanetteExitWest applymovement LOCALID_LANETTE, FallarborTown_PokemonCenter_1F_Movement_LanetteExitWest
waitmovement 0 waitmovement 0
goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited
end end
FallarborTown_PokemonCenter_1F_EventScript_LanetteExited:: @ 8200C48 FallarborTown_PokemonCenter_1F_EventScript_LanetteExited:: @ 8200C48
playse SE_JIDO_DOA playse SE_JIDO_DOA
removeobject 4 removeobject LOCALID_LANETTE
clearflag FLAG_HIDE_LANETTES_HOUSE_LANETTE clearflag FLAG_HIDE_LANETTES_HOUSE_LANETTE
release release
end end
+5 -2
View File
@@ -1,3 +1,6 @@
.set LOCALID_SAILOR, 1
.set LOCALID_SS_TIDAL, 2
FarawayIsland_Entrance_MapScripts:: @ 8267C8E FarawayIsland_Entrance_MapScripts:: @ 8267C8E
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Entrance_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Entrance_OnTransition
.byte 0 .byte 0
@@ -27,8 +30,8 @@ FarawayIsland_Entrance_EventScript_Sailor:: @ 8267CA2
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
delay 30 delay 30
hideobjectat 1, MAP_FARAWAY_ISLAND_ENTRANCE hideobjectat LOCALID_SAILOR, MAP_FARAWAY_ISLAND_ENTRANCE
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepartIsland call Common_EventScript_FerryDepartIsland
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11 warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
waitstate waitstate
+12 -10
View File
@@ -1,3 +1,5 @@
.set LOCALID_MEW, 1
FarawayIsland_Interior_MapScripts:: @ 8267CFA FarawayIsland_Interior_MapScripts:: @ 8267CFA
map_script MAP_SCRIPT_ON_RESUME, FarawayIsland_Interior_OnResume map_script MAP_SCRIPT_ON_RESUME, FarawayIsland_Interior_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Interior_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Interior_OnTransition
@@ -56,13 +58,13 @@ FarawayIsland_Interior_OnFrame: @ 8267D98
FarawayIsland_Interior_EventScript_FindMew:: @ 8267DA2 FarawayIsland_Interior_EventScript_FindMew:: @ 8267DA2
lockall lockall
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_MEW, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_MEW, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement 1, FarawayIsland_Interior_Movement_MewMoveAndHide applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewMoveAndHide
waitmovement 0 waitmovement 0
copyobjectxytoperm 1 copyobjectxytoperm LOCALID_MEW
setvar VAR_TEMP_1, 1 setvar VAR_TEMP_1, 1
releaseall releaseall
end end
@@ -118,7 +120,7 @@ FarawayIsland_Interior_Movement_MewHideLeft: @ 8267DEB
FarawayIsland_Interior_EventScript_Mew:: @ 8267DF2 FarawayIsland_Interior_EventScript_Mew:: @ 8267DF2
lock lock
faceplayer faceplayer
applymovement 1, FarawayIsland_Interior_Movement_MewAppear applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewAppear
waitmovement 0 waitmovement 0
setvar VAR_0x8004, 0 setvar VAR_0x8004, 0
special sub_81D4A90 special sub_81D4A90
@@ -169,22 +171,22 @@ FarawayIsland_Interior_EventScript_PlayerOrMewRan:: @ 8267EA4
end end
FarawayIsland_Interior_EventScript_MewHideDown:: @ 8267EAF FarawayIsland_Interior_EventScript_MewHideDown:: @ 8267EAF
applymovement 1, FarawayIsland_Interior_Movement_MewHideDown applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewHideDown
waitmovement 0 waitmovement 0
return return
FarawayIsland_Interior_EventScript_MewHideUp:: @ 8267EBA FarawayIsland_Interior_EventScript_MewHideUp:: @ 8267EBA
applymovement 1, FarawayIsland_Interior_Movement_MewHideUp applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewHideUp
waitmovement 0 waitmovement 0
return return
FarawayIsland_Interior_EventScript_MewHideRight:: @ 8267EC5 FarawayIsland_Interior_EventScript_MewHideRight:: @ 8267EC5
applymovement 1, FarawayIsland_Interior_Movement_MewHideRight applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewHideRight
waitmovement 0 waitmovement 0
return return
FarawayIsland_Interior_EventScript_MewHideLeft:: @ 8267ED0 FarawayIsland_Interior_EventScript_MewHideLeft:: @ 8267ED0
applymovement 1, FarawayIsland_Interior_Movement_MewHideLeft applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewHideLeft
waitmovement 0 waitmovement 0
return return
@@ -192,7 +194,7 @@ FarawayIsland_Interior_EventScript_HideMewWhenGrassCut:: @ 8267EDB
lockall lockall
fadescreenswapbuffers FADE_TO_BLACK fadescreenswapbuffers FADE_TO_BLACK
setflag FLAG_HIDE_MEW setflag FLAG_HIDE_MEW
removeobject 1 removeobject LOCALID_MEW
fadescreenswapbuffers FADE_FROM_BLACK fadescreenswapbuffers FADE_FROM_BLACK
msgbox FarawayIsland_Interior_Text_TheFeelingOfBeingWatchedFaded, MSGBOX_DEFAULT msgbox FarawayIsland_Interior_Text_TheFeelingOfBeingWatchedFaded, MSGBOX_DEFAULT
closemessage closemessage
+2 -2
View File
@@ -50,7 +50,7 @@ FortreeCity_Gym_EventScript_WinonaDefeated:: @ 82165FD
FortreeCity_Gym_EventScript_GiveAerialAce2:: @ 8216646 FortreeCity_Gym_EventScript_GiveAerialAce2:: @ 8216646
giveitem ITEM_TM40 giveitem ITEM_TM40
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM40 setflag FLAG_RECEIVED_TM40
@@ -59,7 +59,7 @@ FortreeCity_Gym_EventScript_GiveAerialAce2:: @ 8216646
FortreeCity_Gym_EventScript_GiveAerialAce:: @ 821666A FortreeCity_Gym_EventScript_GiveAerialAce:: @ 821666A
giveitem ITEM_TM40 giveitem ITEM_TM40
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_BagIsFull goto_if_eq Common_EventScript_BagIsFull
msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT msgbox FortreeCity_Gym_Text_ExplainAerialAce, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM40 setflag FLAG_RECEIVED_TM40
+4 -2
View File
@@ -1,3 +1,5 @@
.set LOCALID_WINGULL, 3
FortreeCity_House4_MapScripts:: @ 8217C80 FortreeCity_House4_MapScripts:: @ 8217C80
.byte 0 .byte 0
@@ -14,9 +16,9 @@ FortreeCity_House4_EventScript_Boy:: @ 8217C8A
closemessage closemessage
setflag FLAG_WINGULL_SENT_ON_ERRAND setflag FLAG_WINGULL_SENT_ON_ERRAND
clearflag FLAG_HIDE_MOSSDEEP_CITY_HOUSE_2_WINGULL clearflag FLAG_HIDE_MOSSDEEP_CITY_HOUSE_2_WINGULL
applymovement 3, FortreeCity_House4_Movement_WingullExit applymovement LOCALID_WINGULL, FortreeCity_House4_Movement_WingullExit
waitmovement 0 waitmovement 0
removeobject 3 removeobject LOCALID_WINGULL
releaseall releaseall
end end
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
FortreeCity_PokemonCenter_1F_MapScripts:: @ 82173D8 FortreeCity_PokemonCenter_1F_MapScripts:: @ 82173D8
map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -7,9 +9,8 @@ FortreeCity_PokemonCenter_1F_OnTransition: @ 82173E3
setrespawn HEAL_LOCATION_FORTREE_CITY setrespawn HEAL_LOCATION_FORTREE_CITY
end end
@ VAR_0x800B is the Nurse's object event id
FortreeCity_PokemonCenter_1F_EventScript_Nurse:: @ 82173E7 FortreeCity_PokemonCenter_1F_EventScript_Nurse:: @ 82173E7
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -1,3 +1,5 @@
.set LOCALID_STEVEN, 1
GraniteCave_StevensRoom_MapScripts:: @ 822DC7A GraniteCave_StevensRoom_MapScripts:: @ 822DC7A
.byte 0 .byte 0
@@ -32,24 +34,24 @@ GraniteCave_StevensRoom_EventScript_Steven:: @ 822DC7B
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitWestEast call_if_eq GraniteCave_StevensRoom_EventScript_StevenExitWestEast
playse SE_KAIDAN playse SE_KAIDAN
removeobject 1 removeobject LOCALID_STEVEN
release release
end end
GraniteCave_StevensRoom_EventScript_StevenExitNorth:: @ 822DD0D GraniteCave_StevensRoom_EventScript_StevenExitNorth:: @ 822DD0D
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExit applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
waitmovement 0 waitmovement 0
return return
GraniteCave_StevensRoom_EventScript_StevenExitWestEast:: @ 822DD18 GraniteCave_StevensRoom_EventScript_StevenExitWestEast:: @ 822DD18
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExit applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExit
waitmovement 0 waitmovement 0
return return
GraniteCave_StevensRoom_EventScript_StevenExitSouth:: @ 822DD2A GraniteCave_StevensRoom_EventScript_StevenExitSouth:: @ 822DD2A
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_StevensRoom_Movement_PlayerTurnTowardExit
applymovement 1, GraniteCave_StevensRoom_Movement_StevenExitSouth applymovement LOCALID_STEVEN, GraniteCave_StevensRoom_Movement_StevenExitSouth
waitmovement 0 waitmovement 0
return return
+11 -9
View File
@@ -1,3 +1,5 @@
.set LOCALID_HIDEOUT_GUARD, 5
JaggedPass_MapScripts:: @ 8230656 JaggedPass_MapScripts:: @ 8230656
map_script MAP_SCRIPT_ON_RESUME, JaggedPass_OnResume map_script MAP_SCRIPT_ON_RESUME, JaggedPass_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, JaggedPass_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, JaggedPass_OnTransition
@@ -12,7 +14,7 @@ JaggedPass_OnResume: @ 8230666
JaggedPass_EventScript_CheckHasMagmaEmblem:: @ 8230674 JaggedPass_EventScript_CheckHasMagmaEmblem:: @ 8230674
checkitem ITEM_MAGMA_EMBLEM, 1 checkitem ITEM_MAGMA_EMBLEM, 1
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq JaggedPass_EventScript_SetReadyToOpenHideout goto_if_eq JaggedPass_EventScript_SetReadyToOpenHideout
return return
@@ -71,27 +73,27 @@ JaggedPass_EventScript_MagmaHideoutGuard:: @ 8230718
goto_if_set FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS, JaggedPass_EventScript_GuardDefeated goto_if_set FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS, JaggedPass_EventScript_GuardDefeated
waitse waitse
playse SE_PIN playse SE_PIN
applymovement 5, Common_Movement_ExclamationMark applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 5, Common_Movement_Delay48 applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement 5, Common_Movement_FacePlayer applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox JaggedPass_Text_GruntIntro, MSGBOX_DEFAULT msgbox JaggedPass_Text_GruntIntro, MSGBOX_DEFAULT
closemessage closemessage
trainerbattle_no_intro TRAINER_GRUNT_JAGGED_PASS, JaggedPass_Text_GruntDefeat trainerbattle_no_intro TRAINER_GRUNT_JAGGED_PASS, JaggedPass_Text_GruntDefeat
setflag FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS setflag FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS
applymovement 5, Common_Movement_FaceOriginalDirection applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
releaseall releaseall
end end
JaggedPass_EventScript_GuardDefeated:: @ 8230766 JaggedPass_EventScript_GuardDefeated:: @ 8230766
applymovement 5, Common_Movement_FacePlayer applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox JaggedPass_Text_GoWhereverYouWant, MSGBOX_DEFAULT msgbox JaggedPass_Text_GoWhereverYouWant, MSGBOX_DEFAULT
closemessage closemessage
applymovement 5, Common_Movement_FaceOriginalDirection applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
releaseall releaseall
end end
@@ -104,7 +106,7 @@ JaggedPass_EventScript_Eric:: @ 8230785
JaggedPass_EventScript_Diana:: @ 823079C JaggedPass_EventScript_Diana:: @ 823079C
trainerbattle_single TRAINER_DIANA_1, JaggedPass_Text_DianaIntro, JaggedPass_Text_DianaDefeat, JaggedPass_EventScript_RegisterDiana trainerbattle_single TRAINER_DIANA_1, JaggedPass_Text_DianaIntro, JaggedPass_Text_DianaDefeat, JaggedPass_EventScript_RegisterDiana
specialvar VAR_RESULT, ShouldTryRematchBattle specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq JaggedPass_EventScript_DianaRematch goto_if_eq JaggedPass_EventScript_DianaRematch
msgbox JaggedPass_Text_DianaPostBattle, MSGBOX_DEFAULT msgbox JaggedPass_Text_DianaPostBattle, MSGBOX_DEFAULT
release release
@@ -125,7 +127,7 @@ JaggedPass_EventScript_DianaRematch:: @ 82307E4
JaggedPass_EventScript_Ethan:: @ 82307FB JaggedPass_EventScript_Ethan:: @ 82307FB
trainerbattle_single TRAINER_ETHAN_1, JaggedPass_Text_EthanIntro, JaggedPass_Text_EthanDefeat, JaggedPass_EventScript_RegisterEthan trainerbattle_single TRAINER_ETHAN_1, JaggedPass_Text_EthanIntro, JaggedPass_Text_EthanDefeat, JaggedPass_EventScript_RegisterEthan
specialvar VAR_RESULT, ShouldTryRematchBattle specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq JaggedPass_EventScript_EthanRematch goto_if_eq JaggedPass_EventScript_EthanRematch
msgbox JaggedPass_Text_EthanPostBattle, MSGBOX_DEFAULT msgbox JaggedPass_Text_EthanPostBattle, MSGBOX_DEFAULT
release release
+21 -18
View File
@@ -1,3 +1,6 @@
.set LOCALID_RIVAL_ON_BIKE, 7
.set LOCALID_RIVAL, 8
LavaridgeTown_MapScripts:: @ 81EA4D3 LavaridgeTown_MapScripts:: @ 81EA4D3
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, LavaridgeTown_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, LavaridgeTown_OnFrame
@@ -26,9 +29,9 @@ LavaridgeTown_EventScript_CheckSetRivalPos:: @ 81EA518
return return
LavaridgeTown_EventScript_SetRivalPos:: @ 81EA529 LavaridgeTown_EventScript_SetRivalPos:: @ 81EA529
setobjectxyperm 8, 11, 9 setobjectxyperm LOCALID_RIVAL, 11, 9
setobjectxyperm 7, 9, 8 setobjectxyperm LOCALID_RIVAL_ON_BIKE, 9, 8
setobjectmovementtype 7, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_RIVAL_ON_BIKE, MOVEMENT_TYPE_FACE_UP
clearflag FLAG_HIDE_LAVARIDGE_TOWN_RIVAL clearflag FLAG_HIDE_LAVARIDGE_TOWN_RIVAL
return return
@@ -86,14 +89,14 @@ LavaridgeTown_EventScript_BrendanGiveGoGoggles:: @ 81EA5DA
LavaridgeTown_EventScript_RivalExit:: @ 81EA5FF LavaridgeTown_EventScript_RivalExit:: @ 81EA5FF
closemessage closemessage
removeobject 8 removeobject LOCALID_RIVAL
addobject 7 addobject LOCALID_RIVAL_ON_BIKE
delay 30 delay 30
compare VAR_0x8008, 9 compare VAR_0x8008, 9
call_if_eq LavaridgeTown_EventScript_RivalExit1 call_if_eq LavaridgeTown_EventScript_RivalExit1
compare VAR_0x8008, 9 compare VAR_0x8008, 9
call_if_ne LavaridgeTown_EventScript_RivalExit2 call_if_ne LavaridgeTown_EventScript_RivalExit2
removeobject 7 removeobject LOCALID_RIVAL_ON_BIKE
setvar VAR_LAVARIDGE_TOWN_STATE, 2 setvar VAR_LAVARIDGE_TOWN_STATE, 2
clearflag FLAG_HIDE_MAP_NAME_POPUP clearflag FLAG_HIDE_MAP_NAME_POPUP
savebgm MUS_DUMMY savebgm MUS_DUMMY
@@ -110,52 +113,52 @@ LavaridgeTown_EventScript_PlayBrendanMusic:: @ 81EA635
return return
LavaridgeTown_EventScript_RivalNoticePlayer:: @ 81EA63A LavaridgeTown_EventScript_RivalNoticePlayer:: @ 81EA63A
applymovement 8, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 8, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 8, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
return return
LavaridgeTown_EventScript_RivalExitHerbShop:: @ 81EA65C LavaridgeTown_EventScript_RivalExitHerbShop:: @ 81EA65C
opendoor 12, 15 opendoor 12, 15
waitdooranim waitdooranim
addobject 8 addobject LOCALID_RIVAL
applymovement 8, LavaridgeTown_Movement_RivalExitHerbShop applymovement LOCALID_RIVAL, LavaridgeTown_Movement_RivalExitHerbShop
waitmovement 0 waitmovement 0
closedoor 12, 15 closedoor 12, 15
waitdooranim waitdooranim
applymovement 8, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 8, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 8, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
return return
LavaridgeTown_EventScript_RivalApproachPlayer1:: @ 81EA6A1 LavaridgeTown_EventScript_RivalApproachPlayer1:: @ 81EA6A1
applymovement 8, LavaridgeTown_Movement_RivalApproachPlayer1 applymovement LOCALID_RIVAL, LavaridgeTown_Movement_RivalApproachPlayer1
waitmovement 0 waitmovement 0
return return
LavaridgeTown_EventScript_RivalApproachPlayer2:: @ 81EA6AC LavaridgeTown_EventScript_RivalApproachPlayer2:: @ 81EA6AC
applymovement 8, LavaridgeTown_Movement_RivalApproachPlayer2 applymovement LOCALID_RIVAL, LavaridgeTown_Movement_RivalApproachPlayer2
waitmovement 0 waitmovement 0
return return
LavaridgeTown_EventScript_RivalExit1:: @ 81EA6B7 LavaridgeTown_EventScript_RivalExit1:: @ 81EA6B7
applymovement OBJ_EVENT_ID_PLAYER, LavaridgeTown_Movement_PlayerWatchRivalExit applymovement OBJ_EVENT_ID_PLAYER, LavaridgeTown_Movement_PlayerWatchRivalExit
applymovement 7, LavaridgeTown_Movement_RivalExit1 applymovement LOCALID_RIVAL_ON_BIKE, LavaridgeTown_Movement_RivalExit1
waitmovement 0 waitmovement 0
return return
LavaridgeTown_EventScript_RivalExit2:: @ 81EA6C9 LavaridgeTown_EventScript_RivalExit2:: @ 81EA6C9
applymovement 7, LavaridgeTown_Movement_RivalExit2 applymovement LOCALID_RIVAL_ON_BIKE, LavaridgeTown_Movement_RivalExit2
waitmovement 0 waitmovement 0
return return
+20 -15
View File
@@ -1,3 +1,8 @@
.set LOCALID_COLE, 2
.set LOCALID_GERALD, 3
.set LOCALID_AXLE, 4
.set LOCALID_DANIELLE, 5
LavaridgeTown_Gym_1F_MapScripts:: @ 81FE6F4 LavaridgeTown_Gym_1F_MapScripts:: @ 81FE6F4
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_Gym_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_Gym_1F_OnTransition
.byte 0 .byte 0
@@ -30,23 +35,23 @@ LavaridgeTown_Gym_1F_EventScript_EndSetTrainerTempVars:: @ 81FE756
LavaridgeTown_Gym_1F_EventScript_CheckHideTrainers:: @ 81FE757 LavaridgeTown_Gym_1F_EventScript_CheckHideTrainers:: @ 81FE757
goto_if_defeated TRAINER_COLE, LavaridgeTown_Gym_1F_EventScript_CheckHideGerald goto_if_defeated TRAINER_COLE, LavaridgeTown_Gym_1F_EventScript_CheckHideGerald
setobjectmovementtype 2, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_COLE, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_1F_EventScript_CheckHideGerald:: @ 81FE764 LavaridgeTown_Gym_1F_EventScript_CheckHideGerald:: @ 81FE764
goto_if_defeated TRAINER_GERALD, LavaridgeTown_Gym_1F_EventScript_CheckHideAxle goto_if_defeated TRAINER_GERALD, LavaridgeTown_Gym_1F_EventScript_CheckHideAxle
setobjectmovementtype 3, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_GERALD, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_1F_EventScript_CheckHideAxle:: @ 81FE771 LavaridgeTown_Gym_1F_EventScript_CheckHideAxle:: @ 81FE771
goto_if_defeated TRAINER_AXLE, LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle goto_if_defeated TRAINER_AXLE, LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle
setobjectmovementtype 4, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_AXLE, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle:: @ 81FE77E LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle:: @ 81FE77E
goto_if_defeated TRAINER_DANIELLE, LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers goto_if_defeated TRAINER_DANIELLE, LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers
setobjectmovementtype 5, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_DANIELLE, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers:: @ 81FE78B LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers:: @ 81FE78B
return return
LavaridgeTown_Gym_1F_EventScript_Flannery:: @ 81FE78C LavaridgeTown_Gym_1F_EventScript_Flannery:: @ 81FE78C
trainerbattle_single TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_FlanneryIntro, LavaridgeTown_Gym_1F_Text_FlanneryDefeat, LavaridgeTown_Gym_1F_EventScript_FlanneryDefeated, NO_MUSIC trainerbattle_single TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_FlanneryIntro, LavaridgeTown_Gym_1F_Text_FlanneryDefeat, LavaridgeTown_Gym_1F_EventScript_FlanneryDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1 compare VAR_RESULT, TRUE
goto_if_eq LavaridgeTown_Gym_1F_EventScript_FlanneryRematch goto_if_eq LavaridgeTown_Gym_1F_EventScript_FlanneryRematch
goto_if_unset FLAG_RECEIVED_TM50, LavaridgeTown_Gym_1F_EventScript_GiveOverheat2 goto_if_unset FLAG_RECEIVED_TM50, LavaridgeTown_Gym_1F_EventScript_GiveOverheat2
msgbox LavaridgeTown_Gym_1F_Text_FlanneryPostBattle, MSGBOX_DEFAULT msgbox LavaridgeTown_Gym_1F_Text_FlanneryPostBattle, MSGBOX_DEFAULT
@@ -82,7 +87,7 @@ LavaridgeTown_Gym_1F_EventScript_FlanneryDefeated:: @ 81FE7C1
LavaridgeTown_Gym_1F_EventScript_GiveOverheat2:: @ 81FE81D LavaridgeTown_Gym_1F_EventScript_GiveOverheat2:: @ 81FE81D
giveitem ITEM_TM50 giveitem ITEM_TM50
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM50 setflag FLAG_RECEIVED_TM50
@@ -91,7 +96,7 @@ LavaridgeTown_Gym_1F_EventScript_GiveOverheat2:: @ 81FE81D
LavaridgeTown_Gym_1F_EventScript_GiveOverheat:: @ 81FE841 LavaridgeTown_Gym_1F_EventScript_GiveOverheat:: @ 81FE841
giveitem ITEM_TM50 giveitem ITEM_TM50
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_BagIsFull goto_if_eq Common_EventScript_BagIsFull
msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM50 setflag FLAG_RECEIVED_TM50
@@ -103,7 +108,7 @@ LavaridgeTown_Gym_1F_EventScript_FlanneryRematch:: @ 81FE864
end end
LavaridgeTown_Gym_1F_EventScript_Cole:: @ 81FE87F LavaridgeTown_Gym_1F_EventScript_Cole:: @ 81FE87F
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_COLE, 2, LavaridgeTown_Gym_1F_Text_ColeIntro, LavaridgeTown_Gym_1F_Text_ColeDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_COLE, LOCALID_COLE, LavaridgeTown_Gym_1F_Text_ColeIntro, LavaridgeTown_Gym_1F_Text_ColeDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_1F_Text_ColePostBattle MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_1F_Text_ColePostBattle MSGBOX_AUTOCLOSE
end end
@@ -116,37 +121,37 @@ LavaridgeTown_Gym_EventScript_CheckTrainerScript:: @ 81FE89A
end end
LavaridgeTown_Gym_1F_EventScript_Axle:: @ 81FE8AF LavaridgeTown_Gym_1F_EventScript_Axle:: @ 81FE8AF
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_AXLE, 4, LavaridgeTown_Gym_1F_Text_AxleIntro, LavaridgeTown_Gym_1F_Text_AxleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_AXLE, LOCALID_AXLE, LavaridgeTown_Gym_1F_Text_AxleIntro, LavaridgeTown_Gym_1F_Text_AxleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_1F_Text_AxlePostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_1F_Text_AxlePostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_B1F_EventScript_Keegan:: @ 81FE8CA LavaridgeTown_Gym_B1F_EventScript_Keegan:: @ 81FE8CA
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_KEEGAN, 2, LavaridgeTown_Gym_B1F_Text_KeeganIntro, LavaridgeTown_Gym_B1F_Text_KeeganDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_KEEGAN, LOCALID_KEEGAN, LavaridgeTown_Gym_B1F_Text_KeeganIntro, LavaridgeTown_Gym_B1F_Text_KeeganDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_B1F_Text_KeeganPostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_B1F_Text_KeeganPostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_1F_EventScript_Danielle:: @ 81FE8E5 LavaridgeTown_Gym_1F_EventScript_Danielle:: @ 81FE8E5
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_DANIELLE, 5, LavaridgeTown_Gym_1F_Text_DanielleIntro, LavaridgeTown_Gym_1F_Text_DanielleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_DANIELLE, LOCALID_DANIELLE, LavaridgeTown_Gym_1F_Text_DanielleIntro, LavaridgeTown_Gym_1F_Text_DanielleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_1F_Text_DaniellePostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_1F_Text_DaniellePostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_1F_EventScript_Gerald:: @ 81FE900 LavaridgeTown_Gym_1F_EventScript_Gerald:: @ 81FE900
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_GERALD, 3, LavaridgeTown_Gym_1F_Text_GeraldIntro, LavaridgeTown_Gym_1F_Text_GeraldDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_GERALD, LOCALID_GERALD, LavaridgeTown_Gym_1F_Text_GeraldIntro, LavaridgeTown_Gym_1F_Text_GeraldDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_1F_Text_GeraldPostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_1F_Text_GeraldPostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_B1F_EventScript_Jace:: @ 81FE91B LavaridgeTown_Gym_B1F_EventScript_Jace:: @ 81FE91B
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JACE, 1, LavaridgeTown_Gym_B1F_Text_JaceIntro, LavaridgeTown_Gym_B1F_Text_JaceDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JACE, LOCALID_JACE, LavaridgeTown_Gym_B1F_Text_JaceIntro, LavaridgeTown_Gym_B1F_Text_JaceDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_B1F_Text_JacePostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_B1F_Text_JacePostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_B1F_EventScript_Jeff:: @ 81FE936 LavaridgeTown_Gym_B1F_EventScript_Jeff:: @ 81FE936
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JEFF, 3, LavaridgeTown_Gym_B1F_Text_JeffIntro, LavaridgeTown_Gym_B1F_Text_JeffDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JEFF, LOCALID_JEFF, LavaridgeTown_Gym_B1F_Text_JeffIntro, LavaridgeTown_Gym_B1F_Text_JeffDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_B1F_Text_JeffPostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_B1F_Text_JeffPostBattle, MSGBOX_AUTOCLOSE
end end
LavaridgeTown_Gym_B1F_EventScript_Eli:: @ 81FE951 LavaridgeTown_Gym_B1F_EventScript_Eli:: @ 81FE951
trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_ELI, 4, LavaridgeTown_Gym_B1F_Text_EliIntro, LavaridgeTown_Gym_B1F_Text_EliDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_ELI, LOCALID_ELI, LavaridgeTown_Gym_B1F_Text_EliIntro, LavaridgeTown_Gym_B1F_Text_EliDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
msgbox LavaridgeTown_Gym_B1F_Text_EliPostBattle, MSGBOX_AUTOCLOSE msgbox LavaridgeTown_Gym_B1F_Text_EliPostBattle, MSGBOX_AUTOCLOSE
end end
+9 -4
View File
@@ -1,3 +1,8 @@
.equ LOCALID_JACE, 1
.equ LOCALID_KEEGAN, 2
.equ LOCALID_JEFF, 3
.equ LOCALID_ELI, 4
LavaridgeTown_Gym_B1F_MapScripts:: @ 81FF87E LavaridgeTown_Gym_B1F_MapScripts:: @ 81FF87E
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_Gym_B1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_Gym_B1F_OnTransition
.byte 0 .byte 0
@@ -29,16 +34,16 @@ LavaridgeTown_Gym_B1F_EventScript_EndSetTrainerTempVars:: @ 81FF8DB
LavaridgeTown_Gym_B1F_EventScript_CheckHideTrainers:: @ 81FF8DC LavaridgeTown_Gym_B1F_EventScript_CheckHideTrainers:: @ 81FF8DC
goto_if_defeated TRAINER_KEEGAN, LavaridgeTown_Gym_B1F_EventScript_CheckHideJace goto_if_defeated TRAINER_KEEGAN, LavaridgeTown_Gym_B1F_EventScript_CheckHideJace
setobjectmovementtype 2, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_KEEGAN, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_B1F_EventScript_CheckHideJace:: @ 81FF8E9 LavaridgeTown_Gym_B1F_EventScript_CheckHideJace:: @ 81FF8E9
goto_if_defeated TRAINER_JACE, LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff goto_if_defeated TRAINER_JACE, LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff
setobjectmovementtype 1, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_JACE, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff:: @ 81FF8F6 LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff:: @ 81FF8F6
goto_if_defeated TRAINER_JEFF, LavaridgeTown_Gym_B1F_EventScript_CheckHideEli goto_if_defeated TRAINER_JEFF, LavaridgeTown_Gym_B1F_EventScript_CheckHideEli
setobjectmovementtype 3, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_JEFF, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_B1F_EventScript_CheckHideEli:: @ 81FF903 LavaridgeTown_Gym_B1F_EventScript_CheckHideEli:: @ 81FF903
goto_if_defeated TRAINER_ELI, LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers goto_if_defeated TRAINER_ELI, LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers
setobjectmovementtype 4, MOVEMENT_TYPE_HIDDEN setobjectmovementtype LOCALID_ELI, MOVEMENT_TYPE_HIDDEN
LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers:: @ 81FF910 LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers:: @ 81FF910
return return
+1 -1
View File
@@ -31,7 +31,7 @@ LavaridgeTown_HerbShop_EventScript_OldMan:: @ 81FE505
goto_if_set FLFLAG_RECEIVED_CHARCOAL, LavaridgeTown_HerbShop_EventScript_ExplainCharcoal goto_if_set FLFLAG_RECEIVED_CHARCOAL, LavaridgeTown_HerbShop_EventScript_ExplainCharcoal
msgbox LavaridgeTown_HerbShop_Text_YouveComeToLookAtHerbalMedicine, MSGBOX_DEFAULT msgbox LavaridgeTown_HerbShop_Text_YouveComeToLookAtHerbalMedicine, MSGBOX_DEFAULT
giveitem ITEM_CHARCOAL giveitem ITEM_CHARCOAL
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLFLAG_RECEIVED_CHARCOAL setflag FLFLAG_RECEIVED_CHARCOAL
release release
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 81FFAFA LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 81FFAFA
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -8,9 +10,8 @@ LavaridgeTown_PokemonCenter_1F_OnTransition: @ 81FFB05
call Common_EventScript_UpdateBrineyLocation call Common_EventScript_UpdateBrineyLocation
end end
@ VAR_0x800B is the Nurse's object event id
LavaridgeTown_PokemonCenter_1F_EventScript_Nurse:: @ 81FFB0E LavaridgeTown_PokemonCenter_1F_EventScript_Nurse:: @ 81FFB0E
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
+5 -2
View File
@@ -1,3 +1,6 @@
.set LOCALID_WOMAN_1, 19
.set LOCALID_MAN_1, 20
LilycoveCity_MapScripts:: @ 81E2B3C LilycoveCity_MapScripts:: @ 81E2B3C
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_OnTransition
map_script MAP_SCRIPT_ON_LOAD, LilycoveCity_OnLoad map_script MAP_SCRIPT_ON_LOAD, LilycoveCity_OnLoad
@@ -134,13 +137,13 @@ LilycoveCity_EventScript_FatMan:: @ 81E2CD4
LilycoveCity_EventScript_Man1:: @ 81E2CDD LilycoveCity_EventScript_Man1:: @ 81E2CDD
lockall lockall
msgbox LilycoveCity_Text_JustArrivedAndSawRarePokemon, MSGBOX_NPC msgbox LilycoveCity_Text_JustArrivedAndSawRarePokemon, MSGBOX_NPC
applymovement 20, Common_Movement_FaceOriginalDirection applymovement LOCALID_MAN_1, Common_Movement_FaceOriginalDirection
end end
LilycoveCity_EventScript_Woman1:: @ 81E2CEE LilycoveCity_EventScript_Woman1:: @ 81E2CEE
lockall lockall
msgbox LilycoveCity_Text_HoneymoonVowToSeeRarePokemon, MSGBOX_NPC msgbox LilycoveCity_Text_HoneymoonVowToSeeRarePokemon, MSGBOX_NPC
applymovement 19, Common_Movement_FaceOriginalDirection applymovement LOCALID_WOMAN_1, Common_Movement_FaceOriginalDirection
end end
LilycoveCity_EventScript_CitySign:: @ 81E2CFF LilycoveCity_EventScript_CitySign:: @ 81E2CFF
+57 -28
View File
@@ -1,3 +1,32 @@
@ VAR_LAST_TALKED would have made all these direct references unnecessary
.set LOCALID_SMART_MC, 4
.set LOCALID_SMART_JUDGE, 5
.set LOCALID_SMART_CONTESTANT_1, 6
.set LOCALID_SMART_CONTESTANT_2, 7
.set LOCALID_SMART_CONTESTANT_3, 8
.set LOCALID_SMART_CONTESTANT_4, 9
.set LOCALID_SMART_AUDIENCE_4, 11
.set LOCALID_SMART_AUDIENCE_2, 12
.set LOCALID_BEAUTY_MC, 13
.set LOCALID_BEAUTY_JUDGE, 14
.set LOCALID_BEAUTY_CONTESTANT_1, 15
.set LOCALID_BEAUTY_CONTESTANT_2, 16
.set LOCALID_BEAUTY_CONTESTANT_3, 17
.set LOCALID_BEAUTY_CONTESTANT_4, 18
.set LOCALID_BEAUTY_AUDIENCE_1, 19
.set LOCALID_BEAUTY_AUDIENCE_3, 20
.set LOCALID_BEAUTY_AUDIENCE_2, 21
.set LOCALID_SMART_AUDIENCE_3, 22
.set LOCALID_CUTE_MC, 23
.set LOCALID_CUTE_JUDGE, 24
.set LOCALID_CUTE_CONTESTANT_1, 25
.set LOCALID_CUTE_CONTESTANT_2, 26
.set LOCALID_CUTE_CONTESTANT_3, 27
.set LOCALID_CUTE_CONTESTANT_4, 28
.set LOCALID_CUTE_AUDIENCE_1, 29
.set LOCALID_CUTE_AUDIENCE_3, 30
.set LOCALID_CUTE_AUDIENCE_2, 31
LilycoveCity_ContestHall_MapScripts:: @ 821B484 LilycoveCity_ContestHall_MapScripts:: @ 821B484
.byte 0 .byte 0
@@ -22,7 +51,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestMC:: @ 821B4A9
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_GiveItBestSmartAppeal, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_GiveItBestSmartAppeal, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_MC, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -32,7 +61,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestJudge:: @ 821B4C0
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_AreYouEnjoyingThisContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_AreYouEnjoyingThisContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 5, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_JUDGE, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -42,7 +71,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestant1:: @ 821B4D7
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_EnteredWrongContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_EnteredWrongContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 6, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_CONTESTANT_1, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -52,7 +81,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestant2:: @ 821B4EE
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_RaisedMonToBeSmart, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_RaisedMonToBeSmart, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_CONTESTANT_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -62,7 +91,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestant3:: @ 821B505
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_IfMonPullsSmartMoveNext, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_IfMonPullsSmartMoveNext, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_CONTESTANT_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -72,7 +101,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestant4:: @ 821B51C
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_DontAppreciateCuteLeechLife, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_DontAppreciateCuteLeechLife, MSGBOX_DEFAULT
closemessage closemessage
applymovement 9, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_CONTESTANT_4, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -86,7 +115,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestAudience2:: @ 821B53C
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_AllSeemToUseDifferentMoves, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_AllSeemToUseDifferentMoves, MSGBOX_DEFAULT
closemessage closemessage
applymovement 12, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_AUDIENCE_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -96,7 +125,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestAudience3:: @ 821B553
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_PokemonSmarterThanTrainers, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_PokemonSmarterThanTrainers, MSGBOX_DEFAULT
closemessage closemessage
applymovement 22, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_AUDIENCE_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -106,7 +135,7 @@ LilycoveCity_ContestHall_EventScript_SmartContestAudience4:: @ 821B56A
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_StillLoveSmartnessContests, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_StillLoveSmartnessContests, MSGBOX_DEFAULT
closemessage closemessage
applymovement 11, Common_Movement_FaceOriginalDirection applymovement LOCALID_SMART_AUDIENCE_4, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -116,7 +145,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestMC:: @ 821B581
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_AreYouEnteringBeautyContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_AreYouEnteringBeautyContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 13, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_MC, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -126,7 +155,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestJudge:: @ 821B598
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_EveryPokemonPristineBeauty, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_EveryPokemonPristineBeauty, MSGBOX_DEFAULT
closemessage closemessage
applymovement 14, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_JUDGE, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -136,7 +165,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestant1:: @ 821B5AF
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_EyesWillBeGluedToMyBeauty, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_EyesWillBeGluedToMyBeauty, MSGBOX_DEFAULT
closemessage closemessage
applymovement 15, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_CONTESTANT_1, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -146,7 +175,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestant2:: @ 821B5C6
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_OverdidGrooming, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_OverdidGrooming, MSGBOX_DEFAULT
closemessage closemessage
applymovement 16, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_CONTESTANT_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -156,7 +185,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestant3:: @ 821B5DD
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_JudgeWontSeeAuroraBeam, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_JudgeWontSeeAuroraBeam, MSGBOX_DEFAULT
closemessage closemessage
applymovement 17, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_CONTESTANT_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -166,7 +195,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestant4:: @ 821B5F4
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_PokemonLooksLikeYoungerMe, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_PokemonLooksLikeYoungerMe, MSGBOX_DEFAULT
closemessage closemessage
applymovement 18, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_CONTESTANT_4, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -176,7 +205,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestAudience1:: @ 821B60B
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_WinBeautyContestMakesMeHappy, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_WinBeautyContestMakesMeHappy, MSGBOX_DEFAULT
closemessage closemessage
applymovement 19, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_AUDIENCE_1, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -186,7 +215,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestAudience2:: @ 821B622
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_GanderAtAllThosePrettyPokemon, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_GanderAtAllThosePrettyPokemon, MSGBOX_DEFAULT
closemessage closemessage
applymovement 21, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_AUDIENCE_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -196,7 +225,7 @@ LilycoveCity_ContestHall_EventScript_BeautyContestAudience3:: @ 821B639
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_CantWinOnBeautyAlone, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_CantWinOnBeautyAlone, MSGBOX_DEFAULT
closemessage closemessage
applymovement 20, Common_Movement_FaceOriginalDirection applymovement LOCALID_BEAUTY_AUDIENCE_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -206,7 +235,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestMC:: @ 821B650
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_InTheMiddleOfContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_InTheMiddleOfContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 23, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_MC, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -216,7 +245,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestJudge:: @ 821B667
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_SuchCharmingCuteAppeals, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_SuchCharmingCuteAppeals, MSGBOX_DEFAULT
closemessage closemessage
applymovement 24, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_JUDGE, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -226,7 +255,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestant1:: @ 821B67E
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_MyAzurillWasDistracted, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_MyAzurillWasDistracted, MSGBOX_DEFAULT
closemessage closemessage
applymovement 25, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_CONTESTANT_1, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -236,7 +265,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestant2:: @ 821B695
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_NeverWonBattleButContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_NeverWonBattleButContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 26, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_CONTESTANT_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -246,7 +275,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestant3:: @ 821B6AC
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_PetalDanceIsMarvel, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_PetalDanceIsMarvel, MSGBOX_DEFAULT
closemessage closemessage
applymovement 27, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_CONTESTANT_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -256,18 +285,18 @@ LilycoveCity_ContestHall_EventScript_CuteContestant4:: @ 821B6C3
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_MyMonAppealSoMuchCuter, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_MyMonAppealSoMuchCuter, MSGBOX_DEFAULT
closemessage closemessage
applymovement 28, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_CONTESTANT_4, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
LilycoveCity_ContestHall_EventScript_CuteContestAudience1:: @ 821B6DA LilycoveCity_ContestHall_EventScript_CuteContestAudience1:: @ 821B6DA
lockall lockall
applymovement 29, Common_Movement_FacePlayer applymovement LOCALID_CUTE_AUDIENCE_1, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestHall_Text_MyChildIsInContest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_MyChildIsInContest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 29, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_AUDIENCE_1, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
delay 25 delay 25
msgbox LilycoveCity_ContestHall_Text_ComeOnDear, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_ComeOnDear, MSGBOX_DEFAULT
@@ -279,7 +308,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestAudience2:: @ 821B705
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_WantCuteMonOfMyOwn, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_WantCuteMonOfMyOwn, MSGBOX_DEFAULT
closemessage closemessage
applymovement 31, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_AUDIENCE_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -289,7 +318,7 @@ LilycoveCity_ContestHall_EventScript_CuteContestAudience3:: @ 821B71C
faceplayer faceplayer
msgbox LilycoveCity_ContestHall_Text_ThatGirlThereIsCutest, MSGBOX_DEFAULT msgbox LilycoveCity_ContestHall_Text_ThatGirlThereIsCutest, MSGBOX_DEFAULT
closemessage closemessage
applymovement 30, Common_Movement_FaceOriginalDirection applymovement LOCALID_CUTE_AUDIENCE_3, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
+34 -28
View File
@@ -1,3 +1,9 @@
@ Note: data/scripts/berry_blender.inc is for the same map, so shares local IDs
.set LOCALID_RECEPTIONIST, 1
.set LOCALID_LINK_RECEPTIONIST, 2
.set LOCALID_ARTIST, 4
.set LOCALID_ARTIST_LINK, 11
LilycoveCity_ContestLobby_MapScripts:: @ 821A211 LilycoveCity_ContestLobby_MapScripts:: @ 821A211
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_ContestLobby_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_ContestLobby_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_ContestLobby_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_ContestLobby_OnFrame
@@ -35,9 +41,9 @@ LilycoveCity_ContestLobby_EventScript_TryDoContestArtist:: @ 821A255
LilycoveCity_ContestLobby_EventScript_ContestArtist:: @ 821A264 LilycoveCity_ContestLobby_EventScript_ContestArtist:: @ 821A264
lockall lockall
addobject 4 addobject LOCALID_ARTIST
applymovement 4, LilycoveCity_ContestLobby_Movement_ArtistApproachPlayer applymovement LOCALID_ARTIST, LilycoveCity_ContestLobby_Movement_ArtistApproachPlayer
waitmovement 4 waitmovement LOCALID_ARTIST
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerFaceArtist applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerFaceArtist
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT
@@ -61,9 +67,9 @@ LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseum:: @ 821A2AA
specialvar VAR_RESULT, GiveMonArtistRibbon specialvar VAR_RESULT, GiveMonArtistRibbon
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
call_if_eq LilycoveCity_ContestLobby_EventScript_ReceivedArtistRibbon call_if_eq LilycoveCity_ContestLobby_EventScript_ReceivedArtistRibbon
applymovement 4, LilycoveCity_ContestLobby_Movement_ArtistExit applymovement LOCALID_ARTIST, LilycoveCity_ContestLobby_Movement_ArtistExit
waitmovement 0 waitmovement 0
removeobject 4 removeobject LOCALID_ARTIST
call LilycoveCity_ContestLobby_EventScript_UpdateMuseumPatrons call LilycoveCity_ContestLobby_EventScript_UpdateMuseumPatrons
call LilycoveCity_ContestLobby_EventScript_SetPaintingFlag call LilycoveCity_ContestLobby_EventScript_SetPaintingFlag
releaseall releaseall
@@ -75,22 +81,22 @@ LilycoveCity_ContestLobby_EventScript_ConfirmDontTakePainting:: @ 821A2E4
goto_if_eq LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseum goto_if_eq LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseum
msgbox LilycoveCity_ContestLobby_Text_FineThatsTheWayItIs, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_FineThatsTheWayItIs, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, LilycoveCity_ContestLobby_Movement_ArtistExit applymovement LOCALID_ARTIST, LilycoveCity_ContestLobby_Movement_ArtistExit
waitmovement 0 waitmovement 0
setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0 setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
removeobject 4 removeobject LOCALID_ARTIST
releaseall releaseall
end end
LilycoveCity_ContestLobby_EventScript_ReceivedArtistRibbon:: @ 821A314 LilycoveCity_ContestLobby_EventScript_ReceivedArtistRibbon:: @ 821A314
incrementgamestat GAME_STAT_RECEIVED_RIBBONS incrementgamestat GAME_STAT_RECEIVED_RIBBONS
special BufferContestWinnerMonName special BufferContestWinnerMonName
applymovement 4, LilycoveCity_ContestLobby_Movement_ArtistBeginToExit applymovement LOCALID_ARTIST, LilycoveCity_ContestLobby_Movement_ArtistBeginToExit
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 4, Common_Movement_ExclamationMark applymovement LOCALID_ARTIST, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 4, LilycoveCity_ContestLobby_Movement_ArtistReturnToPlayer applymovement LOCALID_ARTIST, LilycoveCity_ContestLobby_Movement_ArtistReturnToPlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_TakeMementoOfPainting, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_TakeMementoOfPainting, MSGBOX_DEFAULT
playfanfare MUS_FANFA4 playfanfare MUS_FANFA4
@@ -209,9 +215,9 @@ LilycoveCity_ContestLobby_EventScript_TryDoLinkContestArtist:: @ 821A427
LilycoveCity_ContestLobby_EventScript_LinkContestArtist:: @ 821A436 LilycoveCity_ContestLobby_EventScript_LinkContestArtist:: @ 821A436
lockall lockall
addobject 11 addobject LOCALID_ARTIST_LINK
applymovement 11, LilycoveCity_ContestLobby_Movement_LinkArtistApproachPlayer applymovement LOCALID_ARTIST_LINK, LilycoveCity_ContestLobby_Movement_LinkArtistApproachPlayer
waitmovement 11 waitmovement LOCALID_ARTIST_LINK
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerFaceLinkArtist applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerFaceLinkArtist
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT
@@ -233,9 +239,9 @@ LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseumLink:: @ 821A47A
specialvar VAR_RESULT, GiveMonArtistRibbon specialvar VAR_RESULT, GiveMonArtistRibbon
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
call_if_eq LilycoveCity_ContestLobby_EventScript_ReceivedLinkArtistRibbon call_if_eq LilycoveCity_ContestLobby_EventScript_ReceivedLinkArtistRibbon
applymovement 11, LilycoveCity_ContestLobby_Movement_LinkArtistExit applymovement LOCALID_ARTIST_LINK, LilycoveCity_ContestLobby_Movement_LinkArtistExit
waitmovement 0 waitmovement 0
removeobject 11 removeobject LOCALID_ARTIST_LINK
call LilycoveCity_ContestLobby_EventScript_UpdateMuseumPatrons call LilycoveCity_ContestLobby_EventScript_UpdateMuseumPatrons
call LilycoveCity_ContestLobby_EventScript_SetPaintingFlag call LilycoveCity_ContestLobby_EventScript_SetPaintingFlag
releaseall releaseall
@@ -247,10 +253,10 @@ LilycoveCity_ContestLobby_EventScript_ConfirmDontTakePaintingLink:: @ 821A4B4
goto_if_eq LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseumLink goto_if_eq LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseumLink
msgbox LilycoveCity_ContestLobby_Text_FineThatsTheWayItIs, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_FineThatsTheWayItIs, MSGBOX_DEFAULT
closemessage closemessage
applymovement 11, LilycoveCity_ContestLobby_Movement_LinkArtistExit applymovement LOCALID_ARTIST_LINK, LilycoveCity_ContestLobby_Movement_LinkArtistExit
waitmovement 0 waitmovement 0
setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0 setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
removeobject 11 removeobject LOCALID_ARTIST_LINK
releaseall releaseall
end end
@@ -258,12 +264,12 @@ LilycoveCity_ContestLobby_EventScript_ReceivedLinkArtistRibbon:: @ 821A4E4
incrementgamestat GAME_STAT_RECEIVED_RIBBONS incrementgamestat GAME_STAT_RECEIVED_RIBBONS
setflag FLAG_SYS_RIBBON_GET setflag FLAG_SYS_RIBBON_GET
special BufferContestWinnerMonName special BufferContestWinnerMonName
applymovement 11, LilycoveCity_ContestLobby_Movement_LinkArtistBeginExit applymovement LOCALID_ARTIST_LINK, LilycoveCity_ContestLobby_Movement_LinkArtistBeginExit
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 11, Common_Movement_ExclamationMark applymovement LOCALID_ARTIST_LINK, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 11, LilycoveCity_ContestLobby_Movement_LinkArtistReturnToPlayer applymovement LOCALID_ARTIST_LINK, LilycoveCity_ContestLobby_Movement_LinkArtistReturnToPlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_TakeMementoOfPainting, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_TakeMementoOfPainting, MSGBOX_DEFAULT
playfanfare MUS_FANFA4 playfanfare MUS_FANFA4
@@ -409,26 +415,26 @@ LilycoveCity_ContestLobby_EventScript_WarpToToughContestHall:: @ 821A663
LilycoveCity_ContestLobby_EventScript_LeadToContestHall:: @ 821A670 LilycoveCity_ContestLobby_EventScript_LeadToContestHall:: @ 821A670
lockall lockall
applymovement 1, LilycoveCity_ContestLobby_Movement_ReceptionistApproachCounter applymovement LOCALID_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_ReceptionistApproachCounter
waitmovement 0 waitmovement 0
playse SE_HASHI playse SE_HASHI
setmetatile 12, 2, METATILE_Contest_WallShadow, 1 setmetatile 12, 2, METATILE_Contest_WallShadow, 1
setmetatile 12, 3, METATILE_Contest_FloorShadow, 1 setmetatile 12, 3, METATILE_Contest_FloorShadow, 1
special DrawWholeMapView special DrawWholeMapView
applymovement 1, LilycoveCity_ContestLobby_Movement_ReceptionistExitCounter applymovement LOCALID_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_ReceptionistExitCounter
waitmovement 0 waitmovement 0
playse SE_HASHI playse SE_HASHI
setmetatile 12, 2, METATILE_Contest_CounterFlap_Top, 1 setmetatile 12, 2, METATILE_Contest_CounterFlap_Top, 1
setmetatile 12, 3, METATILE_Contest_CounterFlap_Bottom, 1 setmetatile 12, 3, METATILE_Contest_CounterFlap_Bottom, 1
special DrawWholeMapView special DrawWholeMapView
delay 20 delay 20
applymovement 1, LilycoveCity_ContestLobby_Movement_ReceptionistFacePlayer applymovement LOCALID_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_ReceptionistFacePlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerApproachReceptionist applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerApproachReceptionist
waitmovement 0 waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_ComeThroughHere, MSGBOX_DEFAULT msgbox LilycoveCity_ContestLobby_Text_ComeThroughHere, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, LilycoveCity_ContestLobby_Movement_ReceptionistWalkToContestHall applymovement LOCALID_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_ReceptionistWalkToContestHall
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerWalkToContestHall applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerWalkToContestHall
waitmovement 0 waitmovement 0
releaseall releaseall
@@ -930,20 +936,20 @@ LilycoveCity_ContestLobby_EventScript_LeadToLinkContestHall:: @ 821AC49
waitmessage waitmessage
delay 20 delay 20
closemessage closemessage
applymovement 2, LilycoveCity_ContestLobby_Movement_LinkReceptionistApproachCounter applymovement LOCALID_LINK_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_LinkReceptionistApproachCounter
waitmovement 0 waitmovement 0
playse SE_HASHI playse SE_HASHI
setmetatile 17, 2, METATILE_Contest_WallShadow, 1 setmetatile 17, 2, METATILE_Contest_WallShadow, 1
setmetatile 17, 3, METATILE_Contest_FloorShadow, 1 setmetatile 17, 3, METATILE_Contest_FloorShadow, 1
special DrawWholeMapView special DrawWholeMapView
applymovement 2, LilycoveCity_ContestLobby_Movement_LinkReceptionistExitCounter applymovement LOCALID_LINK_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_LinkReceptionistExitCounter
waitmovement 0 waitmovement 0
playse SE_HASHI playse SE_HASHI
setmetatile 17, 2, METATILE_Contest_CounterFlap_Top, 1 setmetatile 17, 2, METATILE_Contest_CounterFlap_Top, 1
setmetatile 17, 3, METATILE_Contest_CounterFlap_Bottom, 1 setmetatile 17, 3, METATILE_Contest_CounterFlap_Bottom, 1
special DrawWholeMapView special DrawWholeMapView
delay 20 delay 20
applymovement 2, LilycoveCity_ContestLobby_Movement_LinkReceptionistFacePlayer applymovement LOCALID_LINK_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_LinkReceptionistFacePlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerApproachLinkReceptionist applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerApproachLinkReceptionist
waitmovement 0 waitmovement 0
@@ -952,7 +958,7 @@ LilycoveCity_ContestLobby_EventScript_LeadToLinkContestHall:: @ 821AC49
delay 20 delay 20
closemessage closemessage
call LilycoveCity_ContestLobby_EventScript_DelayIfContestWithRSPlayer call LilycoveCity_ContestLobby_EventScript_DelayIfContestWithRSPlayer
applymovement 2, LilycoveCity_ContestLobby_Movement_LinkReceptionistWalkToContestHall applymovement LOCALID_LINK_RECEPTIONIST, LilycoveCity_ContestLobby_Movement_LinkReceptionistWalkToContestHall
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerWalkToLinkContestHall applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_ContestLobby_Movement_PlayerWalkToLinkContestHall
waitmovement 0 waitmovement 0
release release
@@ -1,3 +1,5 @@
.set LOCALID_OWNER, 1
LilycoveCity_CoveLilyMotel_1F_MapScripts:: @ 8218188 LilycoveCity_CoveLilyMotel_1F_MapScripts:: @ 8218188
.byte 0 .byte 0
@@ -6,33 +8,33 @@ LilycoveCity_CoveLilyMotel_1F_EventScript_MotelOwner:: @ 8218189
goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_CoveLilyMotel_1F_EventScript_GameClear goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_CoveLilyMotel_1F_EventScript_GameClear
goto_if_set FLAG_BADGE07_GET, LilycoveCity_CoveLilyMotel_1F_EventScript_AquaHideoutBusted goto_if_set FLAG_BADGE07_GET, LilycoveCity_CoveLilyMotel_1F_EventScript_AquaHideoutBusted
msgbox LilycoveCity_CoveLilyMotel_1F_Text_GuestsDoubledByMascot, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_GuestsDoubledByMascot, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_OWNER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_CoveLilyMotel_1F_Text_NoGuestsWithTeamAqua, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_NoGuestsWithTeamAqua, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_FaceOriginalDirection applymovement LOCALID_OWNER, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
releaseall releaseall
end end
LilycoveCity_CoveLilyMotel_1F_EventScript_AquaHideoutBusted:: @ 82181C3 LilycoveCity_CoveLilyMotel_1F_EventScript_AquaHideoutBusted:: @ 82181C3
msgbox LilycoveCity_CoveLilyMotel_1F_Text_MonFoundLostItem, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_MonFoundLostItem, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_OWNER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_CoveLilyMotel_1F_Text_HeardAquaHideoutBusted, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_HeardAquaHideoutBusted, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_FaceOriginalDirection applymovement LOCALID_OWNER, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
releaseall releaseall
end end
LilycoveCity_CoveLilyMotel_1F_EventScript_GameClear:: @ 82181EA LilycoveCity_CoveLilyMotel_1F_EventScript_GameClear:: @ 82181EA
msgbox LilycoveCity_CoveLilyMotel_1F_Text_HouseSittingMonCaughtBurglar, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_HouseSittingMonCaughtBurglar, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_OWNER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_CoveLilyMotel_1F_Text_BetterGetWorkingOnGuestsDinner, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_BetterGetWorkingOnGuestsDinner, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_FaceOriginalDirection applymovement LOCALID_OWNER, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
releaseall releaseall
end end
@@ -40,18 +42,18 @@ LilycoveCity_CoveLilyMotel_1F_EventScript_GameClear:: @ 82181EA
LilycoveCity_CoveLilyMotel_1F_EventScript_BlockingTV:: @ 8218211 LilycoveCity_CoveLilyMotel_1F_EventScript_BlockingTV:: @ 8218211
lockall lockall
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_OWNER, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_OWNER, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
msgbox LilycoveCity_CoveLilyMotel_1F_Text_CantSeeTheTV, MSGBOX_DEFAULT msgbox LilycoveCity_CoveLilyMotel_1F_Text_CantSeeTheTV, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_CoveLilyMotel_1F_Movement_PlayerPushFromTV applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_CoveLilyMotel_1F_Movement_PlayerPushFromTV
applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_OwnerPushPlayer applymovement LOCALID_OWNER, LilycoveCity_CoveLilyMotel_1F_Movement_OwnerPushPlayer
waitmovement 0 waitmovement 0
applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_OwnerReturn applymovement LOCALID_OWNER, LilycoveCity_CoveLilyMotel_1F_Movement_OwnerReturn
waitmovement 0 waitmovement 0
release release
end end
@@ -1,3 +1,5 @@
.set LOCALID_LOTTERY_CLERK, 2
LilycoveCity_DepartmentStore_1F_MapScripts:: @ 821F692 LilycoveCity_DepartmentStore_1F_MapScripts:: @ 821F692
.byte 0 .byte 0
@@ -22,7 +24,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk:: @ 821F69C
copyvar VAR_0x8008, VAR_RESULT copyvar VAR_0x8008, VAR_RESULT
special BufferLottoTicketNumber special BufferLottoTicketNumber
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketNumberIsXPleaseWait, MSGBOX_DEFAULT msgbox LilycoveCity_DepartmentStore_1F_Text_TicketNumberIsXPleaseWait, MSGBOX_DEFAULT
applymovement 2, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_LOTTERY_CLERK, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
playse SE_PC_ON playse SE_PC_ON
special DoLotteryCornerComputerEffect special DoLotteryCornerComputerEffect
@@ -30,7 +32,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk:: @ 821F69C
delay 220 delay 220
special EndLotteryCornerComputerEffect special EndLotteryCornerComputerEffect
delay 10 delay 10
applymovement 2, Common_Movement_FacePlayer applymovement LOCALID_LOTTERY_CLERK, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
compare VAR_0x8004, 0 compare VAR_0x8004, 0
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_NoMatch goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_NoMatch
@@ -1,3 +1,5 @@
.set LOCALID_WOMAN, 7
LilycoveCity_DepartmentStore_5F_MapScripts:: @ 821FF7A LilycoveCity_DepartmentStore_5F_MapScripts:: @ 821FF7A
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LilycoveCity_DepartmentStore_5F_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LilycoveCity_DepartmentStore_5F_OnWarp
.byte 0 .byte 0
@@ -11,8 +13,8 @@ LilycoveCity_DepartmentStore_5F_OnWarp: @ 821FF80
.2byte 0 .2byte 0
LilycoveCity_DepartmentStore_5F_EventScript_BlockRoofStairs:: @ 821FF9A LilycoveCity_DepartmentStore_5F_EventScript_BlockRoofStairs:: @ 821FF9A
setobjectxy 7, 16, 2 setobjectxy LOCALID_WOMAN, 16, 2
turnobject 7, DIR_NORTH turnobject LOCALID_WOMAN, DIR_NORTH
end end
LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarLeft:: @ 821FFA6 LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarLeft:: @ 821FFA6
@@ -125,7 +127,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_PokefanF:: @ 822006C
LilycoveCity_DepartmentStore_5F_EventScript_Woman:: @ 8220075 LilycoveCity_DepartmentStore_5F_EventScript_Woman:: @ 8220075
lockall lockall
applymovement 7, Common_Movement_FacePlayer applymovement LOCALID_WOMAN, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
compare VAR_SOOTOPOLIS_CITY_STATE, 0 compare VAR_SOOTOPOLIS_CITY_STATE, 0
goto_if_eq LilycoveCity_DepartmentStore_5F_EventScript_WomanNormal goto_if_eq LilycoveCity_DepartmentStore_5F_EventScript_WomanNormal
@@ -143,7 +145,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_WomanNormal:: @ 822009C
LilycoveCity_DepartmentStore_5F_EventScript_WomanLegendaryWeather:: @ 82200A7 LilycoveCity_DepartmentStore_5F_EventScript_WomanLegendaryWeather:: @ 82200A7
msgbox LilycoveCity_DepartmentStore_5F_Text_ClosedRooftopForWeather, MSGBOX_DEFAULT msgbox LilycoveCity_DepartmentStore_5F_Text_ClosedRooftopForWeather, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_WOMAN, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
releaseall releaseall
end end
+34 -29
View File
@@ -1,3 +1,8 @@
.set LOCALID_ATTENDANT, 1
.set LOCALID_SS_TIDAL, 2
.set LOCALID_FERRY_SAILOR, 4
.set LOCALID_BRINEY, 5
LilycoveCity_Harbor_MapScripts:: @ 821E000 LilycoveCity_Harbor_MapScripts:: @ 821E000
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_Harbor_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_Harbor_OnTransition
.byte 0 .byte 0
@@ -110,7 +115,7 @@ LilycoveCity_Harbor_EventScript_GetEonTicketState:: @ 821E194
setvar VAR_TEMP_E, 0 setvar VAR_TEMP_E, 0
goto_if_unset FLAG_ENABLE_SHIP_SOUTHERN_ISLAND, Common_EventScript_NopReturn goto_if_unset FLAG_ENABLE_SHIP_SOUTHERN_ISLAND, Common_EventScript_NopReturn
checkitem ITEM_EON_TICKET, 1 checkitem ITEM_EON_TICKET, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
setvar VAR_TEMP_E, 1 setvar VAR_TEMP_E, 1
goto_if_set FLAG_SHOWN_EON_TICKET, Common_EventScript_NopReturn goto_if_set FLAG_SHOWN_EON_TICKET, Common_EventScript_NopReturn
@@ -121,7 +126,7 @@ LilycoveCity_Harbor_EventScript_GetAuroraTicketState:: @ 821E1C6
setvar VAR_TEMP_D, 0 setvar VAR_TEMP_D, 0
goto_if_unset FLAG_ENABLE_SHIP_BIRTH_ISLAND, Common_EventScript_NopReturn goto_if_unset FLAG_ENABLE_SHIP_BIRTH_ISLAND, Common_EventScript_NopReturn
checkitem ITEM_AURORA_TICKET, 1 checkitem ITEM_AURORA_TICKET, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
setvar VAR_TEMP_D, 1 setvar VAR_TEMP_D, 1
goto_if_set FLAG_SHOWN_AURORA_TICKET, Common_EventScript_NopReturn goto_if_set FLAG_SHOWN_AURORA_TICKET, Common_EventScript_NopReturn
@@ -132,7 +137,7 @@ LilycoveCity_Harbor_EventScript_GetOldSeaMapState:: @ 821E1F8
setvar VAR_TEMP_C, 0 setvar VAR_TEMP_C, 0
goto_if_unset FLAG_ENABLE_SHIP_FARAWAY_ISLAND, Common_EventScript_NopReturn goto_if_unset FLAG_ENABLE_SHIP_FARAWAY_ISLAND, Common_EventScript_NopReturn
checkitem ITEM_OLD_SEA_MAP, 1 checkitem ITEM_OLD_SEA_MAP, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
setvar VAR_TEMP_C, 1 setvar VAR_TEMP_C, 1
goto_if_set FLAG_SHOWN_OLD_SEA_MAP, Common_EventScript_NopReturn goto_if_set FLAG_SHOWN_OLD_SEA_MAP, Common_EventScript_NopReturn
@@ -143,7 +148,7 @@ LilycoveCity_Harbor_EventScript_GetMysticTicketState:: @ 821E22A
setvar VAR_TEMP_9, 0 setvar VAR_TEMP_9, 0
goto_if_unset FLAG_ENABLE_SHIP_NAVEL_ROCK, Common_EventScript_NopReturn goto_if_unset FLAG_ENABLE_SHIP_NAVEL_ROCK, Common_EventScript_NopReturn
checkitem ITEM_MYSTIC_TICKET, 1 checkitem ITEM_MYSTIC_TICKET, 1
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_NopReturn goto_if_eq Common_EventScript_NopReturn
setvar VAR_TEMP_9, 1 setvar VAR_TEMP_9, 1
goto_if_set FLAG_SHOWN_MYSTIC_TICKET, Common_EventScript_NopReturn goto_if_set FLAG_SHOWN_MYSTIC_TICKET, Common_EventScript_NopReturn
@@ -247,18 +252,18 @@ LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime:: @ 821E350
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_OldSeaMapTooFar, MSGBOX_DEFAULT msgbox EventTicket_Text_OldSeaMapTooFar, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 4, Common_Movement_ExclamationMark applymovement LOCALID_FERRY_SAILOR, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 4, Common_Movement_Delay48 applymovement LOCALID_FERRY_SAILOR, Common_Movement_Delay48
waitmovement 0 waitmovement 0
compare VAR_FACING, DIR_NORTH compare VAR_FACING, DIR_NORTH
call_if_eq LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth call_if_eq LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast call_if_eq LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast
addobject 5 addobject LOCALID_BRINEY
compare VAR_FACING, DIR_NORTH compare VAR_FACING, DIR_NORTH
call_if_eq LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth call_if_eq LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
@@ -274,7 +279,7 @@ LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime:: @ 821E350
call_if_eq LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth call_if_eq LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast call_if_eq LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart call Common_EventScript_FerryDepart
warp MAP_FARAWAY_ISLAND_ENTRANCE, 255, 13, 38 warp MAP_FARAWAY_ISLAND_ENTRANCE, 255, 13, 38
waitstate waitstate
@@ -329,14 +334,14 @@ LilycoveCity_Harbor_EventScript_MultipleEventTicketsFirstTime:: @ 821E44D
LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect:: @ 821E4B6 LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect:: @ 821E4B6
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 30 delay 30
removeobject 4 removeobject LOCALID_FERRY_SAILOR
delay 30 delay 30
applymovement 1, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_ATTENDANT, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
showobjectat 1, MAP_LILYCOVE_CITY_HARBOR showobjectat LOCALID_ATTENDANT, MAP_LILYCOVE_CITY_HARBOR
delay 30 delay 30
msgbox LilycoveCity_Harbor_Text_SailAnotherTime, MSGBOX_DEFAULT msgbox LilycoveCity_Harbor_Text_SailAnotherTime, MSGBOX_DEFAULT
release release
@@ -348,24 +353,24 @@ LilycoveCity_Harbor_EventScript_GetEventTicketSailor:: @ 821E4EE
delay 30 delay 30
hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
delay 60 delay 60
addobject 4 addobject LOCALID_FERRY_SAILOR
delay 30 delay 30
applymovement 4, Common_Movement_FacePlayer applymovement LOCALID_FERRY_SAILOR, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BoardFerryWithSailor:: @ 821E514 LilycoveCity_Harbor_EventScript_BoardFerryWithSailor:: @ 821E514
applymovement 4, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 30 delay 30
removeobject 4 removeobject LOCALID_FERRY_SAILOR
compare VAR_FACING, DIR_NORTH compare VAR_FACING, DIR_NORTH
call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryNorth call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryNorth
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast
delay 30 delay 30
hideobjectat OBJ_EVENT_ID_PLAYER, 0 hideobjectat OBJ_EVENT_ID_PLAYER, 0
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart call Common_EventScript_FerryDepart
return return
@@ -429,7 +434,7 @@ LilycoveCity_Harbor_EventScript_BoardFerry:: @ 821E5CC
call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast call_if_eq LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast
delay 30 delay 30
hideobjectat OBJ_EVENT_ID_PLAYER, 0 hideobjectat OBJ_EVENT_ID_PLAYER, 0
setvar VAR_0x8004, 2 setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart call Common_EventScript_FerryDepart
return return
@@ -475,12 +480,12 @@ LilycoveCity_Harbor_EventScript_SailorFerryAvailable:: @ 821E64C
end end
LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth:: @ 821E656 LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth:: @ 821E656
applymovement 4, LilycoveCity_Harbor_Movement_SailorOutOfWayNorth applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorOutOfWayNorth
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast:: @ 821E661 LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast:: @ 821E661
applymovement 4, LilycoveCity_Harbor_Movement_SailorOutOfWayEast applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorOutOfWayEast
waitmovement 0 waitmovement 0
return return
@@ -498,36 +503,36 @@ LilycoveCity_Harbor_Movement_SailorOutOfWayEast: @ 821E671
step_end step_end
LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth:: @ 821E675 LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth:: @ 821E675
applymovement 5, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BrineyFaceSailorEast:: @ 821E680 LilycoveCity_Harbor_EventScript_BrineyFaceSailorEast:: @ 821E680
applymovement 5, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BrineyFacePlayerNorth:: @ 821E68B LilycoveCity_Harbor_EventScript_BrineyFacePlayerNorth:: @ 821E68B
applymovement 5, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BrineyFacePlayerEast:: @ 821E696 LilycoveCity_Harbor_EventScript_BrineyFacePlayerEast:: @ 821E696
applymovement 5, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth:: @ 821E6A1 LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth:: @ 821E6A1
applymovement 5, LilycoveCity_Harbor_Movement_BrineyBoardFerry applymovement LOCALID_BRINEY, LilycoveCity_Harbor_Movement_BrineyBoardFerry
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyNorth applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyNorth
applymovement 4, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyNorth applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyNorth
waitmovement 0 waitmovement 0
return return
LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast:: @ 821E6BA LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast:: @ 821E6BA
applymovement 5, LilycoveCity_Harbor_Movement_BrineyBoardFerry applymovement LOCALID_BRINEY, LilycoveCity_Harbor_Movement_BrineyBoardFerry
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyEast applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyEast
applymovement 4, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyEast applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyEast
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,6 @@
.set LOCALID_CURATOR, 2
.set LOCALID_ARTIST_2, 8
LilycoveCity_LilycoveMuseum_1F_MapScripts:: @ 8218CB8 LilycoveCity_LilycoveMuseum_1F_MapScripts:: @ 8218CB8
.byte 0 .byte 0
@@ -7,7 +10,7 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_Greeter:: @ 8218CB9
LilycoveCity_LilycoveMuseum_1F_EventScript_Curator:: @ 8218CC2 LilycoveCity_LilycoveMuseum_1F_EventScript_Curator:: @ 8218CC2
lockall lockall
applymovement 2, Common_Movement_FacePlayer applymovement LOCALID_CURATOR, Common_Movement_FacePlayer
message LilycoveCity_LilycoveMuseum_1F_Text_ImCuratorHaveYouViewedOurPaintings message LilycoveCity_LilycoveMuseum_1F_Text_ImCuratorHaveYouViewedOurPaintings
waitmessage waitmessage
multichoice 20, 8, MULTI_VIEWED_PAINTINGS, 1 multichoice 20, 8, MULTI_VIEWED_PAINTINGS, 1
@@ -36,9 +39,9 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_NotInterested:: @ 8218D14
LilycoveCity_LilycoveMuseum_1F_EventScript_InterestedInPaintings:: @ 8218D1E LilycoveCity_LilycoveMuseum_1F_EventScript_InterestedInPaintings:: @ 8218D1E
msgbox LilycoveCity_LilycoveMuseum_1F_Text_ExcellentCanYouComeWithMe, MSGBOX_SIGN msgbox LilycoveCity_LilycoveMuseum_1F_Text_ExcellentCanYouComeWithMe, MSGBOX_SIGN
applymovement 2, LilycoveCity_LilycoveMuseum_1F_Movement_CuratorEnterStairs applymovement LOCALID_CURATOR, LilycoveCity_LilycoveMuseum_1F_Movement_CuratorEnterStairs
waitmovement 0 waitmovement 0
removeobject 2 removeobject LOCALID_CURATOR
switch VAR_FACING switch VAR_FACING
case DIR_NORTH, LilycoveCity_LilycoveMuseum_1F_EventScript_FollowCuratorNorth case DIR_NORTH, LilycoveCity_LilycoveMuseum_1F_EventScript_FollowCuratorNorth
case DIR_WEST, LilycoveCity_LilycoveMuseum_1F_EventScript_FollowCuratorWest case DIR_WEST, LilycoveCity_LilycoveMuseum_1F_EventScript_FollowCuratorWest
@@ -153,7 +156,7 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_Artist2:: @ 8218E2B
faceplayer faceplayer
msgbox LilycoveCity_LilycoveMuseum_1F_Text_AimToSeeGreatPaintings, MSGBOX_DEFAULT msgbox LilycoveCity_LilycoveMuseum_1F_Text_AimToSeeGreatPaintings, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, Common_Movement_FaceOriginalDirection applymovement LOCALID_ARTIST_2, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -1,3 +1,5 @@
.set LOCALID_CURATOR, 1
LilycoveCity_LilycoveMuseum_2F_MapScripts:: @ 821973A LilycoveCity_LilycoveMuseum_2F_MapScripts:: @ 821973A
map_script MAP_SCRIPT_ON_LOAD, LilycoveCity_LilycoveMuseum_2F_OnLoad map_script MAP_SCRIPT_ON_LOAD, LilycoveCity_LilycoveMuseum_2F_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_LilycoveMuseum_2F_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_LilycoveMuseum_2F_OnFrame
@@ -62,16 +64,16 @@ LilycoveCity_LilycoveMuseum_2F_OnFrame: @ 82197FE
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowExhibitHall:: @ 8219808 LilycoveCity_LilycoveMuseum_2F_EventScript_ShowExhibitHall:: @ 8219808
lockall lockall
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_CURATOR, Common_Movement_FacePlayer
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_PlayerWalkInPlaceLeft applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_PlayerWalkInPlaceLeft
waitmovement 0 waitmovement 0
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ThisIsExhibitHall, MSGBOX_SIGN msgbox LilycoveCity_LilycoveMuseum_2F_Text_ThisIsExhibitHall, MSGBOX_SIGN
applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall applymovement LOCALID_CURATOR, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall
waitmovement 0 waitmovement 0
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ExplainExhibitHall, MSGBOX_SIGN msgbox LilycoveCity_LilycoveMuseum_2F_Text_ExplainExhibitHall, MSGBOX_SIGN
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_CURATOR, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_PlayerWalkInPlaceLeft applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_LilycoveMuseum_2F_Movement_PlayerWalkInPlaceLeft
waitmovement 0 waitmovement 0
@@ -107,16 +109,16 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_AddedPainting:: @ 82198BA
end end
LilycoveCity_LilycoveMuseum_2F_EventScript_ThankPlayer:: @ 82198C3 LilycoveCity_LilycoveMuseum_2F_EventScript_ThankPlayer:: @ 82198C3
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_CURATOR, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsYouPlayer, MSGBOX_DEFAULT msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsYouPlayer, MSGBOX_DEFAULT
applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall applymovement LOCALID_CURATOR, LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall
msgbox LilycoveCity_LilycoveMuseum_2F_Text_PaintingsAttractedMoreGuests, MSGBOX_DEFAULT msgbox LilycoveCity_LilycoveMuseum_2F_Text_PaintingsAttractedMoreGuests, MSGBOX_DEFAULT
goto LilycoveCity_LilycoveMuseum_2F_EventScript_GiveGlassOrnament goto LilycoveCity_LilycoveMuseum_2F_EventScript_GiveGlassOrnament
end end
LilycoveCity_LilycoveMuseum_2F_EventScript_GiveGlassOrnament:: @ 82198EA LilycoveCity_LilycoveMuseum_2F_EventScript_GiveGlassOrnament:: @ 82198EA
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_CURATOR, Common_Movement_FacePlayer
msgbox LilycoveCity_LilycoveMuseum_2F_Text_TokenOfGratitude, MSGBOX_DEFAULT msgbox LilycoveCity_LilycoveMuseum_2F_Text_TokenOfGratitude, MSGBOX_DEFAULT
givedecoration DECOR_GLASS_ORNAMENT givedecoration DECOR_GLASS_ORNAMENT
compare VAR_RESULT, FALSE compare VAR_RESULT, FALSE
@@ -1,9 +1,11 @@
.set LOCALID_MOVE_DELETER, 1
LilycoveCity_MoveDeletersHouse_MapScripts:: @ 821EA0A LilycoveCity_MoveDeletersHouse_MapScripts:: @ 821EA0A
.byte 0 .byte 0
LilycoveCity_MoveDeletersHouse_EventScript_MoveDeleter:: @ 821EA0B LilycoveCity_MoveDeletersHouse_EventScript_MoveDeleter:: @ 821EA0B
lockall lockall
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_MOVE_DELETER, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox LilycoveCity_MoveDeletersHouse_Text_ICanMakeMonForgetMove, MSGBOX_YESNO msgbox LilycoveCity_MoveDeletersHouse_Text_ICanMakeMonForgetMove, MSGBOX_YESNO
switch VAR_RESULT switch VAR_RESULT
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
LilycoveCity_PokemonCenter_1F_MapScripts:: @ 821C5B2 LilycoveCity_PokemonCenter_1F_MapScripts:: @ 821C5B2
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -25,9 +27,8 @@ LilycoveCity_PokemonCenter_1F_EventScript_ShowContestLadyMon:: @ 821C5E4
clearflag FLAG_HIDE_LILYCOVE_POKEMON_CENTER_CONTEST_LADY_MON clearflag FLAG_HIDE_LILYCOVE_POKEMON_CENTER_CONTEST_LADY_MON
end end
@ VAR_0x800B is the Nurse's object event id
LilycoveCity_PokemonCenter_1F_EventScript_Nurse:: @ 821C5E8 LilycoveCity_PokemonCenter_1F_EventScript_Nurse:: @ 821C5E8
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -1,3 +1,12 @@
.set LOCALID_LASS, 1
.set LOCALID_MAN, 2
.set LOCALID_POKEFAN_M, 3
.set LOCALID_LITTLE_GIRL, 4
.set LOCALID_NINJA_BOY, 5
.set LOCALID_BOY, 6
.set LOCALID_WOMAN, 7
.set LOCALID_EXPERT_F, 8
LilycoveCity_PokemonTrainerFanClub_MapScripts:: @ 821C785 LilycoveCity_PokemonTrainerFanClub_MapScripts:: @ 821C785
map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_PokemonTrainerFanClub_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_PokemonTrainerFanClub_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_PokemonTrainerFanClub_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_PokemonTrainerFanClub_OnTransition
@@ -11,20 +20,20 @@ LilycoveCity_PokemonTrainerFanClub_OnFrame: @ 821C790
LilycoveCity_PokemonTrainerFanClub_EventScript_MeetFirstFans:: @ 821C79A LilycoveCity_PokemonTrainerFanClub_EventScript_MeetFirstFans:: @ 821C79A
lockall lockall
applymovement 1, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_LASS, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
msgbox LilycoveCity_PokemonTrainerFanClub_Text_OhWowItsPlayer, MSGBOX_DEFAULT msgbox LilycoveCity_PokemonTrainerFanClub_Text_OhWowItsPlayer, MSGBOX_DEFAULT
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlWatchPlayer applymovement LOCALID_LITTLE_GIRL, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlWatchPlayer
applymovement 2, LilycoveCity_PokemonTrainerFanClub_Movement_FanApproachPlayer applymovement LOCALID_MAN, LilycoveCity_PokemonTrainerFanClub_Movement_FanApproachPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox LilycoveCity_PokemonTrainerFanClub_Text_HeardAboutYouImYourFan, MSGBOX_DEFAULT msgbox LilycoveCity_PokemonTrainerFanClub_Text_HeardAboutYouImYourFan, MSGBOX_DEFAULT
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlMoveCloserToPlayer applymovement LOCALID_LITTLE_GIRL, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlMoveCloserToPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlHideFromPlayer applymovement LOCALID_LITTLE_GIRL, LilycoveCity_PokemonTrainerFanClub_Movement_LittleGirlHideFromPlayer
waitmovement 0 waitmovement 0
setvar VAR_LILYCOVE_FAN_CLUB_STATE, 2 setvar VAR_LILYCOVE_FAN_CLUB_STATE, 2
releaseall releaseall
@@ -168,35 +177,35 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_TrySetUpTVShow:: @ 821C9B4
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember1ToFarTable:: @ 821C9B8 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember1ToFarTable:: @ 821C9B8
setobjectxyperm 1, 7, 5 setobjectxyperm LOCALID_LASS, 7, 5
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember2ToFarTable:: @ 821C9C0 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember2ToFarTable:: @ 821C9C0
setobjectxyperm 3, 3, 4 setobjectxyperm LOCALID_POKEFAN_M, 3, 4
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember3ToFarTable:: @ 821C9C8 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember3ToFarTable:: @ 821C9C8
setobjectxyperm 4, 7, 2 setobjectxyperm LOCALID_LITTLE_GIRL, 7, 2
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember4ToFarTable:: @ 821C9D0 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember4ToFarTable:: @ 821C9D0
setobjectxyperm 5, 5, 5 setobjectxyperm LOCALID_NINJA_BOY, 5, 5
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember5ToFarTable:: @ 821C9D8 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember5ToFarTable:: @ 821C9D8
setobjectxyperm 6, 5, 2 setobjectxyperm LOCALID_BOY, 5, 2
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember6ToFarTable:: @ 821C9E0 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember6ToFarTable:: @ 821C9E0
setobjectxyperm 2, 8, 4 setobjectxyperm LOCALID_MAN, 8, 4
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember7ToFarTable:: @ 821C9E8 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember7ToFarTable:: @ 821C9E8
setobjectxyperm 7, 3, 3 setobjectxyperm LOCALID_WOMAN, 3, 3
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember8ToFarTable:: @ 821C9F0 LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember8ToFarTable:: @ 821C9F0
setobjectxyperm 8, 8, 3 setobjectxyperm LOCALID_EXPERT_F, 8, 3
return return
LilycoveCity_PokemonTrainerFanClub_EventScript_SetFanMemberPositionsForFirstFanMeeting:: @ 821C9F8 LilycoveCity_PokemonTrainerFanClub_EventScript_SetFanMemberPositionsForFirstFanMeeting:: @ 821C9F8
+77 -72
View File
@@ -1,3 +1,8 @@
.set LOCALID_TWIN, 1
.set LOCALID_MOM, 4
.set LOCALID_RIVAL, 7
.set LOCALID_BIRCH, 8
LittlerootTown_MapScripts:: @ 81E7DCB LittlerootTown_MapScripts:: @ 81E7DCB
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, LittlerootTown_OnFrame map_script MAP_SCRIPT_ON_FRAME_TABLE, LittlerootTown_OnFrame
@@ -79,24 +84,24 @@ LittlerootTown_EventScript_SetExitedHouseAfterLatiSSTicketEvent:: @ 81E7E5C
return return
LittlerootTown_EventScript_MoveMomToMaysDoor:: @ 81E7E67 LittlerootTown_EventScript_MoveMomToMaysDoor:: @ 81E7E67
setobjectxyperm 4, 14, 8 setobjectxyperm LOCALID_MOM, 14, 8
return return
LittlerootTown_EventScript_SetTwinPos:: @ 81E7E6F LittlerootTown_EventScript_SetTwinPos:: @ 81E7E6F
compare VAR_LITTLEROOT_TOWN_STATE, 0 compare VAR_LITTLEROOT_TOWN_STATE, 0
goto_if_eq LittlerootTown_EventScript_SetTwinGuardingRoutePos goto_if_eq LittlerootTown_EventScript_SetTwinGuardingRoutePos
setobjectxyperm 1, 10, 1 setobjectxyperm LOCALID_TWIN, 10, 1
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_TWIN, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_EventScript_SetTwinGuardingRoutePos:: @ 81E7E86 LittlerootTown_EventScript_SetTwinGuardingRoutePos:: @ 81E7E86
setobjectxyperm 1, 7, 2 setobjectxyperm LOCALID_TWIN, 7, 2
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_DOWN setobjectmovementtype LOCALID_TWIN, MOVEMENT_TYPE_FACE_DOWN
return return
LittlerootTown_EventScript_SetMomStandingInFrontOfDoorPos:: @ 81E7E92 LittlerootTown_EventScript_SetMomStandingInFrontOfDoorPos:: @ 81E7E92
clearflag FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE clearflag FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE
setobjectmovementtype 4, MOVEMENT_TYPE_FACE_DOWN setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_DOWN
checkplayergender checkplayergender
compare VAR_RESULT, MALE compare VAR_RESULT, MALE
call_if_eq LittlerootTown_EventScript_SetMomInFrontOfDoorMale call_if_eq LittlerootTown_EventScript_SetMomInFrontOfDoorMale
@@ -105,11 +110,11 @@ LittlerootTown_EventScript_SetMomStandingInFrontOfDoorPos:: @ 81E7E92
return return
LittlerootTown_EventScript_SetMomInFrontOfDoorMale:: @ 81E7EB1 LittlerootTown_EventScript_SetMomInFrontOfDoorMale:: @ 81E7EB1
setobjectxyperm 4, 5, 9 setobjectxyperm LOCALID_MOM, 5, 9
return return
LittlerootTown_EventScript_SetMomInFrontOfDoorFemale:: @ 81E7EB9 LittlerootTown_EventScript_SetMomInFrontOfDoorFemale:: @ 81E7EB9
setobjectxyperm 4, 14, 9 setobjectxyperm LOCALID_MOM, 14, 9
return return
LittlerootTown_OnFrame: @ 81E7EC1 LittlerootTown_OnFrame: @ 81E7EC1
@@ -147,22 +152,22 @@ LittlerootTown_EventScript_GoInsideWithMom:: @ 81E7F17
waitmovement 0 waitmovement 0
opendoor VAR_0x8004, VAR_0x8005 opendoor VAR_0x8004, VAR_0x8005
waitdooranim waitdooranim
addobject 4 addobject LOCALID_MOM
applymovement 4, LittlerootTown_Movement_MomExitHouse applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitHouse
waitmovement 0 waitmovement 0
closedoor VAR_0x8004, VAR_0x8005 closedoor VAR_0x8004, VAR_0x8005
waitdooranim waitdooranim
delay 10 delay 10
applymovement 4, LittlerootTown_Movement_MomApproachPlayerAtTruck applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerAtTruck
waitmovement 0 waitmovement 0
msgbox LittlerootTown_Text_OurNewHomeLetsGoInside, MSGBOX_DEFAULT msgbox LittlerootTown_Text_OurNewHomeLetsGoInside, MSGBOX_DEFAULT
closemessage closemessage
applymovement 4, LittlerootTown_Movement_MomApproachDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachDoor
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PlayerApproachDoor applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PlayerApproachDoor
waitmovement 0 waitmovement 0
opendoor VAR_0x8004, VAR_0x8005 opendoor VAR_0x8004, VAR_0x8005
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomEnterHouse applymovement LOCALID_MOM, LittlerootTown_Movement_MomEnterHouse
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PlayerEnterHouse applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PlayerEnterHouse
waitmovement 0 waitmovement 0
setflag FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE setflag FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE
@@ -216,7 +221,7 @@ LittlerootTown_Movement_PlayerStepOffTruck: @ 81E7FAC
LittlerootTown_EventScript_BeginDexUpgradeScene:: @ 81E7FB1 LittlerootTown_EventScript_BeginDexUpgradeScene:: @ 81E7FB1
lockall lockall
playse SE_PIN playse SE_PIN
applymovement 8, Common_Movement_ExclamationMark applymovement LOCALID_BIRCH, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
delay 80 delay 80
msgbox LittlerootTown_Text_BirchSomethingToShowYouAtLab, MSGBOX_DEFAULT msgbox LittlerootTown_Text_BirchSomethingToShowYouAtLab, MSGBOX_DEFAULT
@@ -235,8 +240,8 @@ LittlerootTown_OnWarp: @ 81E7FE2
.2byte 0 .2byte 0
LittlerootTown_EventScript_SetRivalBirchPosForDexUpgrade:: @ 81E7FEC LittlerootTown_EventScript_SetRivalBirchPosForDexUpgrade:: @ 81E7FEC
addobject 8 addobject LOCALID_BIRCH
addobject 7 addobject LOCALID_RIVAL
checkplayergender checkplayergender
compare VAR_RESULT, MALE compare VAR_RESULT, MALE
goto_if_eq LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeMale goto_if_eq LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeMale
@@ -244,13 +249,13 @@ LittlerootTown_EventScript_SetRivalBirchPosForDexUpgrade:: @ 81E7FEC
end end
LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeMale:: @ 81E8004 LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeMale:: @ 81E8004
setobjectxy 7, 6, 10 setobjectxy LOCALID_RIVAL, 6, 10
setobjectxy 8, 5, 10 setobjectxy LOCALID_BIRCH, 5, 10
end end
LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeFemale:: @ 81E8013 LittlerootTown_EventScript_SetRivalBirchPosForDexUpgradeFemale:: @ 81E8013
setobjectxy 7, 13, 10 setobjectxy LOCALID_RIVAL, 13, 10
setobjectxy 8, 14, 10 setobjectxy LOCALID_BIRCH, 14, 10
end end
LittlerootTown_EventScript_FatMan:: @ 81E8022 LittlerootTown_EventScript_FatMan:: @ 81E8022
@@ -276,7 +281,7 @@ LittlerootTown_EventScript_GoSaveBirch:: @ 81E805D
special GetPlayerBigGuyGirlString special GetPlayerBigGuyGirlString
msgbox LittlerootTown_Text_CanYouGoSeeWhatsHappening, MSGBOX_DEFAULT msgbox LittlerootTown_Text_CanYouGoSeeWhatsHappening, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_FaceOriginalDirection applymovement LOCALID_TWIN, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
setvar VAR_LITTLEROOT_TOWN_STATE, 2 setvar VAR_LITTLEROOT_TOWN_STATE, 2
release release
@@ -295,10 +300,10 @@ LittlerootTown_EventScript_GoodLuck:: @ 81E8087
LittlerootTown_EventScript_NeedPokemonTriggerLeft:: @ 81E8091 LittlerootTown_EventScript_NeedPokemonTriggerLeft:: @ 81E8091
lockall lockall
applymovement 1, LittlerootTown_Movement_TwinApproachPlayerLeft applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinApproachPlayerLeft
waitmovement 0 waitmovement 0
call LittlerootTown_EventScript_DangerousWithoutPokemon call LittlerootTown_EventScript_DangerousWithoutPokemon
applymovement 1, LittlerootTown_Movement_TwinReturnLeft applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinReturnLeft
waitmovement 0 waitmovement 0
releaseall releaseall
end end
@@ -306,7 +311,7 @@ LittlerootTown_EventScript_NeedPokemonTriggerLeft:: @ 81E8091
LittlerootTown_EventScript_DangerousWithoutPokemon:: @ 81E80AD LittlerootTown_EventScript_DangerousWithoutPokemon:: @ 81E80AD
msgbox LittlerootTown_Text_IfYouGoInGrassPokemonWillJumpOut, MSGBOX_DEFAULT msgbox LittlerootTown_Text_IfYouGoInGrassPokemonWillJumpOut, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, LittlerootTown_Movement_TwinPushPlayerFromRoute applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinPushPlayerFromRoute
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PushPlayerBackFromRoute applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_Movement_PushPlayerBackFromRoute
waitmovement 0 waitmovement 0
msgbox LittlerootTown_Text_DangerousIfYouDontHavePokemon, MSGBOX_DEFAULT msgbox LittlerootTown_Text_DangerousIfYouDontHavePokemon, MSGBOX_DEFAULT
@@ -353,10 +358,10 @@ LittlerootTown_Movement_PushPlayerBackFromRoute: @ 81E80EB
LittlerootTown_EventScript_NeedPokemonTriggerRight:: @ 81E80EF LittlerootTown_EventScript_NeedPokemonTriggerRight:: @ 81E80EF
lockall lockall
applymovement 1, LittlerootTown_Movement_TwinApproachPlayerRight applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinApproachPlayerRight
waitmovement 0 waitmovement 0
call LittlerootTown_EventScript_DangerousWithoutPokemon call LittlerootTown_EventScript_DangerousWithoutPokemon
applymovement 1, LittlerootTown_Movement_TwinReturnRight applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinReturnRight
waitmovement 0 waitmovement 0
releaseall releaseall
end end
@@ -387,14 +392,14 @@ LittlerootTown_Movement_TwinReturnRight: @ 81E8118
LittlerootTown_EventScript_GoSaveBirchTrigger:: @ 81E811F LittlerootTown_EventScript_GoSaveBirchTrigger:: @ 81E811F
lockall lockall
applymovement 1, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_TWIN, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
special GetPlayerBigGuyGirlString special GetPlayerBigGuyGirlString
msgbox LittlerootTown_Text_CanYouGoSeeWhatsHappening, MSGBOX_DEFAULT msgbox LittlerootTown_Text_CanYouGoSeeWhatsHappening, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, Common_Movement_FaceOriginalDirection applymovement LOCALID_TWIN, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
setvar VAR_LITTLEROOT_TOWN_STATE, 2 setvar VAR_LITTLEROOT_TOWN_STATE, 2
releaseall releaseall
@@ -447,14 +452,14 @@ LittlerootTown_EventScript_PlayersHouseSignFemale:: @ 81E81B2
LittlerootTown_EventScript_GiveRunningShoesTrigger0:: @ 81E81BB LittlerootTown_EventScript_GiveRunningShoesTrigger0:: @ 81E81BB
lockall lockall
setvar VAR_0x8008, 0 setvar VAR_0x8008, 0
setobjectxy 4, 10, 9 setobjectxy LOCALID_MOM, 10, 9
goto LittlerootTown_EventScript_GiveRunningShoesTrigger goto LittlerootTown_EventScript_GiveRunningShoesTrigger
end end
LittlerootTown_EventScript_GiveRunningShoesTrigger1:: @ 81E81CE LittlerootTown_EventScript_GiveRunningShoesTrigger1:: @ 81E81CE
lockall lockall
setvar VAR_0x8008, 1 setvar VAR_0x8008, 1
setobjectxy 4, 11, 9 setobjectxy LOCALID_MOM, 11, 9
goto LittlerootTown_EventScript_GiveRunningShoesTrigger goto LittlerootTown_EventScript_GiveRunningShoesTrigger
end end
@@ -520,12 +525,12 @@ LittlerootTown_EventScript_SetHomeDoorCoordsFemale:: @ 81E828C
return return
LittlerootTown_EventScript_MomNoticePlayerMale:: @ 81E8297 LittlerootTown_EventScript_MomNoticePlayerMale:: @ 81E8297
applymovement 4, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_MOM, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomNoticePlayerFemale:: @ 81E82A2 LittlerootTown_EventScript_MomNoticePlayerFemale:: @ 81E82A2
applymovement 4, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MOM, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
return return
@@ -562,70 +567,70 @@ LittlerootTown_EventScript_MomApproachPlayerFemale:: @ 81E82F0
LittlerootTown_EventScript_MomApproachPlayer0:: @ 81E8333 LittlerootTown_EventScript_MomApproachPlayer0:: @ 81E8333
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayer0 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayer0
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayer1:: @ 81E8348 LittlerootTown_EventScript_MomApproachPlayer1:: @ 81E8348
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayer1 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayer1
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerMale2:: @ 81E835D LittlerootTown_EventScript_MomApproachPlayerMale2:: @ 81E835D
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerMale2 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerMale2
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerMale3:: @ 81E8372 LittlerootTown_EventScript_MomApproachPlayerMale3:: @ 81E8372
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerMale3 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerMale3
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerMale4:: @ 81E8387 LittlerootTown_EventScript_MomApproachPlayerMale4:: @ 81E8387
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerMale4 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerMale4
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerMale5:: @ 81E839C LittlerootTown_EventScript_MomApproachPlayerMale5:: @ 81E839C
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerMale5 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerMale5
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerFemale2:: @ 81E83B1 LittlerootTown_EventScript_MomApproachPlayerFemale2:: @ 81E83B1
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerFemale2 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerFemale2
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerFemale3:: @ 81E83C6 LittlerootTown_EventScript_MomApproachPlayerFemale3:: @ 81E83C6
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerFemale3 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerFemale3
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerFemale4:: @ 81E83DB LittlerootTown_EventScript_MomApproachPlayerFemale4:: @ 81E83DB
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerFemale4 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerFemale4
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomApproachPlayerFemale5:: @ 81E83F0 LittlerootTown_EventScript_MomApproachPlayerFemale5:: @ 81E83F0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
applymovement 4, LittlerootTown_Movement_MomApproachPlayerFemale5 applymovement LOCALID_MOM, LittlerootTown_Movement_MomApproachPlayerFemale5
waitmovement 0 waitmovement 0
return return
@@ -660,107 +665,107 @@ LittlerootTown_EventScript_MomReturnHomeFemale:: @ 81E8448
return return
LittlerootTown_EventScript_MomReturnHome0:: @ 81E848B LittlerootTown_EventScript_MomReturnHome0:: @ 81E848B
applymovement 4, LittlerootTown_Movement_MomReturnHome0 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHome0
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomReturnHome1:: @ 81E8496 LittlerootTown_EventScript_MomReturnHome1:: @ 81E8496
applymovement 4, LittlerootTown_Movement_MomReturnHome1 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHome1
waitmovement 0 waitmovement 0
return return
LittlerootTown_EventScript_MomReturnHomeMale2:: @ 81E84A1 LittlerootTown_EventScript_MomReturnHomeMale2:: @ 81E84A1
applymovement 4, LittlerootTown_Movement_MomReturnHomeMale2 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeMale2
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeMale3:: @ 81E84C7 LittlerootTown_EventScript_MomReturnHomeMale3:: @ 81E84C7
applymovement 4, LittlerootTown_Movement_MomReturnHomeMale3 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeMale3
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeMale4:: @ 81E84ED LittlerootTown_EventScript_MomReturnHomeMale4:: @ 81E84ED
applymovement 4, LittlerootTown_Movement_MomReturnHomeMale4 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeMale4
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeMale5:: @ 81E8513 LittlerootTown_EventScript_MomReturnHomeMale5:: @ 81E8513
applymovement 4, LittlerootTown_Movement_MomReturnHomeMale5 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeMale5
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeFemale2:: @ 81E8539 LittlerootTown_EventScript_MomReturnHomeFemale2:: @ 81E8539
applymovement 4, LittlerootTown_Movement_MomReturnHomeFemale2 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeFemale2
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeFemale3:: @ 81E855F LittlerootTown_EventScript_MomReturnHomeFemale3:: @ 81E855F
applymovement 4, LittlerootTown_Movement_MomReturnHomeFemale3 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeFemale3
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeFemale4:: @ 81E8585 LittlerootTown_EventScript_MomReturnHomeFemale4:: @ 81E8585
applymovement 4, LittlerootTown_Movement_MomReturnHomeFemale4 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeFemale4
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
LittlerootTown_EventScript_MomReturnHomeFemale5:: @ 81E85AB LittlerootTown_EventScript_MomReturnHomeFemale5:: @ 81E85AB
applymovement 4, LittlerootTown_Movement_MomReturnHomeFemale5 applymovement LOCALID_MOM, LittlerootTown_Movement_MomReturnHomeFemale5
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
return return
@@ -924,20 +929,20 @@ LittlerootTown_EventScript_Mom:: @ 81E863D
compare VAR_RESULT, FEMALE compare VAR_RESULT, FEMALE
call_if_eq LittlerootTown_EventScript_SetHomeDoorCoordsFemale call_if_eq LittlerootTown_EventScript_SetHomeDoorCoordsFemale
call LittlerootTown_EventScript_GiveRunningShoes call LittlerootTown_EventScript_GiveRunningShoes
applymovement 4, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_MOM, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
opendoor VAR_0x8009, VAR_0x800A opendoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
applymovement 4, LittlerootTown_Movement_MomExitThroughDoor applymovement LOCALID_MOM, LittlerootTown_Movement_MomExitThroughDoor
waitmovement 0 waitmovement 0
hideobjectat 4, MAP_LITTLEROOT_TOWN hideobjectat LOCALID_MOM, MAP_LITTLEROOT_TOWN
closedoor VAR_0x8009, VAR_0x800A closedoor VAR_0x8009, VAR_0x800A
waitdooranim waitdooranim
goto LittlerootTown_EventScript_SetReceivedRunningShoes goto LittlerootTown_EventScript_SetReceivedRunningShoes
end end
LittlerootTown_EventScript_SetReceivedRunningShoes:: @ 81E8686 LittlerootTown_EventScript_SetReceivedRunningShoes:: @ 81E8686
removeobject 4 removeobject LOCALID_MOM
setflag FLAG_SYS_B_DASH setflag FLAG_SYS_B_DASH
setvar VAR_LITTLEROOT_TOWN_STATE, 4 setvar VAR_LITTLEROOT_TOWN_STATE, 4
release release
@@ -1,3 +1,7 @@
.set LOCALID_MOM, 1
.set LOCALID_RIVAL_MOM, 4
.set LOCALID_RIVAL, 7
LittlerootTown_BrendansHouse_1F_MapScripts:: @ 81F7755 LittlerootTown_BrendansHouse_1F_MapScripts:: @ 81F7755
map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_BrendansHouse_1F_OnLoad map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_BrendansHouse_1F_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_BrendansHouse_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_BrendansHouse_1F_OnTransition
@@ -35,18 +39,18 @@ LittlerootTown_BrendansHouse_1F_OnTransition: @ 81F77A4
end end
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToStairs:: @ 81F77C6 LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToStairs:: @ 81F77C6
setobjectxyperm 1, 8, 4 setobjectxyperm LOCALID_MOM, 8, 4
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToTV:: @ 81F77D2 LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToTV:: @ 81F77D2
setobjectxyperm 1, 4, 5 setobjectxyperm LOCALID_MOM, 4, 5
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToDoor:: @ 81F77DE LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToDoor:: @ 81F77DE
setobjectxyperm 1, 9, 8 setobjectxyperm LOCALID_MOM, 9, 8
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
@ Many of the below scripts have no gender check because they assume youre in the correct house @ Many of the below scripts have no gender check because they assume youre in the correct house
@@ -64,7 +68,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_GoUpstairsToSetClock:: @ 81F7814
msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs
applymovement 1, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs applymovement LOCALID_MOM, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs
waitmovement 0 waitmovement 0
warp MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 255, 7, 1 warp MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 255, 7, 1
waitstate waitstate
@@ -77,27 +81,27 @@ LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs: @ 81F783A
LittlerootTown_BrendansHouse_1F_EventScript_EnterHouseMovingIn:: @ 81F783C LittlerootTown_BrendansHouse_1F_EventScript_EnterHouseMovingIn:: @ 81F783C
lockall lockall
setvar VAR_0x8004, 1 setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, MALE setvar VAR_0x8005, MALE
goto PlayersHouse_1F_EventScript_EnterHouseMovingIn goto PlayersHouse_1F_EventScript_EnterHouseMovingIn
end end
LittlerootTown_BrendansHouse_1F_EventScript_PetalburgGymReport:: @ 81F784D LittlerootTown_BrendansHouse_1F_EventScript_PetalburgGymReport:: @ 81F784D
lockall lockall
setvar VAR_0x8004, 0 setvar VAR_0x8004, MALE
setvar VAR_0x8005, 1 @ Object event ID for Mom setvar VAR_0x8005, LOCALID_MOM
goto PlayersHouse_1F_EventScript_PetalburgGymReportMale goto PlayersHouse_1F_EventScript_PetalburgGymReportMale
end end
LittlerootTown_BrendansHouse_1F_EventScript_YoureNewNeighbor:: @ 81F785E LittlerootTown_BrendansHouse_1F_EventScript_YoureNewNeighbor:: @ 81F785E
lockall lockall
playse SE_PIN playse SE_PIN
applymovement 4, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL_MOM, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 4, Common_Movement_Delay48 applymovement LOCALID_RIVAL_MOM, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement 4, LittlerootTown_BrendansHouse_1F_Movement_RivalMomApproach applymovement LOCALID_RIVAL_MOM, LittlerootTown_BrendansHouse_1F_Movement_RivalMomApproach
waitmovement 0 waitmovement 0
special GetRivalSonDaughterString special GetRivalSonDaughterString
msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT
@@ -117,7 +121,7 @@ LittlerootTown_BrendansHouse_1F_Movement_RivalMomApproach: @ 81F789C
LittlerootTown_BrendansHouse_1F_EventScript_GoSeeRoom:: @ 81F78A3 LittlerootTown_BrendansHouse_1F_EventScript_GoSeeRoom:: @ 81F78A3
lockall lockall
setvar VAR_0x8004, 1 setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, MALE setvar VAR_0x8005, MALE
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestLeft applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
@@ -145,12 +149,12 @@ LittlerootTown_BrendansHouse_1F_EventScript_MeetRival2:: @ 81F78D6
LittlerootTown_BrendansHouse_1F_EventScript_MeetRival:: @ 81F78E2 LittlerootTown_BrendansHouse_1F_EventScript_MeetRival:: @ 81F78E2
playse SE_KAIDAN playse SE_KAIDAN
delay 10 delay 10
addobject 7 addobject LOCALID_RIVAL
delay 30 delay 30
playse SE_PIN playse SE_PIN
applymovement 7, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 7, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
compare VAR_0x8008, 1 compare VAR_0x8008, 1
call_if_ne LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan call_if_ne LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan
@@ -170,7 +174,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_MeetRival:: @ 81F78E2
compare VAR_0x8008, 2 compare VAR_0x8008, 2
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2 call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2
playse SE_KAIDAN playse SE_KAIDAN
removeobject 7 removeobject LOCALID_RIVAL
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_BRENDAN setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_BRENDAN
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM clearflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM
@@ -188,17 +192,17 @@ LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan:: @ 81F7981
return return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer0:: @ 81F798C LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer0:: @ 81F798C
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer0 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer0
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer1:: @ 81F7997 LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer1:: @ 81F7997
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer1 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer1
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer2:: @ 81F79A2 LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer2:: @ 81F79A2
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer2 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer2
waitmovement 0 waitmovement 0
return return
@@ -230,19 +234,19 @@ LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer2: @ 81F79B9
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs0:: @ 81F79C1 LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs0:: @ 81F79C1
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit0 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit0
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs0 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs0
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs1:: @ 81F79D3 LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs1:: @ 81F79D3
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit1 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit1
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs1 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs1
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2:: @ 81F79E5 LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2:: @ 81F79E5
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit2 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit2
applymovement 7, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs2 applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs2
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,5 @@
.set LOCALID_RIVAL, 1
LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81F83E3 LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81F83E3
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_BrendansHouse_2F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_BrendansHouse_2F_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_BrendansHouse_2F_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_BrendansHouse_2F_OnWarp
@@ -26,8 +28,8 @@ LittlerootTown_BrendansHouse_2F_EventScript_TryUpdateBrendanPos:: @ 81F8433
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_Ret goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_Ret
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2 compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2
goto_if_ge LittlerootTown_MaysHouse_2F_EventScript_Ret @ Odd that the MaysHouse equivalent was used here instead goto_if_ge LittlerootTown_MaysHouse_2F_EventScript_Ret @ Odd that the MaysHouse equivalent was used here instead
setobjectxyperm 1, 0, 2 setobjectxyperm LOCALID_RIVAL, 0, 2
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_BrendansHouse_2F_EventScript_Ret:: @ 81F8456 LittlerootTown_BrendansHouse_2F_EventScript_Ret:: @ 81F8456
@@ -63,13 +65,13 @@ LittlerootTown_BrendansHouse_2F_EventScript_RivalsPokeBall:: @ 81F8481
LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendan:: @ 81F8497 LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendan:: @ 81F8497
delay 10 delay 10
addobject 1 addobject LOCALID_RIVAL
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanEnters applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanEnters
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
delay 10 delay 10
playbgm MUS_BOY_SUP, 1 playbgm MUS_BOY_SUP, 1
@@ -91,49 +93,49 @@ LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendan:: @ 81F8497
end end
LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanNorth:: @ 81F8507 LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanNorth:: @ 81F8507
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerNorth applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerNorth
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanNorth applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanNorth
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCNorth applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCNorth
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanSouth:: @ 81F8536 LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanSouth:: @ 81F8536
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerSouth applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerSouth
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanSouth applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanSouth
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCSouth applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCSouth
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanWest:: @ 81F8565 LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanWest:: @ 81F8565
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerWest applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerWest
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanWest applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_2F_Movement_PlayerWatchBrendanWest
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCWest applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCWest
waitmovement 0 waitmovement 0
return return
LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanEast:: @ 81F8594 LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanEast:: @ 81F8594
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerEast applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanApproachPlayerEast
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCEast applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_2F_Movement_BrendanWalkToPCEast
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,7 @@
.set LOCALID_MOM, 1
.set LOCALID_RIVAL_MOM, 4
.set LOCALID_RIVAL, 7
LittlerootTown_MaysHouse_1F_MapScripts:: @ 81F88A5 LittlerootTown_MaysHouse_1F_MapScripts:: @ 81F88A5
map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_MaysHouse_1F_OnLoad map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_MaysHouse_1F_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_MaysHouse_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_MaysHouse_1F_OnTransition
@@ -35,18 +39,18 @@ LittlerootTown_MaysHouse_1F_OnTransition: @ 81F88F4
end end
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToStairs:: @ 81F8916 LittlerootTown_MaysHouse_1F_EventScript_MoveMomToStairs:: @ 81F8916
setobjectxyperm 1, 2, 4 setobjectxyperm LOCALID_MOM, 2, 4
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToTV:: @ 81F8922 LittlerootTown_MaysHouse_1F_EventScript_MoveMomToTV:: @ 81F8922
setobjectxyperm 1, 6, 5 setobjectxyperm LOCALID_MOM, 6, 5
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToDoor:: @ 81F892E LittlerootTown_MaysHouse_1F_EventScript_MoveMomToDoor:: @ 81F892E
setobjectxyperm 1, 1, 8 setobjectxyperm LOCALID_MOM, 1, 8
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return return
@ Many of the below scripts have no gender check because they assume youre in the correct house @ Many of the below scripts have no gender check because they assume youre in the correct house
@@ -63,7 +67,7 @@ LittlerootTown_MaysHouse_1F_EventScript_GoUpstairsToSetClock:: @ 81F8964
msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs
applymovement 1, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs applymovement LOCALID_MOM, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs
waitmovement 0 waitmovement 0
warp MAP_LITTLEROOT_TOWN_MAYS_HOUSE_2F, 255, 1, 1 warp MAP_LITTLEROOT_TOWN_MAYS_HOUSE_2F, 255, 1, 1
waitstate waitstate
@@ -76,27 +80,27 @@ LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs: @ 81F898A
LittlerootTown_MaysHouse_1F_EventScript_EnterHouseMovingIn:: @ 81F898C LittlerootTown_MaysHouse_1F_EventScript_EnterHouseMovingIn:: @ 81F898C
lockall lockall
setvar VAR_0x8004, 1 setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, FEMALE setvar VAR_0x8005, FEMALE
goto PlayersHouse_1F_EventScript_EnterHouseMovingIn goto PlayersHouse_1F_EventScript_EnterHouseMovingIn
end end
LittlerootTown_MaysHouse_1F_EventScript_PetalburgGymReport:: @ 81F899D LittlerootTown_MaysHouse_1F_EventScript_PetalburgGymReport:: @ 81F899D
lockall lockall
setvar VAR_0x8004, 1 setvar VAR_0x8004, FEMALE
setvar VAR_0x8005, 1 setvar VAR_0x8005, LOCALID_MOM
goto PlayersHouse_1F_EventScript_PetalburgGymReportFemale goto PlayersHouse_1F_EventScript_PetalburgGymReportFemale
end end
LittlerootTown_MaysHouse_1F_EventScript_YoureNewNeighbor:: @ 81F89AE LittlerootTown_MaysHouse_1F_EventScript_YoureNewNeighbor:: @ 81F89AE
lockall lockall
playse SE_PIN playse SE_PIN
applymovement 4, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL_MOM, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 4, Common_Movement_Delay48 applymovement LOCALID_RIVAL_MOM, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
applymovement 4, LittlerootTown_MaysHouse_1F_Movement_RivalMomApproach applymovement LOCALID_RIVAL_MOM, LittlerootTown_MaysHouse_1F_Movement_RivalMomApproach
waitmovement 0 waitmovement 0
special GetRivalSonDaughterString special GetRivalSonDaughterString
msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT
@@ -151,7 +155,7 @@ RivalsHouse_1F_EventScript_RivalSibling:: @ 81F8A3D
LittlerootTown_MaysHouse_1F_EventScript_GoSeeRoom:: @ 81F8A4C LittlerootTown_MaysHouse_1F_EventScript_GoSeeRoom:: @ 81F8A4C
lockall lockall
setvar VAR_0x8004, 1 setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, FEMALE setvar VAR_0x8005, FEMALE
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestRight applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
@@ -179,12 +183,12 @@ LittlerootTown_MaysHouse_1F_EventScript_MeetRival2:: @ 81F8A7F
LittlerootTown_MaysHouse_1F_EventScript_MeetRival:: @ 81F8A8B LittlerootTown_MaysHouse_1F_EventScript_MeetRival:: @ 81F8A8B
playse SE_KAIDAN playse SE_KAIDAN
delay 10 delay 10
addobject 7 addobject LOCALID_RIVAL
delay 30 delay 30
playse SE_PIN playse SE_PIN
applymovement 7, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 7, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
compare VAR_0x8008, 1 compare VAR_0x8008, 1
call_if_ne LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay call_if_ne LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay
@@ -204,7 +208,7 @@ LittlerootTown_MaysHouse_1F_EventScript_MeetRival:: @ 81F8A8B
compare VAR_0x8008, 2 compare VAR_0x8008, 2
call_if_eq LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2 call_if_eq LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2
playse SE_KAIDAN playse SE_KAIDAN
removeobject 7 removeobject LOCALID_RIVAL
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MAY setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MAY
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL
clearflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM clearflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM
@@ -222,17 +226,17 @@ LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay:: @ 81F8B2A
return return
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer0:: @ 81F8B35 LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer0:: @ 81F8B35
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer0 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer0
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer1:: @ 81F8B40 LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer1:: @ 81F8B40
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer1 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer1
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer2:: @ 81F8B4B LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer2:: @ 81F8B4B
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer2 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer2
waitmovement 0 waitmovement 0
return return
@@ -264,19 +268,19 @@ LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer2: @ 81F8B62
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs0:: @ 81F8B6A LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs0:: @ 81F8B6A
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit0 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit0
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs0 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs0
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs1:: @ 81F8B7C LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs1:: @ 81F8B7C
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit1 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit1
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs1 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs1
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2:: @ 81F8B8E LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2:: @ 81F8B8E
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit2 applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit2
applymovement 7, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs2 applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs2
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,5 @@
.set LOCALID_RIVAL, 1
LittlerootTown_MaysHouse_2F_MapScripts:: @ 81F9296 LittlerootTown_MaysHouse_2F_MapScripts:: @ 81F9296
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_MaysHouse_2F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_MaysHouse_2F_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_MaysHouse_2F_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_MaysHouse_2F_OnWarp
@@ -26,8 +28,8 @@ LittlerootTown_MaysHouse_2F_EventScript_TryUpdateMayPos:: @ 81F92E6
goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_Ret goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_Ret
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2 compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2
goto_if_ge LittlerootTown_MaysHouse_2F_EventScript_Ret goto_if_ge LittlerootTown_MaysHouse_2F_EventScript_Ret
setobjectxyperm 1, 8, 2 setobjectxyperm LOCALID_RIVAL, 8, 2
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_UP setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_FACE_UP
return return
LittlerootTown_MaysHouse_2F_EventScript_Ret:: @ 81F9309 LittlerootTown_MaysHouse_2F_EventScript_Ret:: @ 81F9309
@@ -63,13 +65,13 @@ LittlerootTown_MaysHouse_2F_EventScript_RivalsPokeBall:: @ 81F9334
LittlerootTown_MaysHouse_2F_EventScript_MeetMay:: @ 81F934A LittlerootTown_MaysHouse_2F_EventScript_MeetMay:: @ 81F934A
delay 10 delay 10
addobject 1 addobject LOCALID_RIVAL
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayEnters applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayEnters
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0 waitmovement 0
delay 10 delay 10
playbgm MUS_GIRL_SUP, 1 playbgm MUS_GIRL_SUP, 1
@@ -91,49 +93,49 @@ LittlerootTown_MaysHouse_2F_EventScript_MeetMay:: @ 81F934A
end end
LittlerootTown_MaysHouse_2F_EventScript_MeetMayNorth:: @ 81F93BA LittlerootTown_MaysHouse_2F_EventScript_MeetMayNorth:: @ 81F93BA
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerNorth applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerNorth
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMayNorth applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMayNorth
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCNorth applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCNorth
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_2F_EventScript_MeetMaySouth:: @ 81F93E9 LittlerootTown_MaysHouse_2F_EventScript_MeetMaySouth:: @ 81F93E9
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerSouth applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerSouth
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMaySouth applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMaySouth
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCSouth applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCSouth
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_2F_EventScript_MeetMayWest:: @ 81F9418 LittlerootTown_MaysHouse_2F_EventScript_MeetMayWest:: @ 81F9418
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerWest applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerWest
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCWest applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCWest
waitmovement 0 waitmovement 0
return return
LittlerootTown_MaysHouse_2F_EventScript_MeetMayEast:: @ 81F9440 LittlerootTown_MaysHouse_2F_EventScript_MeetMayEast:: @ 81F9440
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerEast applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayApproachPlayerEast
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT msgbox RivalsHouse_2F_Text_MayWhoAreYou, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMayEast applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_2F_Movement_PlayerWatchMayEast
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCEast applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_2F_Movement_MayWalkToPCEast
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,10 @@
.set LOCALID_AIDE, 1
.set LOCALID_BIRCH, 2
.set LOCALID_RIVAL, 3
.set LOCALID_BALL_CYNDAQUIL, 4
.set LOCALID_BALL_TOTODILE, 5
.set LOCALID_BALL_CHIKORITA, 6
LittlerootTown_ProfessorBirchsLab_MapScripts:: @ 81F9C91 LittlerootTown_ProfessorBirchsLab_MapScripts:: @ 81F9C91
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_ProfessorBirchsLab_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_ProfessorBirchsLab_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_ProfessorBirchsLab_OnWarp map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_ProfessorBirchsLab_OnWarp
@@ -34,8 +41,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_CheckReadyForJohtoStarter:: @ 81F9
specialvar VAR_RESULT, HasAllHoennMons specialvar VAR_RESULT, HasAllHoennMons
compare VAR_RESULT, TRUE compare VAR_RESULT, TRUE
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter
setobjectmovementtype 3, MOVEMENT_TYPE_WANDER_UP_AND_DOWN setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_WANDER_UP_AND_DOWN
setobjectxyperm 3, 5, 10 setobjectxyperm LOCALID_RIVAL, 5, 10
end end
LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter:: @ 81F9CE9 LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter:: @ 81F9CE9
@@ -48,8 +55,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_SetJohtoStarterLayout:: @ 81F9CF3
LittlerootTown_ProfessorBirchsLab_EventScript_SetAfterJohtoStarterLayout:: @ 81F9CF7 LittlerootTown_ProfessorBirchsLab_EventScript_SetAfterJohtoStarterLayout:: @ 81F9CF7
setmaplayoutindex LAYOUT_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB_WITH_TABLE setmaplayoutindex LAYOUT_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB_WITH_TABLE
setobjectmovementtype 3, MOVEMENT_TYPE_WANDER_UP_AND_DOWN setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_WANDER_UP_AND_DOWN
setobjectxyperm 3, 5, 10 setobjectxyperm LOCALID_RIVAL, 5, 10
end end
LittlerootTown_ProfessorBirchsLab_OnWarp: @ 81F9D06 LittlerootTown_ProfessorBirchsLab_OnWarp: @ 81F9D06
@@ -68,35 +75,35 @@ LittlerootTown_ProfessorBirchsLab_EventScript_SetPlayerPosForReceiveStarter:: @
LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForDexUpgrade:: @ 81F9D45 LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForDexUpgrade:: @ 81F9D45
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
addobject 2 addobject LOCALID_BIRCH
addobject 3 addobject LOCALID_RIVAL
turnobject 3, DIR_NORTH turnobject LOCALID_RIVAL, DIR_NORTH
setobjectxy 3, 5, 5 setobjectxy LOCALID_RIVAL, 5, 5
turnobject 2, DIR_SOUTH turnobject LOCALID_BIRCH, DIR_SOUTH
setobjectxy 2, 6, 4 setobjectxy LOCALID_BIRCH, 6, 4
turnobject 1, DIR_EAST turnobject LOCALID_AIDE, DIR_EAST
setobjectxy 1, 10, 10 setobjectxy LOCALID_AIDE, 10, 10
end end
LittlerootTown_ProfessorBirchsLab_EventScript_AddRivalObject:: @ 81F9D71 LittlerootTown_ProfessorBirchsLab_EventScript_AddRivalObject:: @ 81F9D71
addobject 3 addobject LOCALID_RIVAL
end end
LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForJohtoStarters:: @ 81F9D75 LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForJohtoStarters:: @ 81F9D75
addobject 4 addobject LOCALID_BALL_CYNDAQUIL
addobject 5 addobject LOCALID_BALL_TOTODILE
addobject 6 addobject LOCALID_BALL_CHIKORITA
addobject 3 addobject LOCALID_RIVAL
turnobject 4, DIR_SOUTH turnobject LOCALID_BALL_CYNDAQUIL, DIR_SOUTH
setobjectxy 4, 8, 4 setobjectxy LOCALID_BALL_CYNDAQUIL, 8, 4
turnobject 5, DIR_SOUTH turnobject LOCALID_BALL_TOTODILE, DIR_SOUTH
setobjectxy 5, 9, 4 setobjectxy LOCALID_BALL_TOTODILE, 9, 4
turnobject 6, DIR_SOUTH turnobject LOCALID_BALL_CHIKORITA, DIR_SOUTH
setobjectxy 6, 10, 4 setobjectxy LOCALID_BALL_CHIKORITA, 10, 4
turnobject 2, DIR_SOUTH turnobject LOCALID_BIRCH, DIR_SOUTH
setobjectxy 2, 6, 4 setobjectxy LOCALID_BIRCH, 6, 4
turnobject 3, DIR_EAST turnobject LOCALID_RIVAL, DIR_EAST
setobjectxy 3, 5, 5 setobjectxy LOCALID_RIVAL, 5, 5
end end
LittlerootTown_ProfessorBirchsLab_OnFrame: @ 81F9DB9 LittlerootTown_ProfessorBirchsLab_OnFrame: @ 81F9DB9
@@ -173,7 +180,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_UpgradeToNationalDex:: @ 81F9E80
delay 30 delay 30
msgbox LittlerootTown_ProfessorBirchsLab_Text_OtherRegionsUpgradeToNational, MSGBOX_DEFAULT msgbox LittlerootTown_ProfessorBirchsLab_Text_OtherRegionsUpgradeToNational, MSGBOX_DEFAULT
closemessage closemessage
applymovement 2, LittlerootTown_ProfessorBirchsLab_Movement_BirchRetrievePokedexes applymovement LOCALID_BIRCH, LittlerootTown_ProfessorBirchsLab_Movement_BirchRetrievePokedexes
waitmovement 0 waitmovement 0
delay 20 delay 20
playse SE_TK_KASYA playse SE_TK_KASYA
@@ -184,7 +191,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_UpgradeToNationalDex:: @ 81F9E80
delay 10 delay 10
playse SE_TK_KASYA playse SE_TK_KASYA
delay 20 delay 20
applymovement 3, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFastestRight
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
checkplayergender checkplayergender
@@ -195,9 +202,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_UpgradeToNationalDex:: @ 81F9E80
playse SE_PC_ON playse SE_PC_ON
waitse waitse
delay 20 delay 20
applymovement 2, LittlerootTown_ProfessorBirchsLab_Movement_BirchReturnPokedex applymovement LOCALID_BIRCH, LittlerootTown_ProfessorBirchsLab_Movement_BirchReturnPokedex
waitmovement 0 waitmovement 0
applymovement 3, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFastestUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
msgbox LittlerootTown_ProfessorBirchsLab_Text_OkayAllDone, MSGBOX_DEFAULT msgbox LittlerootTown_ProfessorBirchsLab_Text_OkayAllDone, MSGBOX_DEFAULT
@@ -303,7 +310,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_Cyndaquil:: @ 81F9FBB
release release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6 compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement 2, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
showmonpic SPECIES_CYNDAQUIL, 10, 3 showmonpic SPECIES_CYNDAQUIL, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeCyndaquil, MSGBOX_YESNO msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeCyndaquil, MSGBOX_YESNO
@@ -316,7 +323,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_Totodile:: @ 81F9FEF
release release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6 compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement 2, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
showmonpic SPECIES_TOTODILE, 10, 3 showmonpic SPECIES_TOTODILE, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeTotodile, MSGBOX_YESNO msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeTotodile, MSGBOX_YESNO
@@ -329,7 +336,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_Chikorita:: @ 81FA023
release release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6 compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement 2, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
showmonpic SPECIES_CHIKORITA, 10, 3 showmonpic SPECIES_CHIKORITA, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeChikorita, MSGBOX_YESNO msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeChikorita, MSGBOX_YESNO
@@ -363,7 +370,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_GiveCyndaquil:: @ 81FA06C
LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToParty:: @ 81FA0A1 LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToParty:: @ 81FA0A1
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 4 removeobject LOCALID_BALL_CYNDAQUIL
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil
@@ -374,7 +381,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToParty:: @ 81FA0A1
LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToPC:: @ 81FA0CC LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToPC:: @ 81FA0CC
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 4 removeobject LOCALID_BALL_CYNDAQUIL
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_CyndaquilTransferredToPC goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_CyndaquilTransferredToPC
@@ -408,7 +415,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_GiveTotodile:: @ 81FA10D
LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToParty:: @ 81FA142 LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToParty:: @ 81FA142
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 5 removeobject LOCALID_BALL_TOTODILE
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile
@@ -419,7 +426,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToParty:: @ 81FA142
LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToPC:: @ 81FA16D LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToPC:: @ 81FA16D
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 5 removeobject LOCALID_BALL_TOTODILE
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_TotodileTransferredToPC goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_TotodileTransferredToPC
@@ -453,7 +460,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_GiveChikorita:: @ 81FA1AE
LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToParty:: @ 81FA1E3 LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToParty:: @ 81FA1E3
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 6 removeobject LOCALID_BALL_CHIKORITA
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita
@@ -464,7 +471,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToParty:: @ 81FA1E3
LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToPC:: @ 81FA20E LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToPC:: @ 81FA20E
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject 6 removeobject LOCALID_BALL_CHIKORITA
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, NO compare VAR_RESULT, NO
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ChikoritaTransferredToPC goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_ChikoritaTransferredToPC
@@ -544,7 +551,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_GivePokedex:: @ 81FA2F8
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivePokedex call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivePokedex
msgbox LittlerootTown_ProfessorBirchsLab_Text_ExplainPokedex, MSGBOX_DEFAULT msgbox LittlerootTown_ProfessorBirchsLab_Text_ExplainPokedex, MSGBOX_DEFAULT
closemessage closemessage
applymovement 3, LittlerootTown_ProfessorBirchsLab_Movement_RivalApproachPlayer applymovement LOCALID_RIVAL, LittlerootTown_ProfessorBirchsLab_Movement_RivalApproachPlayer
waitmovement 0 waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
+20 -12
View File
@@ -1,3 +1,11 @@
.set LOCALID_GROUDON, 1
.set LOCALID_GRUNT_1, 2
.set LOCALID_GRUNT_2, 3
.set LOCALID_GRUNT_3, 4
.set LOCALID_TABITHA, 5
.set LOCALID_MAXIE, 6
.set LOCALID_GROUDON_SLEEPING, 7
MagmaHideout_4F_MapScripts:: @ 823A55F MagmaHideout_4F_MapScripts:: @ 823A55F
.byte 0 .byte 0
@@ -18,11 +26,11 @@ MagmaHideout_4F_EventScript_Maxie:: @ 823A560
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
delay 150 delay 150
removeobject 7 @ sleeping Groudon removeobject LOCALID_GROUDON_SLEEPING
addobject 1 @ awakened Groudon addobject LOCALID_GROUDON
waitstate waitstate
delay 60 delay 60
applymovement 1, MagmaHideout_4F_Movement_GroudonApproach applymovement LOCALID_GROUDON, MagmaHideout_4F_Movement_GroudonApproach
waitmovement 0 waitmovement 0
special FadeOutOrbEffect special FadeOutOrbEffect
waitstate waitstate
@@ -32,9 +40,9 @@ MagmaHideout_4F_EventScript_Maxie:: @ 823A560
setvar VAR_0x8007, 5 @ shake delay setvar VAR_0x8007, 5 @ shake delay
special ShakeCamera special ShakeCamera
waitstate waitstate
applymovement 1, MagmaHideout_4F_Movement_GroudonExit applymovement LOCALID_GROUDON, MagmaHideout_4F_Movement_GroudonExit
waitmovement 0 waitmovement 0
removeobject 1 removeobject LOCALID_GROUDON
delay 4 delay 4
setvar VAR_0x8004, 2 @ vertical pan setvar VAR_0x8004, 2 @ vertical pan
setvar VAR_0x8005, 2 @ horizontal pan setvar VAR_0x8005, 2 @ horizontal pan
@@ -43,14 +51,14 @@ MagmaHideout_4F_EventScript_Maxie:: @ 823A560
special ShakeCamera special ShakeCamera
waitstate waitstate
delay 30 delay 30
applymovement 6, MagmaHideout_4F_Movement_MaxieLookAround applymovement LOCALID_MAXIE, MagmaHideout_4F_Movement_MaxieLookAround
waitmovement 0 waitmovement 0
msgbox MagmaHideout_4F_Text_MaxieGroudonWhatsWrong, MSGBOX_DEFAULT msgbox MagmaHideout_4F_Text_MaxieGroudonWhatsWrong, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
delay 30 delay 30
applymovement 6, Common_Movement_FacePlayer applymovement LOCALID_MAXIE, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox MagmaHideout_4F_Text_MaxieOhItWasYou, MSGBOX_DEFAULT msgbox MagmaHideout_4F_Text_MaxieOhItWasYou, MSGBOX_DEFAULT
closemessage closemessage
@@ -63,11 +71,11 @@ MagmaHideout_4F_EventScript_Maxie:: @ 823A560
setflag FLAG_GROUDON_AWAKENED_MAGMA_HIDEOUT setflag FLAG_GROUDON_AWAKENED_MAGMA_HIDEOUT
setvar VAR_SLATEPORT_HARBOR_STATE, 1 setvar VAR_SLATEPORT_HARBOR_STATE, 1
fadescreen FADE_TO_BLACK fadescreen FADE_TO_BLACK
removeobject 6 removeobject LOCALID_MAXIE
removeobject 2 removeobject LOCALID_GRUNT_1
removeobject 3 removeobject LOCALID_GRUNT_2
removeobject 4 removeobject LOCALID_GRUNT_3
removeobject 5 removeobject LOCALID_TABITHA
setflag FLAG_HIDE_MAGMA_HIDEOUT_GRUNTS setflag FLAG_HIDE_MAGMA_HIDEOUT_GRUNTS
fadescreen FADE_FROM_BLACK fadescreen FADE_FROM_BLACK
releaseall releaseall
+5 -3
View File
@@ -1,3 +1,5 @@
.set LOCALID_KYOGRE, 1
MarineCave_End_MapScripts:: @ 823AFDF MarineCave_End_MapScripts:: @ 823AFDF
map_script MAP_SCRIPT_ON_RESUME, MarineCave_End_OnResume map_script MAP_SCRIPT_ON_RESUME, MarineCave_End_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, MarineCave_End_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MarineCave_End_OnTransition
@@ -11,7 +13,7 @@ MarineCave_End_EventScript_TryRemoveKyogre:: @ 823AFF4
specialvar VAR_RESULT, GetBattleOutcome specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_CAUGHT compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn goto_if_ne Common_EventScript_NopReturn
removeobject 1 removeobject LOCALID_KYOGRE
return return
MarineCave_End_OnTransition: @ 823B008 MarineCave_End_OnTransition: @ 823B008
@@ -27,13 +29,13 @@ MarineCave_End_EventScript_Kyogre:: @ 823B01B
lockall lockall
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
waitmovement 0 waitmovement 0
applymovement 1, MarineCave_End_Movement_KyogreApproach applymovement LOCALID_KYOGRE, MarineCave_End_Movement_KyogreApproach
waitmovement 0 waitmovement 0
waitse waitse
playmoncry SPECIES_KYOGRE, 2 playmoncry SPECIES_KYOGRE, 2
delay 40 delay 40
waitmoncry waitmoncry
setvar VAR_LAST_TALKED, 1 setvar VAR_LAST_TALKED, LOCALID_KYOGRE
setwildbattle SPECIES_KYOGRE, 70, ITEM_NONE setwildbattle SPECIES_KYOGRE, 70, ITEM_NONE
setflag FLAG_SYS_CTRL_OBJ_DELETE setflag FLAG_SYS_CTRL_OBJ_DELETE
special BattleSetup_StartLegendaryBattle special BattleSetup_StartLegendaryBattle
+36 -32
View File
@@ -1,3 +1,7 @@
.set LOCALID_WALLY, 6
.set LOCALID_WALLYS_UNCLE, 7
.set LOCALID_SCOTT, 11
MauvilleCity_MapScripts:: @ 81DF385 MauvilleCity_MapScripts:: @ 81DF385
map_script MAP_SCRIPT_ON_TRANSITION, MauvilleCity_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MauvilleCity_OnTransition
.byte 0 .byte 0
@@ -70,7 +74,7 @@ MauvilleCity_EventScript_WallysUncle:: @ 81DF41D
goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_UncleAskPlayerToBattleWally goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_UncleAskPlayerToBattleWally
msgbox MauvilleCity_Text_UncleHesTooPeppy, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleHesTooPeppy, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, Common_Movement_FaceOriginalDirection applymovement LOCALID_WALLYS_UNCLE, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -78,7 +82,7 @@ MauvilleCity_EventScript_WallysUncle:: @ 81DF41D
MauvilleCity_EventScript_UncleAskPlayerToBattleWally:: @ 81DF43D MauvilleCity_EventScript_UncleAskPlayerToBattleWally:: @ 81DF43D
msgbox MauvilleCity_Text_UncleCanYouBattleWally, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleCanYouBattleWally, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, Common_Movement_FaceOriginalDirection applymovement LOCALID_WALLYS_UNCLE, Common_Movement_FaceOriginalDirection
waitmovement 0 waitmovement 0
release release
end end
@@ -86,17 +90,17 @@ MauvilleCity_EventScript_UncleAskPlayerToBattleWally:: @ 81DF43D
MauvilleCity_EventScript_Wally:: @ 81DF452 MauvilleCity_EventScript_Wally:: @ 81DF452
lockall lockall
goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_WallyRequestBattleAgain goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_WallyRequestBattleAgain
applymovement 6, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLY, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_WallyWantToChallengeGym, MSGBOX_DEFAULT msgbox MauvilleCity_Text_WallyWantToChallengeGym, MSGBOX_DEFAULT
msgbox MauvilleCity_Text_UncleYourePushingIt, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleYourePushingIt, MSGBOX_DEFAULT
msgbox MauvilleCity_Text_WallyWeCanBeatAnyone, MSGBOX_DEFAULT msgbox MauvilleCity_Text_WallyWeCanBeatAnyone, MSGBOX_DEFAULT
applymovement 6, Common_Movement_FacePlayer applymovement LOCALID_WALLY, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 6, Common_Movement_ExclamationMark applymovement LOCALID_WALLY, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 6, Common_Movement_Delay48 applymovement LOCALID_WALLY, Common_Movement_Delay48
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_WallyWillYouBattleMe, MSGBOX_YESNO msgbox MauvilleCity_Text_WallyWillYouBattleMe, MSGBOX_YESNO
goto MauvilleCity_EventScript_BattleWallyPrompt goto MauvilleCity_EventScript_BattleWallyPrompt
@@ -115,46 +119,46 @@ MauvilleCity_EventScript_BattleWallyPrompt:: @ 81DF4AD
MauvilleCity_EventScript_WallyAndUncleExitNorth:: @ 81DF4E0 MauvilleCity_EventScript_WallyAndUncleExitNorth:: @ 81DF4E0
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitNorth1 applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitNorth1
applymovement 6, MauvilleCity_Movement_WallyExitNorth1 applymovement LOCALID_WALLY, MauvilleCity_Movement_WallyExitNorth1
applymovement 7, MauvilleCity_Movement_WallysUncleExitNorth1 applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleExitNorth1
waitmovement 0 waitmovement 0
applymovement 6, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLY, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
delay 30 delay 30
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerFaceUncleNorth applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerFaceUncleNorth
applymovement 7, MauvilleCity_Movement_WallysUncleApproachPlayerNorth applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleApproachPlayerNorth
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_UncleVisitUsSometime, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleVisitUsSometime, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitNorth2 applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitNorth2
applymovement 7, MauvilleCity_Movement_WallysUncleExitNorth2 applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleExitNorth2
applymovement 6, MauvilleCity_Movement_WallyExitNorth2 applymovement LOCALID_WALLY, MauvilleCity_Movement_WallyExitNorth2
waitmovement 0 waitmovement 0
goto MauvilleCity_EventScript_DefeatedWally goto MauvilleCity_EventScript_DefeatedWally
end end
MauvilleCity_EventScript_WallyAndUncleExitEast:: @ 81DF53D MauvilleCity_EventScript_WallyAndUncleExitEast:: @ 81DF53D
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitEast1 applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitEast1
applymovement 6, MauvilleCity_Movement_WallyExitEast1 applymovement LOCALID_WALLY, MauvilleCity_Movement_WallyExitEast1
applymovement 7, MauvilleCity_Movement_WallysUncleExitEast1 applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleExitEast1
waitmovement 0 waitmovement 0
applymovement 6, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLY, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
delay 30 delay 30
applymovement 7, MauvilleCity_Movement_WallysUncleApproachPlayerEast applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleApproachPlayerEast
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_UncleVisitUsSometime, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleVisitUsSometime, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitEast2 applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchWallyExitEast2
applymovement 7, MauvilleCity_Movement_WallysUncleExitEast2 applymovement LOCALID_WALLYS_UNCLE, MauvilleCity_Movement_WallysUncleExitEast2
applymovement 6, MauvilleCity_Movement_WallyExitEast2 applymovement LOCALID_WALLY, MauvilleCity_Movement_WallyExitEast2
waitmovement 0 waitmovement 0
goto MauvilleCity_EventScript_DefeatedWally goto MauvilleCity_EventScript_DefeatedWally
end end
MauvilleCity_EventScript_DefeatedWally:: @ 81DF593 MauvilleCity_EventScript_DefeatedWally:: @ 81DF593
removeobject 6 removeobject LOCALID_WALLY
removeobject 7 removeobject LOCALID_WALLYS_UNCLE
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLY clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLY
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLYS_UNCLE clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLYS_UNCLE
setflag FLAG_DEFEATED_WALLY_MAUVILLE setflag FLAG_DEFEATED_WALLY_MAUVILLE
@@ -173,45 +177,45 @@ MauvilleCity_EventScript_DefeatedWally:: @ 81DF593
call_if_eq MauvilleCity_EventScript_ScottExitNorth call_if_eq MauvilleCity_EventScript_ScottExitNorth
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq MauvilleCity_EventScript_ScottExitEast call_if_eq MauvilleCity_EventScript_ScottExitEast
removeobject 11 removeobject LOCALID_SCOTT
releaseall releaseall
end end
MauvilleCity_EventScript_ScottApproachPlayerNorth:: @ 81DF5F3 MauvilleCity_EventScript_ScottApproachPlayerNorth:: @ 81DF5F3
addobject 11 addobject LOCALID_SCOTT
applymovement 11, MauvilleCity_Movement_ScottApproachPlayerNorth applymovement LOCALID_SCOTT, MauvilleCity_Movement_ScottApproachPlayerNorth
waitmovement 0 waitmovement 0
return return
MauvilleCity_EventScript_ScottApproachPlayerEast:: @ 81DF601 MauvilleCity_EventScript_ScottApproachPlayerEast:: @ 81DF601
setobjectxyperm 11, 12, 13 setobjectxyperm LOCALID_SCOTT, 12, 13
addobject 11 addobject LOCALID_SCOTT
applymovement 11, MauvilleCity_Movement_ScottApproachPlayerEast applymovement LOCALID_SCOTT, MauvilleCity_Movement_ScottApproachPlayerEast
waitmovement 0 waitmovement 0
return return
MauvilleCity_EventScript_ScottExitNorth:: @ 81DF616 MauvilleCity_EventScript_ScottExitNorth:: @ 81DF616
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchScottExitNorth applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchScottExitNorth
applymovement 11, MauvilleCity_Movement_ScottExitNorth applymovement LOCALID_SCOTT, MauvilleCity_Movement_ScottExitNorth
waitmovement 0 waitmovement 0
return return
MauvilleCity_EventScript_ScottExitEast:: @ 81DF628 MauvilleCity_EventScript_ScottExitEast:: @ 81DF628
applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchScottExitEast applymovement OBJ_EVENT_ID_PLAYER, MauvilleCity_Movement_PlayerWatchScottExitEast
applymovement 11, MauvilleCity_Movement_ScottExitEast applymovement LOCALID_SCOTT, MauvilleCity_Movement_ScottExitEast
waitmovement 0 waitmovement 0
return return
MauvilleCity_EventScript_BattleWally:: @ 81DF63A MauvilleCity_EventScript_BattleWally:: @ 81DF63A
msgbox MauvilleCity_Text_WallyHereICome, MSGBOX_DEFAULT msgbox MauvilleCity_Text_WallyHereICome, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_WALLY_MAUVILLE, MauvilleCity_Text_WallyDefeat trainerbattle_no_intro TRAINER_WALLY_MAUVILLE, MauvilleCity_Text_WallyDefeat
applymovement 6, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLY, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_WallyIllGoBackToVerdanturf, MSGBOX_DEFAULT msgbox MauvilleCity_Text_WallyIllGoBackToVerdanturf, MSGBOX_DEFAULT
applymovement 6, Common_Movement_FacePlayer applymovement LOCALID_WALLY, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_ThankYouNotEnoughToBattle, MSGBOX_DEFAULT msgbox MauvilleCity_Text_ThankYouNotEnoughToBattle, MSGBOX_DEFAULT
applymovement 6, Common_Movement_WalkInPlaceFastestRight applymovement LOCALID_WALLY, Common_Movement_WalkInPlaceFastestRight
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_UncleNoNeedToBeDown, MSGBOX_DEFAULT msgbox MauvilleCity_Text_UncleNoNeedToBeDown, MSGBOX_DEFAULT
return return
@@ -223,7 +227,7 @@ MauvilleCity_EventScript_DeclineWallyBattle:: @ 81DF683
end end
MauvilleCity_EventScript_WallyRequestBattleAgain:: @ 81DF690 MauvilleCity_EventScript_WallyRequestBattleAgain:: @ 81DF690
applymovement 6, Common_Movement_FacePlayer applymovement LOCALID_WALLY, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox MauvilleCity_Text_WallyPleaseBattleMe, MSGBOX_YESNO msgbox MauvilleCity_Text_WallyPleaseBattleMe, MSGBOX_YESNO
goto MauvilleCity_EventScript_BattleWallyPrompt goto MauvilleCity_EventScript_BattleWallyPrompt
+2 -2
View File
@@ -116,7 +116,7 @@ MauvilleCity_Gym_EventScript_WattsonDefeated:: @ 820DF2B
MauvilleCity_Gym_EventScript_GiveShockWave2:: @ 820DF8D MauvilleCity_Gym_EventScript_GiveShockWave2:: @ 820DF8D
giveitem ITEM_TM34 giveitem ITEM_TM34
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM34 setflag FLAG_RECEIVED_TM34
@@ -125,7 +125,7 @@ MauvilleCity_Gym_EventScript_GiveShockWave2:: @ 820DF8D
MauvilleCity_Gym_EventScript_GiveShockWave:: @ 820DFB1 MauvilleCity_Gym_EventScript_GiveShockWave:: @ 820DFB1
giveitem ITEM_TM34 giveitem ITEM_TM34
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_BagIsFull goto_if_eq Common_EventScript_BagIsFull
msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM34 setflag FLAG_RECEIVED_TM34
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8210E5B MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8210E5B
map_script MAP_SCRIPT_ON_TRANSITION, MauvilleCity_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MauvilleCity_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -13,9 +15,8 @@ MauvilleCity_PokemonCenter_1F_EventScript_SetMauvilleOldManGfx:: @ 8210E74
special ScrSpecial_SetMauvilleOldManObjEventGfx special ScrSpecial_SetMauvilleOldManObjEventGfx
end end
@ VAR_0x800B is the Nurse's object event id
MauvilleCity_PokemonCenter_1F_EventScript_Nurse:: @ 8210E78 MauvilleCity_PokemonCenter_1F_EventScript_Nurse:: @ 8210E78
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
+37 -31
View File
@@ -1,3 +1,9 @@
.set LOCALID_MAGMA_GRUNT_1, 5
.set LOCALID_MAGMA_GRUNT_2, 6
.set LOCALID_ARCHIE, 7
.set LOCALID_AQUA_GRUNT_1, 8
.set LOCALID_AQUA_GRUNT_2, 9
MeteorFalls_1F_1R_MapScripts:: @ 822BD2A MeteorFalls_1F_1R_MapScripts:: @ 822BD2A
map_script MAP_SCRIPT_ON_LOAD, MeteorFalls_1F_1R_OnLoad map_script MAP_SCRIPT_ON_LOAD, MeteorFalls_1F_1R_OnLoad
.byte 0 .byte 0
@@ -19,70 +25,70 @@ MeteorFalls_1F_1R_EventScript_MagmaStealsMeteoriteScene:: @ 822BD5F
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown
waitmovement 0 waitmovement 0
delay 30 delay 30
applymovement 5, Common_Movement_WalkInPlaceDown applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceDown
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_WithThisMeteorite, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_WithThisMeteorite, MSGBOX_DEFAULT
closemessage closemessage
applymovement 5, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestUp
applymovement 6, Common_Movement_WalkInPlaceFastestUp applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestUp
waitmovement 0 waitmovement 0
playse SE_PIN playse SE_PIN
applymovement 5, Common_Movement_ExclamationMark applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 5, Common_Movement_Delay48 applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_Delay48
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_DontExpectMercyFromMagma, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_DontExpectMercyFromMagma, MSGBOX_DEFAULT
closemessage closemessage
applymovement 5, MeteorFalls_1F_1R_Movement_MagmaGruntApproachPlayer applymovement LOCALID_MAGMA_GRUNT_1, MeteorFalls_1F_1R_Movement_MagmaGruntApproachPlayer
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_HoldItRightThereMagma, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_HoldItRightThereMagma, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement 5, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestLeft
applymovement 6, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
addobject 7 addobject LOCALID_ARCHIE
addobject 8 addobject LOCALID_AQUA_GRUNT_1
addobject 9 addobject LOCALID_AQUA_GRUNT_2
playbgm MUS_AQA_0, 0 playbgm MUS_AQA_0, 0
applymovement 7, MeteorFalls_1F_1R_Movement_ArchieArrive applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieArrive
applymovement 8, MeteorFalls_1F_1R_Movement_AquaGrunt1Arrive applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1Arrive
applymovement 9, MeteorFalls_1F_1R_Movement_AquaGrunt2Arrive applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2Arrive
waitmovement 0 waitmovement 0
applymovement 5, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestLeft
applymovement 6, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_BeSeeingYouTeamAqua, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_BeSeeingYouTeamAqua, MSGBOX_DEFAULT
closemessage closemessage
applymovement OBJ_EVENT_ID_PLAYER, MeteorFalls_1F_1R_Movement_PushPlayerOutOfWay applymovement OBJ_EVENT_ID_PLAYER, MeteorFalls_1F_1R_Movement_PushPlayerOutOfWay
applymovement 5, MeteorFalls_1F_1R_Movement_MagmaGrunt1Exit applymovement LOCALID_MAGMA_GRUNT_1, MeteorFalls_1F_1R_Movement_MagmaGrunt1Exit
applymovement 6, MeteorFalls_1F_1R_Movement_MagmaGrunt2Exit applymovement LOCALID_MAGMA_GRUNT_2, MeteorFalls_1F_1R_Movement_MagmaGrunt2Exit
waitmovement 0 waitmovement 0
removeobject 5 removeobject LOCALID_MAGMA_GRUNT_1
removeobject 6 removeobject LOCALID_MAGMA_GRUNT_2
applymovement 7, MeteorFalls_1F_1R_Movement_ArchieApproachPlayer applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieApproachPlayer
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_ArchieSeenYouBefore, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_ArchieSeenYouBefore, MSGBOX_DEFAULT
closemessage closemessage
applymovement 8, MeteorFalls_1F_1R_Movement_AquaGrunt1ApproachArchie applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1ApproachArchie
applymovement 9, MeteorFalls_1F_1R_Movement_AquaGrunt2ApproachArchie applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2ApproachArchie
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_BossWeShouldChaseMagma, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_BossWeShouldChaseMagma, MSGBOX_DEFAULT
applymovement 7, Common_Movement_WalkInPlaceFastestDown applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestDown
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_ArchieYesNoTellingWhatMagmaWillDo, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_ArchieYesNoTellingWhatMagmaWillDo, MSGBOX_DEFAULT
applymovement 7, Common_Movement_WalkInPlaceFastestLeft applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0 waitmovement 0
msgbox MeteorFalls_1F_1R_Text_ArchieFarewell, MSGBOX_DEFAULT msgbox MeteorFalls_1F_1R_Text_ArchieFarewell, MSGBOX_DEFAULT
closemessage closemessage
applymovement 7, MeteorFalls_1F_1R_Movement_ArchieExit applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieExit
applymovement 8, MeteorFalls_1F_1R_Movement_AquaGrunt1Exit applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1Exit
applymovement 9, MeteorFalls_1F_1R_Movement_AquaGrunt2Exit applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2Exit
waitmovement 0 waitmovement 0
fadedefaultbgm fadedefaultbgm
removeobject 7 removeobject LOCALID_ARCHIE
removeobject 8 removeobject LOCALID_AQUA_GRUNT_1
removeobject 9 removeobject LOCALID_AQUA_GRUNT_2
setflag FLAG_HIDE_ROUTE_112_TEAM_MAGMA setflag FLAG_HIDE_ROUTE_112_TEAM_MAGMA
setflag FLAG_MET_ARCHIE_METEOR_FALLS setflag FLAG_MET_ARCHIE_METEOR_FALLS
setflag FLAG_HIDE_FALLARBOR_TOWN_BATTLE_TENT_SCOTT setflag FLAG_HIDE_FALLARBOR_TOWN_BATTLE_TENT_SCOTT
@@ -1,3 +1,5 @@
.set LOCALID_STEVEN, 1
MeteorFalls_StevensCave_MapScripts:: @ 823B181 MeteorFalls_StevensCave_MapScripts:: @ 823B181
.byte 0 .byte 0
@@ -6,11 +8,11 @@ MeteorFalls_StevensCave_EventScript_Steven:: @ 823B182
goto_if_set FLAG_DEFEATED_METEOR_FALLS_STEVEN, MeteorFalls_StevensCave_EventScript_Defeated goto_if_set FLAG_DEFEATED_METEOR_FALLS_STEVEN, MeteorFalls_StevensCave_EventScript_Defeated
waitse waitse
playse SE_PIN playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark applymovement LOCALID_STEVEN, Common_Movement_ExclamationMark
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_Delay48 applymovement LOCALID_STEVEN, Common_Movement_Delay48
waitmovement 0 waitmovement 0
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_STEVEN, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox MeteorFalls_StevensCave_Text_ShouldKnowHowGoodIAmExpectWorst, MSGBOX_DEFAULT msgbox MeteorFalls_StevensCave_Text_ShouldKnowHowGoodIAmExpectWorst, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_STEVEN, MeteorFalls_StevensCave_Text_StevenDefeat trainerbattle_no_intro TRAINER_STEVEN, MeteorFalls_StevensCave_Text_StevenDefeat
@@ -20,7 +22,7 @@ MeteorFalls_StevensCave_EventScript_Steven:: @ 823B182
end end
MeteorFalls_StevensCave_EventScript_Defeated:: @ 823B1CD MeteorFalls_StevensCave_EventScript_Defeated:: @ 823B1CD
applymovement 1, Common_Movement_FacePlayer applymovement LOCALID_STEVEN, Common_Movement_FacePlayer
waitmovement 0 waitmovement 0
msgbox MeteorFalls_StevensCave_Text_MyPredictionCameTrue, MSGBOX_DEFAULT msgbox MeteorFalls_StevensCave_Text_MyPredictionCameTrue, MSGBOX_DEFAULT
release release
+5 -2
View File
@@ -1,3 +1,6 @@
.set LOCALID_ROOT_FOSSIL, 1
.set LOCALID_CLAW_FOSSIL, 2
MirageTower_4F_MapScripts:: @ 823AD47 MirageTower_4F_MapScripts:: @ 823AD47
.byte 0 .byte 0
@@ -11,7 +14,7 @@ MirageTower_4F_EventScript_RootFossil:: @ 823AD48
closemessage closemessage
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
removeobject 1 removeobject LOCALID_ROOT_FOSSIL
delay 30 delay 30
setflag FLAG_CHOSE_ROOT_FOSSIL setflag FLAG_CHOSE_ROOT_FOSSIL
goto MirageTower_4F_EventScript_CollapseMirageTower goto MirageTower_4F_EventScript_CollapseMirageTower
@@ -32,7 +35,7 @@ MirageTower_4F_EventScript_ClawFossil:: @ 823AD89
closemessage closemessage
setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL setflag FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL
setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL setflag FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL
removeobject 2 removeobject LOCALID_CLAW_FOSSIL
delay 30 delay 30
setflag FLAG_CHOSE_CLAW_FOSSIL setflag FLAG_CHOSE_CLAW_FOSSIL
goto MirageTower_4F_EventScript_CollapseMirageTower goto MirageTower_4F_EventScript_CollapseMirageTower
+25 -18
View File
@@ -1,3 +1,10 @@
.set LOCALID_GRUNT_1, 10
.set LOCALID_GRUNT_2, 11
.set LOCALID_GRUNT_3, 12
.set LOCALID_GRUNT_4, 13
.set LOCALID_MAXIE, 14
.set LOCALID_SCOTT, 16
MossdeepCity_MapScripts:: @ 81E4A96 MossdeepCity_MapScripts:: @ 81E4A96
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_OnTransition
.byte 0 .byte 0
@@ -75,24 +82,24 @@ MossdeepCity_EventScript_VisitedMossdeep:: @ 81E4B38
MossdeepCity_EventScript_TeamMagmaEnterSpaceCenter:: @ 81E4B41 MossdeepCity_EventScript_TeamMagmaEnterSpaceCenter:: @ 81E4B41
lockall lockall
applymovement 14, MossdeepCity_Movement_MaxieGestureToSpaceCenter applymovement LOCALID_MAXIE, MossdeepCity_Movement_MaxieGestureToSpaceCenter
waitmovement 0 waitmovement 0
applymovement 10, MossdeepCity_Movement_GruntFaceSpaceCenter applymovement LOCALID_GRUNT_1, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement 11, MossdeepCity_Movement_GruntFaceSpaceCenter applymovement LOCALID_GRUNT_2, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement 12, MossdeepCity_Movement_GruntFaceSpaceCenter applymovement LOCALID_GRUNT_3, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement 13, MossdeepCity_Movement_GruntFaceSpaceCenter applymovement LOCALID_GRUNT_4, MossdeepCity_Movement_GruntFaceSpaceCenter
waitmovement 0 waitmovement 0
applymovement 14, MossdeepCity_Movement_MaxieEnterSpaceCenter applymovement LOCALID_MAXIE, MossdeepCity_Movement_MaxieEnterSpaceCenter
applymovement 10, MossdeepCity_Movement_Grunt1EnterSpaceCenter applymovement LOCALID_GRUNT_1, MossdeepCity_Movement_Grunt1EnterSpaceCenter
applymovement 11, MossdeepCity_Movement_Grunt2EnterSpaceCenter applymovement LOCALID_GRUNT_2, MossdeepCity_Movement_Grunt2EnterSpaceCenter
applymovement 12, MossdeepCity_Movement_Grunt3EnterSpaceCenter applymovement LOCALID_GRUNT_3, MossdeepCity_Movement_Grunt3EnterSpaceCenter
applymovement 13, MossdeepCity_Movement_Grunt4EnterSpaceCenter applymovement LOCALID_GRUNT_4, MossdeepCity_Movement_Grunt4EnterSpaceCenter
waitmovement 0 waitmovement 0
removeobject 14 removeobject LOCALID_MAXIE
removeobject 10 removeobject LOCALID_GRUNT_1
removeobject 11 removeobject LOCALID_GRUNT_2
removeobject 12 removeobject LOCALID_GRUNT_3
removeobject 13 removeobject LOCALID_GRUNT_4
delay 30 delay 30
setvar VAR_MOSSDEEP_CITY_STATE, 2 setvar VAR_MOSSDEEP_CITY_STATE, 2
setflag FLAG_HIDE_MOSSDEEP_CITY_TEAM_MAGMA setflag FLAG_HIDE_MOSSDEEP_CITY_TEAM_MAGMA
@@ -260,19 +267,19 @@ MossdeepCity_EventScript_Scott:: @ 81E4C85
compare VAR_FACING, DIR_EAST compare VAR_FACING, DIR_EAST
call_if_eq MossdeepCity_EventScript_ScottExitEast call_if_eq MossdeepCity_EventScript_ScottExitEast
addvar VAR_SCOTT_STATE, 1 addvar VAR_SCOTT_STATE, 1
removeobject 16 removeobject LOCALID_SCOTT
release release
end end
MossdeepCity_EventScript_ScottExitNorth:: @ 81E4CB0 MossdeepCity_EventScript_ScottExitNorth:: @ 81E4CB0
applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit
applymovement 16, MossdeepCity_Movement_ScottExitNorth applymovement LOCALID_SCOTT, MossdeepCity_Movement_ScottExitNorth
waitmovement 0 waitmovement 0
return return
MossdeepCity_EventScript_ScottExitEast:: @ 81E4CC2 MossdeepCity_EventScript_ScottExitEast:: @ 81E4CC2
applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit
applymovement 16, MossdeepCity_Movement_ScottExitEast applymovement LOCALID_SCOTT, MossdeepCity_Movement_ScottExitEast
waitmovement 0 waitmovement 0
return return
+2 -2
View File
@@ -92,7 +92,7 @@ MossdeepCity_Gym_EventScript_TateAndLizaDefeated:: @ 82208D1
MossdeepCity_Gym_EventScript_GiveCalmMind2:: @ 8220937 MossdeepCity_Gym_EventScript_GiveCalmMind2:: @ 8220937
giveitem ITEM_TM04 giveitem ITEM_TM04
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM04 setflag FLAG_RECEIVED_TM04
@@ -101,7 +101,7 @@ MossdeepCity_Gym_EventScript_GiveCalmMind2:: @ 8220937
MossdeepCity_Gym_EventScript_GiveCalmMind:: @ 822095B MossdeepCity_Gym_EventScript_GiveCalmMind:: @ 822095B
giveitem ITEM_TM04 giveitem ITEM_TM04
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_BagIsFull goto_if_eq Common_EventScript_BagIsFull
msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM04 setflag FLAG_RECEIVED_TM04
+5 -3
View File
@@ -1,3 +1,5 @@
.set LOCALID_WINGULL, 3
MossdeepCity_House2_MapScripts:: @ 82220DE MossdeepCity_House2_MapScripts:: @ 82220DE
.byte 0 .byte 0
@@ -23,17 +25,17 @@ MossdeepCity_House2_EventScript_Wingull:: @ 82220F1
call_if_eq MossdeepCity_House2_EventScript_WingullExitNorth call_if_eq MossdeepCity_House2_EventScript_WingullExitNorth
compare VAR_FACING, DIR_WEST compare VAR_FACING, DIR_WEST
call_if_eq MossdeepCity_House2_EventScript_WingullExitWest call_if_eq MossdeepCity_House2_EventScript_WingullExitWest
removeobject 3 removeobject LOCALID_WINGULL
release release
end end
MossdeepCity_House2_EventScript_WingullExitNorth:: @ 8222124 MossdeepCity_House2_EventScript_WingullExitNorth:: @ 8222124
applymovement 3, MossdeepCity_House2_Movement_WingullExitNorth applymovement LOCALID_WINGULL, MossdeepCity_House2_Movement_WingullExitNorth
waitmovement 0 waitmovement 0
return return
MossdeepCity_House2_EventScript_WingullExitWest:: @ 822212F MossdeepCity_House2_EventScript_WingullExitWest:: @ 822212F
applymovement 3, MossdeepCity_House2_Movement_WingullExitEast applymovement LOCALID_WINGULL, MossdeepCity_House2_Movement_WingullExitEast
waitmovement 0 waitmovement 0
return return
@@ -1,3 +1,5 @@
.set LOCALID_NURSE, 1
MossdeepCity_PokemonCenter_1F_MapScripts:: @ 822223F MossdeepCity_PokemonCenter_1F_MapScripts:: @ 822223F
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_PokemonCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_PokemonCenter_1F_OnTransition
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
@@ -7,9 +9,8 @@ MossdeepCity_PokemonCenter_1F_OnTransition: @ 822224A
setrespawn HEAL_LOCATION_MOSSDEEP_CITY setrespawn HEAL_LOCATION_MOSSDEEP_CITY
end end
@ VAR_0x800B is the Nurse's object event id
MossdeepCity_PokemonCenter_1F_EventScript_Nurse:: @ 822224E MossdeepCity_PokemonCenter_1F_EventScript_Nurse:: @ 822224E
setvar VAR_0x800B, 1 setvar VAR_0x800B, LOCALID_NURSE
call Common_EventScript_PkmnCenterNurse call Common_EventScript_PkmnCenterNurse
waitmessage waitmessage
waitbuttonpress waitbuttonpress
@@ -1,3 +1,10 @@
.set LOCALID_SCIENTIST_1, 1
.set LOCALID_SCIENTIST_2, 2
.set LOCALID_SAILOR, 3
.set LOCALID_OLD_MAN, 4
.set LOCALID_WOMAN, 5
.set LOCALID_STAIR_GRUNT, 9
MossdeepCity_SpaceCenter_1F_MapScripts:: @ 8222F41 MossdeepCity_SpaceCenter_1F_MapScripts:: @ 8222F41
map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_SpaceCenter_1F_OnLoad map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_SpaceCenter_1F_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_SpaceCenter_1F_OnTransition map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_SpaceCenter_1F_OnTransition
@@ -9,15 +16,15 @@ MossdeepCity_SpaceCenter_1F_OnTransition: @ 8222F4C
end end
MossdeepCity_SpaceCenter_1F_EventScript_MoveObjectsForTeamMagma:: @ 8222F58 MossdeepCity_SpaceCenter_1F_EventScript_MoveObjectsForTeamMagma:: @ 8222F58
setobjectxyperm 3, 1, 9 setobjectxyperm LOCALID_SAILOR, 1, 9
setobjectmovementtype 3, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_SAILOR, MOVEMENT_TYPE_FACE_RIGHT
setobjectxyperm 5, 0, 8 setobjectxyperm LOCALID_WOMAN, 0, 8
setobjectmovementtype 5, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_WOMAN, MOVEMENT_TYPE_FACE_RIGHT
setobjectxyperm 4, 1, 6 setobjectxyperm LOCALID_OLD_MAN, 1, 6
setobjectmovementtype 4, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_OLD_MAN, MOVEMENT_TYPE_FACE_RIGHT
setobjectxyperm 1, 3, 4 setobjectxyperm LOCALID_SCIENTIST_1, 3, 4
setobjectmovementtype 1, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_SCIENTIST_1, MOVEMENT_TYPE_FACE_RIGHT
setobjectmovementtype 2, MOVEMENT_TYPE_FACE_RIGHT setobjectmovementtype LOCALID_SCIENTIST_2, MOVEMENT_TYPE_FACE_RIGHT
compare VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 1 compare VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 1
goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardLeft goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardLeft
compare VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 2 compare VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 2
@@ -27,16 +34,16 @@ MossdeepCity_SpaceCenter_1F_EventScript_MoveObjectsForTeamMagma:: @ 8222F58
end end
MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardLeft:: @ 8222FAA MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardLeft:: @ 8222FAA
setobjectxyperm 9, 12, 2 setobjectxyperm LOCALID_STAIR_GRUNT, 12, 2
end end
MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardDown:: @ 8222FB2 MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardDown:: @ 8222FB2
setobjectxyperm 9, 13, 3 setobjectxyperm LOCALID_STAIR_GRUNT, 13, 3
end end
@ Functionally unused. See comment on MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast @ Functionally unused. See comment on MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast
MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardRight:: @ 8222FBA MossdeepCity_SpaceCenter_1F_EventScript_MoveStairGuardRight:: @ 8222FBA
setobjectxyperm 9, 14, 2 setobjectxyperm LOCALID_STAIR_GRUNT, 14, 2
end end
MossdeepCity_SpaceCenter_1F_OnLoad: @ 8222FC2 MossdeepCity_SpaceCenter_1F_OnLoad: @ 8222FC2
@@ -120,7 +127,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_SunStoneMan:: @ 822308E
goto_if_set FLAG_RECEIVED_SUN_STONE_MOSSDEEP, MossdeepCity_SpaceCenter_1F_EventScript_GaveSunStone goto_if_set FLAG_RECEIVED_SUN_STONE_MOSSDEEP, MossdeepCity_SpaceCenter_1F_EventScript_GaveSunStone
msgbox MossdeepCity_SpaceCenter_1F_Text_FoundThisYouCanHaveIt, MSGBOX_DEFAULT msgbox MossdeepCity_SpaceCenter_1F_Text_FoundThisYouCanHaveIt, MSGBOX_DEFAULT
giveitem ITEM_SUN_STONE giveitem ITEM_SUN_STONE
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
msgbox MossdeepCity_SpaceCenter_1F_Text_HoennFamousForMeteorShowers, MSGBOX_DEFAULT msgbox MossdeepCity_SpaceCenter_1F_Text_HoennFamousForMeteorShowers, MSGBOX_DEFAULT
@@ -136,7 +143,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_SunStoneManMagma:: @ 82230DA
goto_if_set FLAG_RECEIVED_SUN_STONE_MOSSDEEP, MossdeepCity_SpaceCenter_1F_EventScript_GaveSunStoneMagma goto_if_set FLAG_RECEIVED_SUN_STONE_MOSSDEEP, MossdeepCity_SpaceCenter_1F_EventScript_GaveSunStoneMagma
msgbox MossdeepCity_SpaceCenter_1F_Text_MagmaCantStealFuelTakeThis, MSGBOX_DEFAULT msgbox MossdeepCity_SpaceCenter_1F_Text_MagmaCantStealFuelTakeThis, MSGBOX_DEFAULT
giveitem ITEM_SUN_STONE giveitem ITEM_SUN_STONE
compare VAR_RESULT, 0 compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
msgbox MossdeepCity_SpaceCenter_1F_Text_CantStrollOnBeachWithMagma, MSGBOX_DEFAULT msgbox MossdeepCity_SpaceCenter_1F_Text_CantStrollOnBeachWithMagma, MSGBOX_DEFAULT
@@ -237,11 +244,11 @@ MossdeepCity_SpaceCenter_1F_EventScript_Grunt2:: @ 822321F
msgbox MossdeepCity_SpaceCenter_1F_Text_Grunt2Intro, MSGBOX_DEFAULT msgbox MossdeepCity_SpaceCenter_1F_Text_Grunt2Intro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_SPACE_CENTER_2, MossdeepCity_SpaceCenter_1F_Text_Grunt2Defeat trainerbattle_no_intro TRAINER_GRUNT_SPACE_CENTER_2, MossdeepCity_SpaceCenter_1F_Text_Grunt2Defeat
setflag FLAG_DEFEATED_GRUNT_SPACE_CENTER_1F setflag FLAG_DEFEATED_GRUNT_SPACE_CENTER_1F
copyobjectxytoperm 9 copyobjectxytoperm LOCALID_STAIR_GRUNT
switch VAR_FACING switch VAR_FACING
case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsWest case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsWest
case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast @ BUG: This was meant to be case DIR_EAST case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast @ BUG: This was meant to be case DIR_EAST
applymovement 9, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairs applymovement LOCALID_STAIR_GRUNT, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairs
waitmovement 0 waitmovement 0
setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 2 setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 2
release release
@@ -253,7 +260,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_Grunt2Defeated:: @ 822326E
end end
MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsWest:: @ 8223278 MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsWest:: @ 8223278
applymovement 9, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairsWest applymovement LOCALID_STAIR_GRUNT, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairsWest
waitmovement 0 waitmovement 0
setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 1 setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 1
release release
@@ -262,7 +269,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsWest:: @ 8223278
@ Functionally unused by mistake. The movement is handled anyway after the switch (see above) @ Functionally unused by mistake. The movement is handled anyway after the switch (see above)
@ This also means VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE can never be 3 @ This also means VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE can never be 3
MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast:: @ 8223289 MossdeepCity_SpaceCenter_1F_EventScript_MoveGruntFromStairsEast:: @ 8223289
applymovement 9, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairsEast applymovement LOCALID_STAIR_GRUNT, MossdeepCity_SpaceCenter_1F_Movement_MoveGruntFromStairsEast
waitmovement 0 waitmovement 0
setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 3 setvar VAR_MOSSDEEP_SPACE_CENTER_STAIR_GUARD_STATE, 3
release release

Some files were not shown because too many files have changed in this diff Show More