pokeemerald/data/maps/MauvilleCity_BikeShop/scripts.inc

329 lines
11 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_Rydel::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-02 07:19:44 +01:00
goto_if_set FLAG_RECEIVED_BIKE, MauvilleCity_BikeShop_EventScript_AskSwitchBikes
goto_if_set FLAG_DECLINED_BIKE, MauvilleCity_BikeShop_EventScript_SkipGreeting
msgbox MauvilleCity_BikeShop_Text_RydelGreeting, MSGBOX_DEFAULT
msgbox MauvilleCity_BikeShop_Text_DidYouComeFromFarAway, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, YES
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_YesFar
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_NotFar
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_SkipGreeting::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_DidYouComeFromFarAway, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, YES
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_YesFar
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_NotFar
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ChooseBike::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_ExplainBikesChooseWhichOne
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 21, 8, MULTI_BIKE, TRUE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 07:19:44 +01:00
case 0, MauvilleCity_BikeShop_EventScript_GetMachBike
case 1, MauvilleCity_BikeShop_EventScript_GetAcroBike
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_NotFar::
2019-01-02 22:12:43 +01:00
setflag FLAG_DECLINED_BIKE
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_GuessYouDontNeedBike, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_YesFar::
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_BIKE
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseBike
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_GetMachBike::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_ChoseMachBike, MSGBOX_DEFAULT
giveitem ITEM_MACH_BIKE
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ComeBackToSwitchBikes
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_GetAcroBike::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_ChoseAcroBike, MSGBOX_DEFAULT
giveitem ITEM_ACRO_BIKE
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ComeBackToSwitchBikes
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ComeBackToSwitchBikes::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_ComeBackToSwitchBikes, MSGBOX_DEFAULT
2018-04-29 13:36:26 +02:00
special SwapRegisteredBike
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_AskSwitchBikes::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_WantToSwitchBikes, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, YES
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_SwitchBikes
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq MauvilleCity_BikeShop_EventScript_KeepBike
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
@ If the player does not have a bike on them Rydel assumes its stored in the PC
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_SwitchBikes::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_IllSwitchBikes, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
checkitem ITEM_ACRO_BIKE, 1
2019-11-02 07:19:44 +01:00
compare VAR_RESULT, TRUE
goto_if_eq MauvilleCity_BikeShop_EventScript_SwitchAcroForMach
2017-11-10 02:21:31 +01:00
checkitem ITEM_MACH_BIKE, 1
2019-11-02 07:19:44 +01:00
compare VAR_RESULT, TRUE
goto_if_eq MauvilleCity_BikeShop_EventScript_SwitchMachForAcro
msgbox MauvilleCity_BikeShop_Text_OhYourBikeIsInPC, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_KeepBike::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_HappyYouLikeIt, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_SwitchAcroForMach::
incrementgamestat GAME_STAT_TRADED_BIKES
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_ExchangedAcroForMach, MSGBOX_DEFAULT
removeitem ITEM_ACRO_BIKE
giveitem ITEM_MACH_BIKE
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ComeBackToSwitchBikes
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_SwitchMachForAcro::
incrementgamestat GAME_STAT_TRADED_BIKES
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_ExchangedMachForAcro, MSGBOX_DEFAULT
removeitem ITEM_MACH_BIKE
giveitem ITEM_ACRO_BIKE
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ComeBackToSwitchBikes
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_Assistant::
2019-11-02 07:19:44 +01:00
msgbox MauvilleCity_BikeShop_Text_HandbooksAreInBack, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_MachBikeHandbook::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_MachHandbookWhichPage
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseMachHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ChooseMachHandbookPage::
2021-03-31 06:35:56 +02:00
multichoice 0, 0, MULTI_MACH_BIKE_INFO, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 07:19:44 +01:00
case 0, MauvilleCity_BikeShop_EventScript_HowToRide
case 1, MauvilleCity_BikeShop_EventScript_HowToTurn
case 2, MauvilleCity_BikeShop_EventScript_SandySlopes
case 3, MauvilleCity_BikeShop_EventScript_ExitMachHandbook
case MULTI_B_PRESSED, MauvilleCity_BikeShop_EventScript_ExitMachHandbook
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_HowToRide::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_HowToRideMachBike
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseMachHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_HowToTurn::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_HowToTurnMachBike
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseMachHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_SandySlopes::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_SandySlopes
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseMachHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ExitMachHandbook::
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_AcroBikeHandbook::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_AcroHandbookWhichPage
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseAcroHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ChooseAcroHandbookPage::
2021-03-31 06:35:56 +02:00
multichoice 0, 0, MULTI_ACRO_BIKE_INFO, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 07:19:44 +01:00
case 0, MauvilleCity_BikeShop_EventScript_Wheelies
case 1, MauvilleCity_BikeShop_EventScript_BunnyHops
case 2, MauvilleCity_BikeShop_EventScript_Jumps
case 3, MauvilleCity_BikeShop_EventScript_ExitAcroHandbook
case MULTI_B_PRESSED, MauvilleCity_BikeShop_EventScript_ExitAcroHandbook
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_Wheelies::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_Wheelies
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseAcroHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_BunnyHops::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_BunnyHops
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseAcroHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_Jumps::
2019-11-02 07:19:44 +01:00
message MauvilleCity_BikeShop_Text_Jumps
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-02 07:19:44 +01:00
goto MauvilleCity_BikeShop_EventScript_ChooseAcroHandbookPage
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_EventScript_ExitAcroHandbook::
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_RydelGreeting:
2017-11-10 02:21:31 +01:00
.string "Well, well, what have we here?\n"
.string "A most energetic customer!\p"
.string "Me? You may call me RYDEL.\n"
2018-12-07 16:41:08 +01:00
.string "I'm the owner of this cycle shop.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_DidYouComeFromFarAway:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Your RUNNING SHOES…\n"
2018-12-07 16:41:08 +01:00
.string "They're awfully filthy.\p"
2017-11-10 02:21:31 +01:00
.string "Did you come from far away?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_GuessYouDontNeedBike:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Is that right?\p"
.string "Then, I guess you have no need for\n"
.string "any of my BIKES.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ExplainBikesChooseWhichOne:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Hm, hm… … … … …\p"
2018-12-07 16:41:08 +01:00
.string "You're saying that you came all this\n"
2017-11-10 02:21:31 +01:00
.string "way from LITTLEROOT?\p"
.string "My goodness!\n"
2018-12-07 16:41:08 +01:00
.string "That's ridiculously far!\p"
2017-11-10 02:21:31 +01:00
.string "If you had one of my BIKES, you could\n"
.string "go anywhere easily while feeling the\l"
.string "gentle caress of the wind!\p"
2018-12-07 16:41:08 +01:00
.string "I'll tell you what!\n"
.string "I'll give you a BIKE!\p"
2017-11-10 02:21:31 +01:00
.string "Oh, wait a second!\p"
.string "I forgot to tell you that there are\n"
.string "two kinds of BIKES!\p"
.string "They are the MACH BIKE and\n"
.string "the ACRO BIKE!\p"
.string "The MACH BIKE is for cyclists who want\n"
.string "to feel the wind with their bodies!\p"
.string "And an ACRO BIKE is for those who\n"
.string "prefer technical rides!\p"
2018-12-07 16:41:08 +01:00
.string "I'm a real sweetheart, so you can\n"
2017-11-10 02:21:31 +01:00
.string "have whichever one you like!\p"
.string "Which one will you choose?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ChoseMachBike:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} chose the MACH BIKE.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ChoseAcroBike:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} chose the ACRO BIKE.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ComeBackToSwitchBikes:
2017-11-10 02:21:31 +01:00
.string "RYDEL: If you get the urge to switch\n"
.string "BIKES, just come see me!$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_WantToSwitchBikes:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Oh? Were you thinking about\n"
.string "switching BIKES?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_IllSwitchBikes:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Okay, no problem!\n"
2018-12-07 16:41:08 +01:00
.string "I'll switch BIKES for you!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ExchangedMachForAcro:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} got the MACH BIKE exchanged\n"
.string "for an ACRO BIKE.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_ExchangedAcroForMach:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} got the ACRO BIKE exchanged\n"
.string "for a MACH BIKE.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_HappyYouLikeIt:
2017-11-10 02:21:31 +01:00
.string "RYDEL: Good, good!\n"
2018-12-07 16:41:08 +01:00
.string "I'm happy that you like it!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_OhYourBikeIsInPC:
2017-11-10 02:21:31 +01:00
.string "Oh? What happened to that BIKE\n"
.string "I gave you?\p"
.string "Oh, I get it, you stored it using your PC.\p"
.string "Well, take it out of PC storage,\n"
2018-12-07 16:41:08 +01:00
.string "and I'll be happy to exchange it!\p"
2017-11-10 02:21:31 +01:00
.string "May the wind always be at your back\n"
.string "on your adventure!$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_HandbooksAreInBack:
2018-12-07 16:41:08 +01:00
.string "I'm learning about BIKES while\n"
2017-11-10 02:21:31 +01:00
.string "I work here.\p"
.string "If you need advice on how to ride your\n"
2018-12-07 16:41:08 +01:00
.string "BIKE, there're a couple handbooks in\l"
2017-11-10 02:21:31 +01:00
.string "the back.$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_MachHandbookWhichPage:
2018-12-07 16:41:08 +01:00
.string "It's a handbook on the MACH BIKE.\p"
2017-11-10 02:21:31 +01:00
.string "Which page do you want to read?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_HowToRideMachBike:
2017-11-10 02:21:31 +01:00
.string "A BIKE moves in the direction that\n"
.string "the + Control Pad is pressed.\p"
.string "It will speed up once it gets rolling.\p"
.string "To stop, release the + Control Pad.\n"
.string "The BIKE will slow to a stop.\p"
.string "Want to read a different page?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_HowToTurnMachBike:
2018-12-07 16:41:08 +01:00
.string "A MACH BIKE is speedy, but it can't\n"
2017-11-10 02:21:31 +01:00
.string "stop very quickly.\p"
.string "It gets a little tricky to get around\n"
.string "a corner.\p"
.string "Release the + Control Pad a little\n"
.string "before the corner and slow down.\p"
.string "Want to read a different page?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_SandySlopes:
2017-11-10 02:21:31 +01:00
.string "There are small sandy slopes\n"
.string "throughout the HOENN region.\p"
.string "The loose, crumbly sand makes it\n"
.string "impossible to climb normally.\p"
.string "But if you have a MACH BIKE, you can\n"
.string "zip up a sandy slope.\p"
.string "Want to read a different page?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_AcroHandbookWhichPage:
2018-12-07 16:41:08 +01:00
.string "It's a handbook on the ACRO BIKE.\p"
2017-11-10 02:21:31 +01:00
.string "Which page do you want to read?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_Wheelies:
2017-11-10 02:21:31 +01:00
.string "Press the B Button while riding,\n"
.string "and the front wheel lifts up.\p"
.string "You can zip around with the front\n"
.string "wheel up using the + Control Pad.\p"
.string "This technique is called a wheelie.\p"
.string "Want to read a different page?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_BunnyHops:
2017-11-10 02:21:31 +01:00
.string "Keeping the B Button pressed,\n"
.string "your BIKE can hop on the spot.\p"
.string "This technique is called a bunny hop.\p"
.string "You can ride while hopping, too.\p"
.string "Want to read a different page?$"
2021-07-20 21:18:31 +02:00
MauvilleCity_BikeShop_Text_Jumps:
2017-11-10 02:21:31 +01:00
.string "Press the B Button and the + Control\n"
.string "Pad at the same time to jump.\p"
.string "Press the + Control Pad to the side\n"
.string "to jump sideways.\p"
.string "Press it backwards to make the BIKE\n"
.string "change directions while jumping.\p"
.string "Want to read a different page?$"