pokeemerald/data/maps/Route104_MrBrineysHouse/scripts.inc

166 lines
6.0 KiB
PHP
Raw Normal View History

.set LOCALID_BRINEY, 1
.set LOCALID_PEEKO, 2
2017-11-10 02:21:31 +01:00
Route104_MrBrineysHouse_MapScripts:: @ 8229D2E
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, Route104_MrBrineysHouse_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2019-04-05 01:28:37 +02:00
Route104_MrBrineysHouse_OnTransition: @ 8229D34
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_MR_BRINEY_HOUSE
compare VAR_BRINEY_HOUSE_STATE, 1
2019-11-02 07:19:44 +01:00
call_if_eq Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos
call_if_set FLAG_RECEIVED_POKENAV, Route104_MrBrineysHouse_EventScript_HideRustboroRival
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_HideRustboroRival:: @ 8229D4C
2019-11-05 20:05:29 +01:00
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
2017-11-10 02:21:31 +01:00
return
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos:: @ 8229D50
setobjectxyperm LOCALID_BRINEY, 9, 3
setobjectmovementtype LOCALID_BRINEY, MOVEMENT_TYPE_WALK_SEQUENCE_DOWN_LEFT_UP_RIGHT
setobjectxyperm LOCALID_PEEKO, 9, 6
setobjectmovementtype LOCALID_PEEKO, MOVEMENT_TYPE_WALK_SEQUENCE_LEFT_UP_RIGHT_DOWN
2017-11-10 02:21:31 +01:00
return
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_Briney:: @ 8229D67
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-02 07:19:44 +01:00
call_if_unset FLAG_MR_BRINEY_SAILING_INTRO, Route104_MrBrineysHouse_EventScript_SailingIntro
goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, Route104_MrBrineysHouse_EventScript_SailBothDeliveries
goto_if_unset FLAG_DELIVERED_DEVON_GOODS, Route104_MrBrineysHouse_EventScript_SailDeliverPackage
goto Route104_MrBrineysHouse_EventScript_WhereAreWeBound
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_SailingIntro:: @ 8229D8A
2019-01-02 22:12:43 +01:00
setflag FLAG_MR_BRINEY_SAILING_INTRO
2019-11-02 07:19:44 +01:00
msgbox Route104_MrBrineysHouse_Text_WaitUpPeeko, MSGBOX_DEFAULT
msgbox Route104_MrBrineysHouse_Text_ItsYouLetsSailToDewford, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
goto Route104_MrBrineysHouse_EventScript_SailToDewford
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_WhereAreWeBound:: @ 8229DAE
message Route104_MrBrineysHouse_Text_WhereAreWeBound
2017-11-10 02:21:31 +01:00
waitmessage
2021-03-31 06:35:56 +02:00
multichoicedefault 20, 8, MULTI_BRINEY_OFF_DEWFORD, 1, FALSE
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 07:19:44 +01:00
case 0, Route104_MrBrineysHouse_EventScript_SailToDewford
case 1, Route104_MrBrineysHouse_EventScript_DeclineSailing
case MULTI_B_PRESSED, Route104_MrBrineysHouse_EventScript_DeclineSailing
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_SailBothDeliveries:: @ 8229DE1
msgbox Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
goto Route104_MrBrineysHouse_EventScript_SailToDewford
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_SailDeliverPackage:: @ 8229DFA
msgbox Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford, MSGBOX_YESNO
2019-11-02 16:50:07 +01:00
compare VAR_RESULT, NO
2019-11-02 07:19:44 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
goto Route104_MrBrineysHouse_EventScript_SailToDewford
2017-11-10 02:21:31 +01:00
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing:: @ 8229E13
msgbox Route104_MrBrineysHouse_Text_DeclineDeliverySail, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_DeclineSailing:: @ 8229E1D
msgbox Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_SailToDewford:: @ 8229E27
msgbox Route104_MrBrineysHouse_Text_SetSailForDewford, MSGBOX_DEFAULT
2019-10-26 18:16:04 +02:00
call EventScript_BackupMrBrineyLocation
2019-08-03 20:12:48 +02:00
setvar VAR_BOARD_BRINEY_BOAT_STATE, 1
2018-10-19 19:04:47 +02:00
clearflag FLAG_HIDE_ROUTE_104_MR_BRINEY
setflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
2019-08-05 17:23:45 +02:00
setvar VAR_RUSTBORO_CITY_STATE, 8
2019-08-03 20:12:48 +02:00
setvar VAR_ROUTE104_STATE, 2
2019-11-05 20:05:29 +01:00
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_104_RIVAL
warp MAP_ROUTE104, 255, 13, 51
2017-11-10 02:21:31 +01:00
waitstate
releaseall
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_EventScript_Peeko:: @ 8229E5D
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
playmoncry SPECIES_WINGULL, 0
2019-11-02 07:19:44 +01:00
msgbox Route104_MrBrineysHouse_Text_Peeko, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
release
end
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_WaitUpPeeko: @ 8229E70
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Hold on, lass!\n"
.string "Wait up, PEEKO!$"
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_ItsYouLetsSailToDewford: @ 8229E9B
2018-12-07 16:41:08 +01:00
.string "Hm? You're {PLAYER}{KUN}!\n"
2017-11-10 02:21:31 +01:00
.string "You saved my darling PEEKO!\l"
.string "We owe so much to you!\p"
2018-12-07 16:41:08 +01:00
.string "What's that?\n"
2017-11-10 02:21:31 +01:00
.string "You want to sail with me?\p"
.string "Hmhm…\p"
.string "You have a LETTER bound for DEWFORD\n"
.string "and a package for SLATEPORT, then?\p"
.string "Quite the busy life you must lead!\p"
2018-12-07 16:41:08 +01:00
.string "But, certainly, what you're asking is\n"
2017-11-10 02:21:31 +01:00
.string "no problem at all.\p"
2018-12-07 16:41:08 +01:00
.string "You've come to the right man!\n"
.string "We'll set sail for DEWFORD.$"
2017-11-10 02:21:31 +01:00
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_SetSailForDewford: @ 8229FE9
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: DEWFORD it is, then!\p"
.string "Anchors aweigh!\n"
2018-12-07 16:41:08 +01:00
.string "PEEKO, we're setting sail, my darling!$"
2017-11-10 02:21:31 +01:00
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_DeclineDeliverySail: @ 822A041
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Is that so?\n"
.string "Your deliveries can wait?\p"
.string "You just go on and tell me whenever\n"
.string "you want to set sail!$"
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford: @ 822A0AD
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Ahoy!\n"
.string "I know exactly what you want to say!\p"
2018-12-07 16:41:08 +01:00
.string "You're to deliver a LETTER to DEWFORD\n"
2017-11-10 02:21:31 +01:00
.string "and a package to SLATEPORT.\p"
.string "What you need me to do is no problem\n"
2018-12-07 16:41:08 +01:00
.string "at all--I'm the man for the job!\p"
.string "First, we'll set sail for DEWFORD.$"
2017-11-10 02:21:31 +01:00
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford: @ 822A18F
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Ahoy!\n"
.string "I know exactly what you want to say!\p"
2018-12-07 16:41:08 +01:00
.string "You're to deliver a package to\n"
2017-11-10 02:21:31 +01:00
.string "CAPT. STERN in SLATEPORT.\p"
.string "What you need me to do is no problem\n"
2018-12-07 16:41:08 +01:00
.string "at all--I'm the man for the job!\p"
.string "First, we'll set sail for DEWFORD.$"
2017-11-10 02:21:31 +01:00
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_WhereAreWeBound: @ 822A268
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Ahoy!\n"
2018-12-07 16:41:08 +01:00
.string "For you, I'll go out to sea anytime!\p"
2017-11-10 02:21:31 +01:00
.string "Now, my friend, where are we bound?$"
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail: @ 822A2C3
2017-11-10 02:21:31 +01:00
.string "MR. BRINEY: Is that so?\n"
.string "Well, PEEKO owes her life to you.\p"
.string "You just go on and tell me whenever\n"
.string "you want to set sail!$"
2019-11-02 07:19:44 +01:00
Route104_MrBrineysHouse_Text_Peeko: @ 822A337
2017-11-10 02:21:31 +01:00
.string "PEEKO: Pii piihyoro!$"