pokeemerald/data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc

331 lines
13 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_MapScripts:: @ 825ADAB
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE00
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE31
2017-11-10 02:21:31 +01:00
.byte 0
BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB: @ 825ADBB
2019-11-24 22:58:40 +01:00
frontier_settrainers
2017-11-10 02:21:31 +01:00
checkplayergender
compare VAR_RESULT, MALE
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25
compare VAR_RESULT, FEMALE
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B
frontier_getbrainstatus
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_F, VAR_RESULT
compare VAR_RESULT, FRONTIER_BRAIN_NOT_READY
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25ADF3
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25ADF3:: @ 825ADF3
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_SetBrainObjectGfx
2017-11-10 02:21:31 +01:00
setobjectxyperm 2, 7, 9
end
BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE00: @ 825AE00
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE0A
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE0A:: @ 825AE0A
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_F, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE24
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE24:: @ 825AE24
end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25:: @ 825AE25
setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B:: @ 825AE2B
setvar VAR_OBJ_GFX_ID_F, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE31: @ 825AE31
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B:: @ 825AE3B
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B1E2, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_25B18B
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
2017-11-10 02:21:31 +01:00
waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7
end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67:: @ 825AE67
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_F, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B
2017-11-10 02:21:31 +01:00
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
2017-11-10 02:21:31 +01:00
waitmovement 0
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4
2019-12-02 14:44:34 +01:00
factory_setopponentgfx
2017-11-10 02:21:31 +01:00
removeobject 2
setobjectxyperm 2, 7, 1
addobject 2
applymovement 2, BattleFrontier_BattleFactoryBattleRoom_Movement_25B184
waitmovement 0
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7:: @ 825AEA7
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_F, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C
2019-11-26 23:20:08 +01:00
palace_getopponentintro
2017-11-10 02:21:31 +01:00
lockall
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmessage
closemessage
frontier_set FRONTIER_DATA_6, 0
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2018-10-21 20:13:12 +02:00
setvar VAR_0x8004, SPECIAL_BATTLE_FACTORY
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
2018-10-21 20:13:12 +02:00
special DoSpecialTrainerBattle
2017-11-10 02:21:31 +01:00
waitstate
switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF0F
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8:: @ 825AEF8
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25AEF8:: @ 825AEF8
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190
@ goto BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B190
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF0F:: @ 825AF0F
2019-12-02 14:44:34 +01:00
factory_get FACTORY_DATA_WIN_STREAK_SWAPS
2019-11-24 22:58:40 +01:00
compare VAR_RESULT, MAX_STREAK
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
setorcopyvar VAR_0x8006, VAR_RESULT
2019-12-02 14:44:34 +01:00
factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E:: @ 825AF3E
2019-11-24 22:58:40 +01:00
call BattleFrontier_EventScript_IncrementWinStreak
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF43:: @ 825AF43
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_BATTLE_NUM, VAR_RESULT
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 7, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85
setvar VAR_0x8006, 1
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_PRE_BATTLE_ROOM, 255, 8, 8
2017-11-10 02:21:31 +01:00
waitstate
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85:: @ 825AF85
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C:: @ 825AF9C
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_F
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF:: @ 825AFEF
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B3F1, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C:: @ 825B00C
2019-11-24 22:58:40 +01:00
frontier_getsymbols
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B42D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B182
waitmovement 0
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattleFactoryBattleRoom_Text_25B460
waitmessage
waitfanfare
2019-11-24 22:58:40 +01:00
frontier_givesymbol
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B498, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051:: @ 825B051
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
compare VAR_RESULT, FALSE
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B517, MSGBOX_DEFAULT
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E:: @ 825B07E
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5CF, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B:: @ 825B09B
2019-11-24 22:58:40 +01:00
frontier_getsymbols
compare VAR_RESULT, 2
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5E7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmessage
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B182
waitmovement 0
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattleFactoryBattleRoom_Text_25B640
waitmessage
waitfanfare
2019-11-24 22:58:40 +01:00
frontier_givesymbol
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B66D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0:: @ 825B0E0
closemessage
frontier_set FRONTIER_DATA_6, 0
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2018-10-21 20:13:12 +02:00
setvar VAR_0x8004, SPECIAL_BATTLE_FACTORY
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
2018-10-21 20:13:12 +02:00
special DoSpecialTrainerBattle
2017-11-10 02:21:31 +01:00
waitstate
return
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105:: @ 825B105
2019-12-02 14:44:34 +01:00
factory_get FACTORY_DATA_WIN_STREAK_SWAPS
2019-11-24 22:58:40 +01:00
compare VAR_RESULT, MAX_STREAK
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
setorcopyvar VAR_0x8006, VAR_RESULT
2019-12-02 14:44:34 +01:00
factory_set FACTORY_DATA_WIN_STREAK_SWAPS @ uses VAR_0x8006 above
factory_get FACTORY_DATA_WIN_STREAK
2019-11-24 22:58:40 +01:00
compare VAR_RESULT, MAX_STREAK
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF43
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
2019-12-02 14:44:34 +01:00
factory_set FACTORY_DATA_WIN_STREAK, VAR_RESULT
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_BATTLE_NUM
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF85
end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B: @ 825B17B
walk_up
walk_up
walk_up
walk_up
walk_up
face_right
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B182: @ 825B182
walk_right
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B184: @ 825B184
walk_down
walk_down
walk_down
walk_down
walk_down
face_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleFactoryBattleRoom_Movement_25B18B: @ 825B18B
walk_up
walk_up
walk_up
face_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190:: @ 825B190
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B190:: @ 825B190
2018-08-25 19:59:47 +02:00
copyvar VAR_RESULT, VAR_FRONTIER_BATTLE_MODE
2019-11-24 22:58:40 +01:00
compare VAR_RESULT, FRONTIER_MODE_DOUBLES
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 4, 8
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA:: @ 825B1AA
warp MAP_BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 14, 8
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4:: @ 825B1B4
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight
applymovement 4, Common_Movement_WalkInPlaceFastestRight
applymovement 5, Common_Movement_WalkInPlaceFastestLeft
applymovement 6, Common_Movement_WalkInPlaceFastestLeft
applymovement 7, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
BattleFrontier_BattleFactoryBattleRoom_Text_25B1E2: @ 825B1E2
.string "Hey, hey!\n"
.string "Get a move on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB: @ 825B1FB
2018-12-07 16:41:08 +01:00
.string "Hey, my name's NOLAND!\n"
.string "I'm basically in charge of this place,\l"
.string "which is why I'm the FACTORY HEAD!\p"
2017-11-10 02:21:31 +01:00
.string "I had a look at your Battle Swap data.\p"
.string "You seem to have the right idea,\n"
2018-12-07 16:41:08 +01:00
.string "but you're still square in your head!\p"
.string "Listen up, okay? Knowledge isn't only\n"
2017-11-10 02:21:31 +01:00
.string "about reading books or doing desk work.\p"
.string "Just doing that sort of thing…\n"
.string "It may as well be useless!\p"
.string "You have to experience things with\n"
.string "your heart and your body, understand?\p"
2018-12-07 16:41:08 +01:00
.string "I'll take you on under the same\n"
2017-11-10 02:21:31 +01:00
.string "conditions as you.\p"
2018-12-07 16:41:08 +01:00
.string "I'll be using rental POKéMON, too!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_Text_25B3F1: @ 825B3F1
.string "Shake out every last bit of your\n"
.string "knowledge and bring it on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B42D: @ 825B42D
.string "NOLAND: Smart going!\n"
2018-12-07 16:41:08 +01:00
.string "Let's see your FRONTIER PASS.$"
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_Text_25B460: @ 825B460
.string "The Knowledge Symbol was embossed\n"
.string "on the FRONTIER PASS!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B498: @ 825B498
.string "Heh…\n"
2018-12-07 16:41:08 +01:00
.string "You're a pretty bright spark…\p"
.string "Next time, I'll come after you hard.\n"
2017-11-10 02:21:31 +01:00
.string "No holds barred, understand?\p"
.string "You keep up your studies!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B517: @ 825B517
2018-12-07 16:41:08 +01:00
.string "NOLAND: Hey, hey! How's it going?\n"
2017-11-10 02:21:31 +01:00
.string "You keeping up with your studies?\p"
.string "…Oh?\p"
2018-12-07 16:41:08 +01:00
.string "You've taken on a harder look than\n"
2017-11-10 02:21:31 +01:00
.string "the last time I saw you.\p"
.string "Now, this should be fun!\n"
2018-12-07 16:41:08 +01:00
.string "I'm getting excited, hey!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_Text_25B5CF: @ 825B5CF
.string "All right!\n"
.string "Bring it on!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B5E7: @ 825B5E7
.string "NOLAND: What the…\n"
2018-12-07 16:41:08 +01:00
.string "You're getting out of my league!\p"
2017-11-10 02:21:31 +01:00
.string "Sheesh!\n"
2018-12-07 16:41:08 +01:00
.string "Let's see that FRONTIER PASS!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_BattleFactoryBattleRoom_Text_25B640: @ 825B640
.string "The Knowledge Symbol took on\n"
.string "a golden shine!$"
BattleFrontier_BattleFactoryBattleRoom_Text_25B66D: @ 825B66D
.string "Pfft, man!\p"
2018-12-07 16:41:08 +01:00
.string "That's absolutely the last time\n"
2017-11-10 02:21:31 +01:00
.string "I lose to you!\p"
.string "We have to do this again, hey?$"