pokeemerald/data/maps/PetalburgCity_WallysHouse/scripts.inc

138 lines
4.8 KiB
PHP
Raw Normal View History

.set LOCALID_WALLYS_DAD, 1
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_MapScripts::
2019-12-04 19:10:39 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, PetalburgCity_WallysHouse_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, PetalburgCity_WallysHouse_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_OnWarp:
map_script_2 VAR_PETALBURG_CITY_STATE, 4, PetalburgCity_WallysHouse_EventScript_PlayerWallysDadFaceEachOther
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_PlayerWallysDadFaceEachOther::
turnobject OBJ_EVENT_ID_PLAYER, DIR_EAST
turnobject LOCALID_WALLYS_DAD, DIR_WEST
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_OnFrame:
2019-10-20 19:27:23 +02:00
map_script_2 VAR_PETALBURG_CITY_STATE, 4, PetalburgCity_WallysHouse_EventScript_GiveHM03Surf
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_GiveHM03Surf::
2017-11-10 02:21:31 +01:00
lockall
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_PleaseExcuseUs, MSGBOX_DEFAULT
giveitem ITEM_HM03
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_HM03
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_SurfGoAllSortsOfPlaces, MSGBOX_DEFAULT
2019-08-05 17:23:45 +02:00
setvar VAR_PETALBURG_CITY_STATE, 5
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_WallysDad::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-10-20 19:27:23 +02:00
goto_if_set FLAG_DEFEATED_WALLY_VICTORY_ROAD, PetalburgCity_WallysHouse_EventScript_DefeatedWallyInVictoryRoad
goto_if_set FLAG_RECEIVED_HM03, PetalburgCity_WallysHouse_EventScript_ReceievedHM03Surf
goto_if_set FLAG_THANKED_FOR_PLAYING_WITH_WALLY, PetalburgCity_WallysHouse_EventScript_PlayedWithWally
msgbox PetalburgCity_WallysHouse_Text_ThanksForPlayingWithWally, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_THANKED_FOR_PLAYING_WITH_WALLY
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_ReceievedHM03Surf::
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_WallyIsComingHomeSoon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_DefeatedWallyInVictoryRoad::
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_YouMetWallyInEverGrandeCity, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_PlayedWithWally::
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_WonderHowWallyIsDoing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_WallysMom::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-10-20 19:27:23 +02:00
goto_if_set FLAG_RECEIVED_HM03, PetalburgCity_WallysHouse_EventScript_ReceivedHM03Surf
msgbox PetalburgCity_WallysHouse_Text_WallyWasReallyHappy, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_EventScript_ReceivedHM03Surf::
2019-10-20 19:27:23 +02:00
msgbox PetalburgCity_WallysHouse_Text_WallyLeftWithoutTelling, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_ThanksForPlayingWithWally:
2018-12-07 16:41:08 +01:00
.string "You're…\n"
2017-11-10 02:21:31 +01:00
.string "Ah, you must be {PLAYER}{KUN}, right?\p"
.string "Thank you for playing with WALLY a\n"
.string "little while ago.\p"
2018-12-07 16:41:08 +01:00
.string "He's been frail and sickly ever\n"
2017-11-10 02:21:31 +01:00
.string "since he was a baby.\p"
2018-12-07 16:41:08 +01:00
.string "We've sent him to stay with my relatives\n"
2017-11-10 02:21:31 +01:00
.string "in VERDANTURF TOWN for a while.\p"
.string "The air is a lot cleaner there\n"
.string "than it is here.\p"
2018-12-07 16:41:08 +01:00
.string "What's that? Where's WALLY?\n"
.string "He's already left, our WALLY.\p"
2017-11-10 02:21:31 +01:00
.string "I wonder where he could have\n"
.string "gotten by now?$"
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_WonderHowWallyIsDoing:
2017-11-10 02:21:31 +01:00
.string "I wonder how our WALLY is doing?$"
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_PleaseExcuseUs:
2017-11-10 02:21:31 +01:00
.string "{PLAYER}{KUN}! Please excuse us for\n"
.string "dragging you here this way.\p"
2018-12-07 16:41:08 +01:00
.string "But our WALLY's become very healthy\n"
2017-11-10 02:21:31 +01:00
.string "since he went to VERDANTURF TOWN.\p"
.string "We owe it all to you!\p"
.string "When WALLY left town, you helped\n"
.string "him catch a POKéMON, right?\p"
.string "I think that made WALLY really\n"
.string "happy.\p"
.string "Actually, not just WALLY.\n"
.string "It made me, his father, happy too.\p"
2018-12-07 16:41:08 +01:00
.string "Happy that he's gained such a great\n"
2017-11-10 02:21:31 +01:00
.string "friend as you.\p"
2018-12-07 16:41:08 +01:00
.string "This isn't a bribe or anything, but\n"
.string "I'd really like you to have this.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_SurfGoAllSortsOfPlaces:
2018-12-07 16:41:08 +01:00
.string "If your POKéMON can SURF, you'll be\n"
2017-11-10 02:21:31 +01:00
.string "able to go to all sorts of places.$"
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_WallyIsComingHomeSoon:
2018-12-07 16:41:08 +01:00
.string "WALLY's coming home soon.\n"
.string "I'm looking forward to that.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_YouMetWallyInEverGrandeCity:
2017-11-10 02:21:31 +01:00
.string "Oh? You met WALLY in\n"
.string "EVER GRANDE CITY?\p"
2018-12-07 16:41:08 +01:00
.string "Oh, {PLAYER}{KUN}, don't be silly.\p"
2017-11-10 02:21:31 +01:00
.string "He may have gotten healthy, but he\n"
2018-12-07 16:41:08 +01:00
.string "can't go somewhere far away like\l"
2017-11-10 02:21:31 +01:00
.string "that all by himself.$"
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_WallyWasReallyHappy:
2017-11-10 02:21:31 +01:00
.string "WALLY was really happy when he told\n"
.string "us that he caught a POKéMON.\p"
2018-12-07 16:41:08 +01:00
.string "It's been ages since I've seen him\n"
2017-11-10 02:21:31 +01:00
.string "smile like that.$"
2021-07-20 21:18:31 +02:00
PetalburgCity_WallysHouse_Text_WallyLeftWithoutTelling:
2017-11-10 02:21:31 +01:00
.string "I want you to keep this a secret\n"
.string "from my husband…\p"
.string "But our WALLY left VERDANTURF TOWN\n"
.string "without telling anyone.\p"
.string "You know, WALLY is frail, but\n"
2018-12-07 16:41:08 +01:00
.string "he's surprisingly strong-willed.\p"
.string "I'm sure that he'll come back safe\n"
2017-11-10 02:21:31 +01:00
.string "and sound one day!$"