pokeemerald/data/maps/BattleFrontier_ScottsHouse/scripts.inc

365 lines
15 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_ScottsHouse_MapScripts:: @ 82636A7
.byte 0
BattleFrontier_ScottsHouse_EventScript_Scott:: @ 82636A8
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_TEMP_4, BattleFrontier_ScottsHouse_EventScript_GivenBerry
goto_if_set FLAG_TEMP_3, BattleFrontier_ScottsHouse_EventScript_GivenShield
goto_if_set FLAG_TEMP_2, BattleFrontier_ScottsHouse_EventScript_GivenBattlePoints
goto BattleFrontier_ScottsHouse_EventScript_CheckGiveItems
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_CheckGiveItems:: @ 82636CB
goto_if_unset FLAG_SCOTT_GIVES_BATTLE_POINTS, BattleFrontier_ScottsHouse_EventScript_WelcomeToFrontier
goto_if_unset FLAG_COLLECTED_ALL_SILVER_SYMBOLS, BattleFrontier_ScottsHouse_EventScript_CheckSilverSymbols
goto_if_unset FLAG_COLLECTED_ALL_GOLD_SYMBOLS, BattleFrontier_ScottsHouse_EventScript_CheckGoldSymbols
goto BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_CheckGiveShield:: @ 82636EC
goto_if_unset FLAG_RECEIVED_SILVER_SHIELD, BattleFrontier_ScottsHouse_EventScript_CheckGiveSilverShield
goto_if_unset FLAG_RECEIVED_GOLD_SHIELD, BattleFrontier_ScottsHouse_EventScript_CheckGiveGoldShield
goto BattleFrontier_ScottsHouse_EventScript_RandomComment
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_CheckSilverSymbols:: @ 8263704
goto_if_unset FLAG_SYS_TOWER_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_DOME_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PALACE_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_ARENA_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_FACTORY_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PIKE_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PYRAMID_SILVER, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
msgbox BattleFrontier_ScottsHouse_Text_YouveCollectedAllSilverSymbols, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_LANSAT_BERRY
compare VAR_RESULT, FALSE
goto_if_eq BattleFrontier_ScottsHouse_EventScript_BerryPocketFull
2019-01-02 22:12:43 +01:00
setflag FLAG_COLLECTED_ALL_SILVER_SYMBOLS
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_4
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_CheckGoldSymbols:: @ 826376A
goto_if_unset FLAG_SYS_TOWER_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_DOME_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PALACE_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_ARENA_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_FACTORY_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PIKE_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
goto_if_unset FLAG_SYS_PYRAMID_GOLD, BattleFrontier_ScottsHouse_EventScript_CheckGiveShield
msgbox BattleFrontier_ScottsHouse_Text_YouveCollectedAllGoldSymbols, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_STARF_BERRY
compare VAR_RESULT, FALSE
goto_if_eq BattleFrontier_ScottsHouse_EventScript_BerryPocketFull
setflag FLAG_COLLECTED_ALL_GOLD_SYMBOLS
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_4
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_BerryPocketFull:: @ 82637D0
msgbox BattleFrontier_ScottsHouse_Text_BerryPocketStuffed, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_GivenBerry:: @ 82637DA
msgbox BattleFrontier_ScottsHouse_Text_SoGladIBroughtYouHere, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_RandomComment:: @ 82637E4
2017-11-10 02:21:31 +01:00
random 3
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_ScottsHouse_EventScript_FrontierBrainComment
compare VAR_RESULT, 2
goto_if_eq BattleFrontier_ScottsHouse_EventScript_ArtisanCaveComment
msgbox BattleFrontier_ScottsHouse_Text_WhyIGoSeekingTrainers, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_FrontierBrainComment:: @ 8263807
msgbox BattleFrontier_ScottsHouse_Text_HaveYouMetFrontierBrain, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_ArtisanCaveComment:: @ 8263811
msgbox BattleFrontier_ScottsHouse_Text_MayFindWildMonsInFrontier, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_CheckGiveSilverShield:: @ 826381B
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
battletower_getstreak
compare VAR_RESULT, 50
goto_if_ge BattleFrontier_ScottsHouse_EventScript_GiveSilverShield
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_OPEN
battletower_getstreak
compare VAR_RESULT, 50
goto_if_ge BattleFrontier_ScottsHouse_EventScript_GiveSilverShield
goto BattleFrontier_ScottsHouse_EventScript_RandomComment
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_GiveSilverShield:: @ 826387A
msgbox BattleFrontier_ScottsHouse_Text_Beat50TrainersInARow, MSGBOX_DEFAULT
2019-09-16 05:47:07 +02:00
givedecoration_std DECOR_SILVER_SHIELD
compare VAR_RESULT, FALSE
goto_if_eq BattleFrontier_ScottsHouse_EventScript_NoRoomForShield
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_SILVER_SHIELD
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_3
goto BattleFrontier_ScottsHouse_EventScript_GivenShield
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_NoRoomForShield:: @ 82638A0
msgbox BattleFrontier_ScottsHouse_Text_ComeBackForThisLater, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_GivenShield:: @ 82638AA
msgbox BattleFrontier_ScottsHouse_Text_ExpectingToHearEvenGreaterThings, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_CheckGiveGoldShield:: @ 82638B4
2019-11-24 22:58:40 +01:00
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
battletower_getstreak
compare VAR_RESULT, 100
goto_if_ge BattleFrontier_ScottsHouse_EventScript_GiveGoldShield
2019-11-24 22:58:40 +01:00
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_OPEN
battletower_getstreak
compare VAR_RESULT, 100
goto_if_ge BattleFrontier_ScottsHouse_EventScript_GiveGoldShield
goto BattleFrontier_ScottsHouse_EventScript_RandomComment
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_GiveGoldShield:: @ 8263913
msgbox BattleFrontier_ScottsHouse_Text_Beat100TrainersInARow, MSGBOX_DEFAULT
2019-09-16 05:47:07 +02:00
givedecoration_std DECOR_GOLD_SHIELD
compare VAR_RESULT, FALSE
goto_if_eq BattleFrontier_ScottsHouse_EventScript_NoRoomForShield
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_GOLD_SHIELD
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_3
goto BattleFrontier_ScottsHouse_EventScript_GivenShield
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_GivenBattlePoints:: @ 8263939
msgbox BattleFrontier_ScottsHouse_Text_ExpectingGreatThings, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_WelcomeToFrontier:: @ 8263943
msgbox BattleFrontier_ScottsHouse_Text_WelcomeToBattleFrontier, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
delay 30
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_NORTH
call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayNorth
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwaySouth
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_EAST
call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayEast
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest
msgbox BattleFrontier_ScottsHouse_Text_HowMuchEffortItTookToMakeReal, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_ScottsHouse_Text_HaveThisAsMementoOfOurPathsCrossing, MSGBOX_DEFAULT
compare VAR_SCOTT_STATE, 13
goto_if_eq BattleFrontier_ScottsHouse_EventScript_Give4BattlePoints
compare VAR_SCOTT_STATE, 9
goto_if_ge BattleFrontier_ScottsHouse_EventScript_Give3BattlePoints
compare VAR_SCOTT_STATE, 6
goto_if_ge BattleFrontier_ScottsHouse_EventScript_Give2BattlePoints
goto BattleFrontier_ScottsHouse_EventScript_Give1BattlePoint
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_Give4BattlePoints:: @ 82639BC
2017-11-10 02:21:31 +01:00
buffernumberstring 0, 4
setvar VAR_0x8004, 4
goto BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_Give3BattlePoints:: @ 82639CB
2017-11-10 02:21:31 +01:00
buffernumberstring 0, 3
setvar VAR_0x8004, 3
goto BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_Give2BattlePoints:: @ 82639DA
2017-11-10 02:21:31 +01:00
buffernumberstring 0, 2
setvar VAR_0x8004, 2
goto BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_Give1BattlePoint:: @ 82639E9
2017-11-10 02:21:31 +01:00
buffernumberstring 0, 1
setvar VAR_0x8004, 1
goto BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints
2017-11-10 02:21:31 +01:00
end
BattleFrontier_ScottsHouse_EventScript_GiveBattlePoints:: @ 82639F8
2019-09-13 20:24:07 +02:00
special GiveFrontierBattlePoints
msgbox BattleFrontier_ScottsHouse_Text_ObtainedXBattlePoints, MSGBOX_GETPOINTS
msgbox BattleFrontier_ScottsHouse_Text_ExplainBattlePoints, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_SCOTT_GIVES_BATTLE_POINTS
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_2
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayNorth:: @ 8263A13
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwaySouth:: @ 8263A1E
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayEast:: @ 8263A29
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_ScottFaceAwayWest:: @ 8263A34
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
BattleFrontier_ScottsHouse_Text_WelcomeToBattleFrontier: @ 8263A3F
2017-11-10 02:21:31 +01:00
.string "SCOTT: Well, hello and welcome!\n"
.string "Heheh… Sorry about the cramped space.\p"
.string "Anyway, {PLAYER}{KUN}, let me formally\n"
.string "welcome you to the BATTLE FRONTIER.\p"
.string "This is my dream come true.\n"
2018-12-07 16:41:08 +01:00
.string "It took me years and years, but I've\l"
2017-11-10 02:21:31 +01:00
.string "finally given shape to my dream.$"
BattleFrontier_ScottsHouse_Text_HowMuchEffortItTookToMakeReal: @ 8263B29
2017-11-10 02:21:31 +01:00
.string "On reflection, it was a terribly long\n"
.string "journey…\p"
.string "I left home alone on a quest to find\n"
.string "strong TRAINERS.\p"
.string "No one can imagine how much effort\n"
.string "or time it took to make this real.$"
BattleFrontier_ScottsHouse_Text_HaveThisAsMementoOfOurPathsCrossing: @ 8263BD4
2018-12-07 16:41:08 +01:00
.string "But that's all in the past.\n"
2017-11-10 02:21:31 +01:00
.string "No point dwelling on that!\p"
.string "All I want for you is to enjoy battling\n"
2018-12-07 16:41:08 +01:00
.string "to your heart's content here.\p"
2017-11-10 02:21:31 +01:00
.string "{PLAYER}{KUN}, I want you to have this\n"
.string "as a memento for all the time our\l"
.string "paths crossed on our journeys.$"
BattleFrontier_ScottsHouse_Text_ObtainedXBattlePoints: @ 8263CB0
2017-11-10 02:21:31 +01:00
.string "{PLAYER} obtained\n"
.string "{STR_VAR_1} Battle Point(s).$"
BattleFrontier_ScottsHouse_Text_ExplainBattlePoints: @ 8263CD0
2017-11-10 02:21:31 +01:00
.string "SCOTT: You can check your Battle\n"
.string "Points on your FRONTIER PASS.\p"
.string "The more success you have here at\n"
.string "the BATTLE FRONTIER, the more Battle\l"
.string "Points you will collect.\p"
.string "Use your Battle Points the way you\n"
.string "see fit, like trading them for items.$"
BattleFrontier_ScottsHouse_Text_ExpectingGreatThings: @ 8263DB8
2018-12-07 16:41:08 +01:00
.string "I'm expecting great things from you!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_ScottsHouse_Text_WhyIGoSeekingTrainers: @ 8263DDD
2017-11-10 02:21:31 +01:00
.string "SCOTT: Every TRAINER is an individual.\n"
.string "They all lead lives of their own.\p"
2018-12-07 16:41:08 +01:00
.string "But when they're in a battle,\n"
.string "it doesn't matter who they are.\p"
.string "They're all the same!\p"
2017-11-10 02:21:31 +01:00
.string "I love the purity of battle,\n"
.string "where everyone is equal.\p"
2018-12-07 16:41:08 +01:00
.string "That's why I go everywhere seeking\n"
2017-11-10 02:21:31 +01:00
.string "TRAINERS who are serious about\l"
.string "battling, and invite them here.$"
BattleFrontier_ScottsHouse_Text_HaveYouMetFrontierBrain: @ 8263F12
2017-11-10 02:21:31 +01:00
.string "SCOTT: Have you met any of\n"
.string "the FRONTIER BRAINS?\p"
.string "Better yet, have you obtained any\n"
.string "symbols from them?\p"
.string "I handpicked the FRONTIER BRAINS\n"
.string "as the toughest TRAINERS anywhere.\p"
2018-12-07 16:41:08 +01:00
.string "But I'm sure that seeing how tough\n"
2017-11-10 02:21:31 +01:00
.string "you are will startle even them!$"
BattleFrontier_ScottsHouse_Text_MayFindWildMonsInFrontier: @ 8263FFE
2018-12-07 16:41:08 +01:00
.string "SCOTT: You don't just train for battle,\n"
2017-11-10 02:21:31 +01:00
.string "right?\p"
.string "I think I remember you working on\n"
.string "a POKéDEX as well.\p"
.string "Well, guess what?\p"
.string "You may run into wild POKéMON in\n"
.string "the BATTLE FRONTIER somewhere…\l"
.string "Fufufu!$"
BattleFrontier_ScottsHouse_Text_YouveCollectedAllSilverSymbols: @ 82640BC
2017-11-10 02:21:31 +01:00
.string "SCOTT: Are you enjoying things in\n"
.string "the BATTLE FRONTIER?\p"
.string "…Wait a second…\n"
.string "Oh!\p"
.string "Your FRONTIER PASS!\n"
2018-12-07 16:41:08 +01:00
.string "You've collected the full set\l"
2017-11-10 02:21:31 +01:00
.string "of silver symbols!\p"
2018-12-07 16:41:08 +01:00
.string "That's more than impressive!\n"
2017-11-10 02:21:31 +01:00
.string "You are tough, just as I suspected!\p"
2018-12-07 16:41:08 +01:00
.string "Normally, I wouldn't do something\n"
2017-11-10 02:21:31 +01:00
.string "like this, but this is a special time!\p"
.string "I want you to have this.\n"
2018-12-07 16:41:08 +01:00
.string "I'm sure you can put it to proper use.$"
2017-11-10 02:21:31 +01:00
BattleFrontier_ScottsHouse_Text_YouveCollectedAllGoldSymbols: @ 8264216
2018-12-07 16:41:08 +01:00
.string "SCOTT: I hope you're enjoying\n"
2017-11-10 02:21:31 +01:00
.string "everything in the BATTLE FRONTIER.\p"
.string "…Wait a second…\n"
.string "Oh, my disbelieving eyes!\p"
.string "Your FRONTIER PASS!\n"
2018-12-07 16:41:08 +01:00
.string "You've gathered up the full set\l"
2017-11-10 02:21:31 +01:00
.string "of gold symbols!\p"
2018-12-07 16:41:08 +01:00
.string "That's more than stupendous!\n"
.string "You're incredible, just as I suspected!\p"
2017-11-10 02:21:31 +01:00
.string "… … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "{PLAYER}, you've got to accept this!\p"
2017-11-10 02:21:31 +01:00
.string "I think you will be able to\n"
.string "appreciate the value of my gift!$"
BattleFrontier_ScottsHouse_Text_SoGladIBroughtYouHere: @ 8264373
2017-11-10 02:21:31 +01:00
.string "I must say I have the gift of knowing\n"
.string "a good TRAINER when I see one.\p"
2018-12-07 16:41:08 +01:00
.string "I'm so glad I had the foresight to\n"
2017-11-10 02:21:31 +01:00
.string "bring you here!$"
BattleFrontier_ScottsHouse_Text_BerryPocketStuffed: @ 82643EB
2017-11-10 02:21:31 +01:00
.string "Your BERRY POCKET seems to\n"
.string "be stuffed.$"
BattleFrontier_ScottsHouse_Text_Beat50TrainersInARow: @ 8264412
2017-11-10 02:21:31 +01:00
.string "SCOTT: Oh, I heard about you!\n"
.string "How you ruled the BATTLE TOWER!\l"
.string "You beat over 50 TRAINERS in a row?\p"
2018-12-07 16:41:08 +01:00
.string "That's fantastic!\n"
2017-11-10 02:21:31 +01:00
.string "I want you to have this!$"
BattleFrontier_ScottsHouse_Text_Beat100TrainersInARow: @ 826449F
2017-11-10 02:21:31 +01:00
.string "SCOTT: Oh, my! I heard about you!\n"
.string "How you overwhelmed the BATTLE TOWER!\l"
.string "You beat over 100 TRAINERS in a row?\p"
2018-12-07 16:41:08 +01:00
.string "That's ridiculously spectacular!\n"
.string "You've got to have this!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_ScottsHouse_Text_ExpectingToHearEvenGreaterThings: @ 8264546
2018-12-07 16:41:08 +01:00
.string "I'll be expecting to hear even greater\n"
2017-11-10 02:21:31 +01:00
.string "things about you now!$"
BattleFrontier_ScottsHouse_Text_ComeBackForThisLater: @ 8264583
2017-11-10 02:21:31 +01:00
.string "Oops, well, if you have too much\n"
.string "stuff, come back for this later.$"