2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_BRINEY, 1
|
|
|
|
.set LOCALID_PEEKO, 2
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_MapScripts::
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_OnTransition:
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_MR_BRINEY_HOUSE
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_eq VAR_BRINEY_HOUSE_STATE, 1, Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos
|
2019-11-02 07:19:44 +01:00
|
|
|
call_if_set FLAG_RECEIVED_POKENAV, Route104_MrBrineysHouse_EventScript_HideRustboroRival
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_HideRustboroRival::
|
2019-11-05 20:05:29 +01:00
|
|
|
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos::
|
2020-06-21 07:56:57 +02:00
|
|
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_Briney::
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_SailingIntro::
|
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
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_WhereAreWeBound::
|
2019-11-02 07:19:44 +01:00
|
|
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_SailBothDeliveries::
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_SailDeliverPackage::
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing::
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route104_MrBrineysHouse_Text_DeclineDeliverySail, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_DeclineSailing::
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_SailToDewford::
|
2019-11-02 07:19:44 +01:00
|
|
|
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
|
2021-11-15 18:04:54 +01:00
|
|
|
warp MAP_ROUTE104, 13, 51
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_EventScript_Peeko::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
waitse
|
2021-11-07 18:58:11 +01:00
|
|
|
playmoncry SPECIES_WINGULL, CRY_MODE_NORMAL
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_WaitUpPeeko:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "MR. BRINEY: Hold on, lass!\n"
|
|
|
|
.string "Wait up, PEEKO!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_ItsYouLetsSailToDewford:
|
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
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_SetSailForDewford:
|
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
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_DeclineDeliverySail:
|
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!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford:
|
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
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford:
|
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
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_WhereAreWeBound:
|
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?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail:
|
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!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route104_MrBrineysHouse_Text_Peeko:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "PEEKO: Pii piihyoro!$"
|
|
|
|
|