pokeemerald/data/maps/Route104_MrBrineysHouse/scripts.inc

163 lines
5.5 KiB
PHP
Raw Normal View History

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
2018-12-22 03:32:45 +01:00
call_if_eq Route104_MrBrineysHouse_EventScript_229D50
2019-01-02 22:12:43 +01:00
call_if_set FLAG_RECEIVED_POKENAV, Route104_MrBrineysHouse_EventScript_229D4C
2017-11-10 02:21:31 +01:00
end
Route104_MrBrineysHouse_EventScript_229D4C:: @ 8229D4C
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_RUSBORO_CITY_RIVAL
2017-11-10 02:21:31 +01:00
return
Route104_MrBrineysHouse_EventScript_229D50:: @ 8229D50
setobjectxyperm 1, 9, 3
setobjectmovementtype 1, MOVEMENT_TYPE_WALK_SEQUENCE_DOWN_LEFT_UP_RIGHT
2017-11-10 02:21:31 +01:00
setobjectxyperm 2, 9, 6
setobjectmovementtype 2, MOVEMENT_TYPE_WALK_SEQUENCE_LEFT_UP_RIGHT_DOWN
2017-11-10 02:21:31 +01:00
return
Route104_MrBrineysHouse_EventScript_229D67:: @ 8229D67
lock
faceplayer
2019-01-02 22:12:43 +01:00
call_if_unset FLAG_MR_BRINEY_SAILING_INTRO, Route104_MrBrineysHouse_EventScript_229D8A
goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, Route104_MrBrineysHouse_EventScript_229DE1
goto_if_unset FLAG_DELIVERED_DEVON_GOODS, Route104_MrBrineysHouse_EventScript_229DFA
2017-11-10 02:21:31 +01:00
goto Route104_MrBrineysHouse_EventScript_229DAE
end
Route104_MrBrineysHouse_EventScript_229D8A:: @ 8229D8A
2019-01-02 22:12:43 +01:00
setflag FLAG_MR_BRINEY_SAILING_INTRO
msgbox Route104_MrBrineysHouse_Text_229E70, MSGBOX_DEFAULT
msgbox Route104_MrBrineysHouse_Text_229E9B, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_229E13
2017-11-10 02:21:31 +01:00
goto Route104_MrBrineysHouse_EventScript_229E27
end
Route104_MrBrineysHouse_EventScript_229DAE:: @ 8229DAE
message Route104_MrBrineysHouse_Text_22A268
waitmessage
2019-09-19 06:56:51 +02:00
multichoicedefault 20, 8, MULTI_BRINEY_OFF_DEWFORD, 1, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, Route104_MrBrineysHouse_EventScript_229E27
case 1, Route104_MrBrineysHouse_EventScript_229E1D
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, Route104_MrBrineysHouse_EventScript_229E1D
2017-11-10 02:21:31 +01:00
end
Route104_MrBrineysHouse_EventScript_229DE1:: @ 8229DE1
msgbox Route104_MrBrineysHouse_Text_22A0AD, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_229E13
2017-11-10 02:21:31 +01:00
goto Route104_MrBrineysHouse_EventScript_229E27
end
Route104_MrBrineysHouse_EventScript_229DFA:: @ 8229DFA
msgbox Route104_MrBrineysHouse_Text_22A18F, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route104_MrBrineysHouse_EventScript_229E13
2017-11-10 02:21:31 +01:00
goto Route104_MrBrineysHouse_EventScript_229E27
end
Route104_MrBrineysHouse_EventScript_229E13:: @ 8229E13
msgbox Route104_MrBrineysHouse_Text_22A041, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route104_MrBrineysHouse_EventScript_229E1D:: @ 8229E1D
msgbox Route104_MrBrineysHouse_Text_22A2C3, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route104_MrBrineysHouse_EventScript_229E27:: @ 8229E27
msgbox Route104_MrBrineysHouse_Text_229FE9, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call Route104_MrBrineysHouse_EventScript_271E95
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
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_RUSBORO_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
Route104_MrBrineysHouse_EventScript_229E5D:: @ 8229E5D
lock
faceplayer
waitse
playmoncry SPECIES_WINGULL, 0
msgbox Route104_MrBrineysHouse_Text_22A337, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
release
end
Route104_MrBrineysHouse_Text_229E70: @ 8229E70
.string "MR. BRINEY: Hold on, lass!\n"
.string "Wait up, PEEKO!$"
Route104_MrBrineysHouse_Text_229E9B: @ 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
Route104_MrBrineysHouse_Text_229FE9: @ 8229FE9
.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
Route104_MrBrineysHouse_Text_22A041: @ 822A041
.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!$"
Route104_MrBrineysHouse_Text_22A0AD: @ 822A0AD
.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
Route104_MrBrineysHouse_Text_22A18F: @ 822A18F
.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
Route104_MrBrineysHouse_Text_22A268: @ 822A268
.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?$"
Route104_MrBrineysHouse_Text_22A2C3: @ 822A2C3
.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!$"
Route104_MrBrineysHouse_Text_22A337: @ 822A337
.string "PEEKO: Pii piihyoro!$"