pokeemerald/data/maps/BattleFrontier_Lounge3/scripts.inc
2021-03-31 00:35:56 -04:00

479 lines
18 KiB
PHP

BattleFrontier_Lounge3_MapScripts:: @ 8261D82
.byte 0
.set BET_AMOUNT_5, 5
.set BET_AMOUNT_10, 10
.set BET_AMOUNT_15, 15
BattleFrontier_Lounge3_EventScript_Gambler:: @ 8261D83
lock
faceplayer
goto_if_set FLAG_MET_BATTLE_FRONTIER_GAMBLER, BattleFrontier_Lounge3_EventScript_AlreadyMetGambler
call BattleFrontier_Lounge3_EventScript_CountSilverSymbols
compare VAR_0x8004, 2
goto_if_le BattleFrontier_Lounge3_EventScript_NotEnoughSilverSymbols
setflag FLAG_MET_BATTLE_FRONTIER_GAMBLER
msgbox BattleFrontier_Lounge3_Text_YouLookToughExplainGambling, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_AskToEnterChallenge
end
BattleFrontier_Lounge3_EventScript_AskToEnterChallenge:: @ 8261DAF
special ShowFrontierGamblerLookingMessage
waitmessage
waitbuttonpress
msgbox BattleFrontier_Lounge3_Text_HowAboutEnteringEventForMe, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq BattleFrontier_Lounge3_EventScript_DeclineChallenge
msgbox BattleFrontier_Lounge3_Text_SpotMeSomeBattlePoints, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq BattleFrontier_Lounge3_EventScript_DeclineChallenge
message BattleFrontier_Lounge3_Text_HowMuchCanYouSpot
waitmessage
special ShowBattlePointsWindow
goto BattleFrontier_Lounge3_EventScript_ChooseBetAmount
end
BattleFrontier_Lounge3_EventScript_ChooseBetAmount:: @ 8261DE9
multichoice 20, 4, MULTI_FRONTIER_GAMBLER_BET, FALSE
copyvar VAR_FRONTIER_GAMBLER_AMOUNT_BET, VAR_RESULT
switch VAR_RESULT
case FRONTIER_GAMBLER_BET_5, BattleFrontier_Lounge3_EventScript_Bet5
case FRONTIER_GAMBLER_BET_10, BattleFrontier_Lounge3_EventScript_Bet10
case FRONTIER_GAMBLER_BET_15, BattleFrontier_Lounge3_EventScript_Bet15
case FRONTIER_GAMBLER_BET_CANCEL, BattleFrontier_Lounge3_EventScript_CancelBet
case MULTI_B_PRESSED, BattleFrontier_Lounge3_EventScript_CancelBet
end
BattleFrontier_Lounge3_EventScript_Bet5:: @ 8261E30
setvar VAR_0x8008, BET_AMOUNT_5
goto BattleFrontier_Lounge3_EventScript_TryPlaceBet
end
BattleFrontier_Lounge3_EventScript_Bet10:: @ 8261E3B
setvar VAR_0x8008, BET_AMOUNT_10
goto BattleFrontier_Lounge3_EventScript_TryPlaceBet
end
BattleFrontier_Lounge3_EventScript_Bet15:: @ 8261E46
setvar VAR_0x8008, BET_AMOUNT_15
goto BattleFrontier_Lounge3_EventScript_TryPlaceBet
end
BattleFrontier_Lounge3_EventScript_TryPlaceBet:: @ 8261E51
specialvar VAR_TEMP_1, GetFrontierBattlePoints
compare VAR_TEMP_1, VAR_0x8008
goto_if_ge BattleFrontier_Lounge3_EventScript_PlaceBet
msgbox BattleFrontier_Lounge3_Text_YouDontHaveEnoughPoints, MSGBOX_DEFAULT
message BattleFrontier_Lounge3_Text_HowMuchCanYouSpot
waitmessage
goto BattleFrontier_Lounge3_EventScript_ChooseBetAmount
end
BattleFrontier_Lounge3_EventScript_PlaceBet:: @ 8261E75
copyvar VAR_0x8004, VAR_0x8008
special TakeFrontierBattlePoints
setvar VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_PLACED_BET
special UpdateBattlePointsWindow
playse SE_SHOP
msgbox BattleFrontier_Lounge3_Text_ThanksOffYouGo, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_FinishBet
end
BattleFrontier_Lounge3_EventScript_FinishBet:: @ 8261E96
special ShowFrontierGamblerGoMessage
waitmessage
waitbuttonpress
special CloseBattlePointsWindow
release
end
BattleFrontier_Lounge3_EventScript_CountSilverSymbols:: @ 8261EA0
setvar VAR_0x8004, 0
call_if_set FLAG_SYS_TOWER_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_DOME_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_PALACE_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_ARENA_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_FACTORY_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_PIKE_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
call_if_set FLAG_SYS_PYRAMID_SILVER, BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount
return
BattleFrontier_Lounge3_EventScript_AddSilverSymbolCount:: @ 8261EE5
addvar VAR_0x8004, 1
return
BattleFrontier_Lounge3_EventScript_NotEnoughSilverSymbols:: @ 8261EEB
msgbox BattleFrontier_Lounge3_Text_CantYouSeeWereBusyHere, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_FaceOriginalDirection
end
BattleFrontier_Lounge3_EventScript_AlreadyMetGambler:: @ 8261EF9
msgbox BattleFrontier_Lounge3_Text_Oh, MSGBOX_DEFAULT
compare VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_PLACED_BET
goto_if_ge BattleFrontier_Lounge3_EventScript_CheckBetResults
goto BattleFrontier_Lounge3_EventScript_AskToEnterChallenge
end
BattleFrontier_Lounge3_EventScript_CheckBetResults:: @ 8261F12
compare VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_PLACED_BET
goto_if_eq BattleFrontier_Lounge3_EventScript_ChallengeNotAttempted
compare VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_WON
goto_if_eq BattleFrontier_Lounge3_EventScript_WonChallenge
goto BattleFrontier_Lounge3_EventScript_LostChallenge
end
BattleFrontier_Lounge3_EventScript_WonChallenge:: @ 8261F2E
msgbox BattleFrontier_Lounge3_Text_HelloChampHeresYourPoints, MSGBOX_DEFAULT
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, FRONTIER_GAMBLER_BET_5
call_if_eq BattleFrontier_Lounge3_EventScript_RewardBet5
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, FRONTIER_GAMBLER_BET_10
call_if_eq BattleFrontier_Lounge3_EventScript_RewardBet10
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, FRONTIER_GAMBLER_BET_15
call_if_eq BattleFrontier_Lounge3_EventScript_RewardBet15
msgbox BattleFrontier_Lounge3_Text_ObtainedBattlePoints, MSGBOX_GETPOINTS
special GiveFrontierBattlePoints
msgbox BattleFrontier_Lounge3_Text_ThinkOfMeForAnotherChallenge, MSGBOX_DEFAULT
setvar VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_WAITING
release
end
BattleFrontier_Lounge3_EventScript_LostChallenge:: @ 8261F71
msgbox BattleFrontier_Lounge3_Text_NiceTryCantReturnPoints, MSGBOX_DEFAULT
setvar VAR_FRONTIER_GAMBLER_STATE, FRONTIER_GAMBLER_WAITING
release
end
BattleFrontier_Lounge3_EventScript_RewardBet5:: @ 8261F80
buffernumberstring 0, (BET_AMOUNT_5 * 2)
setvar VAR_0x8004, (BET_AMOUNT_5 * 2)
return
BattleFrontier_Lounge3_EventScript_RewardBet10:: @ 8261F8A
buffernumberstring 0, (BET_AMOUNT_10 * 2)
setvar VAR_0x8004, (BET_AMOUNT_10 * 2)
return
BattleFrontier_Lounge3_EventScript_RewardBet15:: @ 8261F94
buffernumberstring 0, (BET_AMOUNT_15 * 2)
setvar VAR_0x8004, (BET_AMOUNT_15 * 2)
return
BattleFrontier_Lounge3_EventScript_ChallengeNotAttempted:: @ 8261F9E
special ShowFrontierGamblerGoMessage
waitmessage
waitbuttonpress
release
end
BattleFrontier_Lounge3_EventScript_DeclineChallenge:: @ 8261FA5
msgbox BattleFrontier_Lounge3_Text_NotInterested, MSGBOX_DEFAULT
release
end
BattleFrontier_Lounge3_EventScript_CancelBet:: @ 8261FAF
special CloseBattlePointsWindow
goto BattleFrontier_Lounge3_EventScript_DeclineChallenge
end
BattleFrontier_Lounge3_EventScript_Man:: @ 8261FB8
msgbox BattleFrontier_Lounge3_Text_ShouldBeTakingChallenges, MSGBOX_NPC
end
BattleFrontier_Lounge3_EventScript_Woman:: @ 8261FC1
lock
faceplayer
msgbox BattleFrontier_Lounge3_Text_BackedWrongTrainer, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_FaceOriginalDirection
end
BattleFrontier_Lounge3_EventScript_PokefanF:: @ 8261FD1
lock
faceplayer
msgbox BattleFrontier_Lounge3_Text_KnowWinnerWhenISeeOne, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_FaceOriginalDirection
end
BattleFrontier_Lounge3_EventScript_FatMan:: @ 8261FE1
lock
faceplayer
msgbox BattleFrontier_Lounge3_Text_TrainerGoodButRattled, MSGBOX_DEFAULT
goto BattleFrontier_Lounge3_EventScript_FaceOriginalDirection
end
BattleFrontier_Lounge3_EventScript_FaceOriginalDirection:: @ 8261FF1
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
BattleFrontier_Lounge3_Text_CantYouSeeWereBusyHere:: @ 8261FFE
.string "…What's that you want?\p"
.string "Can't you see we're kind of busy here?\n"
.string "Can't your business wait till later?$"
BattleFrontier_Lounge3_Text_YouLookToughExplainGambling:: @ 8262061
.string "…Huh?\n"
.string "You look to me like a tough TRAINER.\p"
.string "Heheh…\n"
.string "Listen, I have this proposition.\p"
.string "We have a little group going here,\n"
.string "and we play a little game with what\l"
.string "goes on in the BATTLE FRONTIER.\p"
.string "The rules are really simple.\p"
.string "First, we pick one of the facilities\n"
.string "in the BATTLE FRONTIER.\p"
.string "Then, we each pick a different TRAINER\n"
.string "who's taking that facility's challenge,\l"
.string "and bet with our Battle Points.\p"
.string "The guy who bet on the TRAINER with\n"
.string "the best record takes all the Battle\l"
.string "Points in the pool.\p"
.string "Sounds simple, huh?\n"
.string "So, anyway…$"
BattleFrontier_Lounge3_Text_ChallengeBattleTowerSingle:: @ 8262261
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be challenging the BATTLE\l"
.string "TOWER's SINGLE BATTLE ROOMS.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleTowerDouble:: @ 826230D
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be challenging the BATTLE\l"
.string "TOWER's DOUBLE BATTLE ROOMS.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleTowerMulti:: @ 82623B9
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be challenging the BATTLE\l"
.string "TOWER's MULTI BATTLE ROOMS.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleDomeSingle:: @ 8262464
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "DOME's SINGLE BATTLE Tourney.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleDomeDouble:: @ 826250E
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "DOME's DOUBLE BATTLE Tourney.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleFactorySingle:: @ 82625B8
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "FACTORY's Battle Swap Single Tourney.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleFactoryDouble:: @ 826266A
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "FACTORY's Battle Swap Double Tourney.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattlePalaceSingle:: @ 826271C
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be challenging the BATTLE\l"
.string "PALACE's SINGLE BATTLE HALLS.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattlePalaceDouble:: @ 82627C9
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be challenging the BATTLE\l"
.string "PALACE's DOUBLE BATTLE HALLS.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattleArena:: @ 8262876
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "ARENA's Set KO Tourney.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattlePike:: @ 826291A
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE PIKE's\l"
.string "Battle Choice.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_ChallengeBattlePyramid:: @ 82629BC
.string "What I'm looking for is a TRAINER who's\n"
.string "going to be entering the BATTLE\l"
.string "PYRAMID's Battle Quest.\p"
.string "But so far, I haven't seen a TRAINER\n"
.string "that has that winning quality.$"
BattleFrontier_Lounge3_Text_HowAboutEnteringEventForMe:: @ 8262A60
.string "I'll see to it that you benefit, too.\n"
.string "So how about it?\l"
.string "How about entering that event for me?$"
BattleFrontier_Lounge3_Text_SpotMeSomeBattlePoints:: @ 8262ABD
.string "All right, that's perfect.\n"
.string "So, uh… How about spotting me some\l"
.string "of your Battle Points?\p"
.string "Trust me, I'll show you my gratitude\n"
.string "afterward.$"
BattleFrontier_Lounge3_Text_HowMuchCanYouSpot:: @ 8262B42
.string "Great, great!\n"
.string "So, how much can you spot me?$"
BattleFrontier_Lounge3_Text_YouDontHaveEnoughPoints:: @ 8262B6E
.string "Oh, no, no, no!\n"
.string "You don't have enough Battle Points!\p"
.string "I wish you wouldn't monkey around and\n"
.string "waste everyone's time!$"
BattleFrontier_Lounge3_Text_ThanksOffYouGo:: @ 8262BE0
.string "Heheh! Thanks much!\n"
.string "So, off you go!$"
BattleFrontier_Lounge3_Text_GetToBattleTowerSingle:: @ 8262C04
.string "Get to the BATTLE TOWER's\n"
.string "SINGLE BATTLE ROOMS pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleTowerDouble:: @ 8262C90
.string "Get to the BATTLE TOWER's\n"
.string "DOUBLE BATTLE ROOMS pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleTowerMulti:: @ 8262D1C
.string "Get to the BATTLE TOWER's\n"
.string "MULTI BATTLE ROOMS pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleDomeSingle:: @ 8262DA7
.string "Get to the BATTLE DOME's\n"
.string "SINGLE BATTLE Tourney pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleDomeDouble:: @ 8262E34
.string "Get to the BATTLE DOME's\n"
.string "DOUBLE BATTLE Tourney pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleFactorySingle:: @ 8262EC1
.string "Get to the BATTLE FACTORY's\n"
.string "Battle Swap Single Tourney pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleFactoryDouble:: @ 8262F56
.string "Get to the BATTLE FACTORY's\n"
.string "Battle Swap Double Tourney pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattlePalaceSingle:: @ 8262FEB
.string "Get to the BATTLE PALACE's\n"
.string "SINGLE BATTLE HALLS pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattlePalaceDouble:: @ 8263078
.string "Get to the BATTLE PALACE's\n"
.string "DOUBLE BATTLE HALLS pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattleArena:: @ 8263105
.string "Get to the BATTLE ARENA's\n"
.string "Set KO Tourney pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattlePike:: @ 826318C
.string "Get to the BATTLE PIKE's\n"
.string "Battle Choice pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_GetToBattlePyramid:: @ 8263211
.string "Get to the BATTLE PYRAMID's\n"
.string "Battle Quest pronto!\p"
.string "It's a must-win situation!\n"
.string "Don't blow your chance!\l"
.string "Both of our futures depend on you!$"
BattleFrontier_Lounge3_Text_NiceTryCantReturnPoints:: @ 8263298
.string "Oh, it's you…\n"
.string "Nice try…\p"
.string "I hate to break it to you, but I can't\n"
.string "return your Battle Points…\p"
.string "I guess we'll have to let it motivate\n"
.string "us to try harder next time!$"
BattleFrontier_Lounge3_Text_HelloChampHeresYourPoints:: @ 8263334
.string "Oh, yes!\n"
.string "Hello there, champ!\p"
.string "I knew you could!\n"
.string "I knew you would!\l"
.string "We're both big winners!\p"
.string "I'll return your Battle Points and,\n"
.string "of course, a little extra from me!$"
BattleFrontier_Lounge3_Text_ObtainedBattlePoints:: @ 82633D4
.string "{PLAYER} obtained\n"
.string "{STR_VAR_1} Battle Points.$"
BattleFrontier_Lounge3_Text_ThinkOfMeForAnotherChallenge:: @ 82633F2
.string "If you're up for another challenge,\n"
.string "please do think of me!$"
BattleFrontier_Lounge3_Text_NotInterested:: @ 826342D
.string "Not interested?! You shouldn't be\n"
.string "so afraid to take a chance!$"
BattleFrontier_Lounge3_Text_Oh:: @ 826346B
.string "Oh…$"
BattleFrontier_Lounge3_Text_BackedWrongTrainer:: @ 826346F
.string "I backed the wrong TRAINER again!\p"
.string "Maybe I should be battling normally\n"
.string "like everyone else…$"
BattleFrontier_Lounge3_Text_TrainerGoodButRattled:: @ 82634C9
.string "That TRAINER…\p"
.string "He's good, but he gets rattled too\n"
.string "easily to survive the BATTLE DOME…$"
BattleFrontier_Lounge3_Text_KnowWinnerWhenISeeOne:: @ 826351D
.string "Giggle!\n"
.string "I know a winner when I see one!$"
BattleFrontier_Lounge3_Text_ShouldBeTakingChallenges:: @ 8263545
.string "Those TRAINERS…\n"
.string "What are they doing?\l"
.string "They should be taking challenges.$"