124 lines
5.2 KiB
PHP
124 lines
5.2 KiB
PHP
Route104_MrBrineysHouse_MapScripts::
|
||
map_script MAP_SCRIPT_ON_TRANSITION, Route104_MrBrineysHouse_OnTransition
|
||
.byte 0
|
||
|
||
Route104_MrBrineysHouse_OnTransition:
|
||
setflag FLAG_LANDMARK_MR_BRINEY_HOUSE
|
||
call_if_eq VAR_BRINEY_HOUSE_STATE, 1, Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos
|
||
call_if_set FLAG_RECEIVED_POKENAV, Route104_MrBrineysHouse_EventScript_HideRustboroRival
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_HideRustboroRival::
|
||
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
|
||
return
|
||
|
||
Route104_MrBrineysHouse_EventScript_SetBrineyPeekoPos::
|
||
setobjectxyperm LOCALID_BRINEYS_HOUSE_BRINEY, 9, 3
|
||
setobjectmovementtype LOCALID_BRINEYS_HOUSE_BRINEY, MOVEMENT_TYPE_WALK_SEQUENCE_DOWN_LEFT_UP_RIGHT
|
||
setobjectxyperm LOCALID_BRINEYS_HOUSE_PEEKO, 9, 6
|
||
setobjectmovementtype LOCALID_BRINEYS_HOUSE_PEEKO, MOVEMENT_TYPE_WALK_SEQUENCE_LEFT_UP_RIGHT_DOWN
|
||
return
|
||
|
||
Route104_MrBrineysHouse_EventScript_Briney::
|
||
lock
|
||
faceplayer
|
||
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
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_SailingIntro::
|
||
setflag FLAG_MR_BRINEY_SAILING_INTRO
|
||
msgbox Route104_MrBrineysHouse_Text_WaitUpPeeko, MSGBOX_DEFAULT
|
||
msgbox Route104_MrBrineysHouse_Text_ItsYouLetsSailToDewford, MSGBOX_YESNO
|
||
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
||
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_WhereAreWeBound::
|
||
message Route104_MrBrineysHouse_Text_WhereAreWeBound
|
||
waitmessage
|
||
multichoicedefault 20, 8, MULTI_BRINEY_OFF_DEWFORD, 1, FALSE
|
||
switch VAR_RESULT
|
||
case 0, Route104_MrBrineysHouse_EventScript_SailToDewford
|
||
case 1, Route104_MrBrineysHouse_EventScript_DeclineSailing
|
||
case MULTI_B_PRESSED, Route104_MrBrineysHouse_EventScript_DeclineSailing
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_SailBothDeliveries::
|
||
msgbox Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford, MSGBOX_YESNO
|
||
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
||
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_SailDeliverPackage::
|
||
msgbox Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford, MSGBOX_YESNO
|
||
goto_if_eq VAR_RESULT, NO, Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing
|
||
goto Route104_MrBrineysHouse_EventScript_SailToDewford
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_DeclineDeliverySailing::
|
||
msgbox Route104_MrBrineysHouse_Text_DeclineDeliverySail, MSGBOX_DEFAULT
|
||
release
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_DeclineSailing::
|
||
msgbox Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail, MSGBOX_DEFAULT
|
||
release
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_SailToDewford::
|
||
msgbox Route104_MrBrineysHouse_Text_SetSailForDewford, MSGBOX_DEFAULT
|
||
call EventScript_BackupMrBrineyLocation
|
||
setvar VAR_BOARD_BRINEY_BOAT_STATE, 1
|
||
clearflag FLAG_HIDE_ROUTE_104_MR_BRINEY
|
||
setflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
|
||
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
|
||
setvar VAR_RUSTBORO_CITY_STATE, 8
|
||
setvar VAR_ROUTE104_STATE, 2
|
||
setflag FLAG_HIDE_RUSTBORO_CITY_RIVAL
|
||
setflag FLAG_HIDE_ROUTE_104_RIVAL
|
||
warp MAP_ROUTE104, 13, 51
|
||
waitstate
|
||
releaseall
|
||
end
|
||
|
||
Route104_MrBrineysHouse_EventScript_Peeko::
|
||
lock
|
||
faceplayer
|
||
waitse
|
||
playmoncry SPECIES_WINGULL, CRY_MODE_NORMAL
|
||
msgbox Route104_MrBrineysHouse_Text_Peeko, MSGBOX_DEFAULT
|
||
waitmoncry
|
||
release
|
||
end
|
||
|
||
Route104_MrBrineysHouse_Text_WaitUpPeeko:
|
||
.string "哈奇:稍等,孩子!\n等等我,小皮!$"
|
||
|
||
Route104_MrBrineysHouse_Text_ItsYouLetsSailToDewford:
|
||
.string "嗯?你是{PLAYER}{KUN}!\n是你救了我心爱的小皮!\l我们欠你的人情!\p什么?\n你想要坐我的船?\p嗯……\p你要去武斗镇送信,\n还要去凯那市送包裹?\p你的生活还真是忙碌啊!\p不过这点小事\n包在我身上!\p你找对人了!\n我们这就启航去武斗镇。$"
|
||
|
||
Route104_MrBrineysHouse_Text_SetSailForDewford:
|
||
.string "哈奇:目标武斗镇!\p起锚咯!\n小皮,亲爱的,我们出海了!$"
|
||
|
||
Route104_MrBrineysHouse_Text_DeclineDeliverySail:
|
||
.string "哈奇:这样吗?\n你的包裹不急吗?\p想出海随时叫我!$"
|
||
|
||
Route104_MrBrineysHouse_Text_NeedToMakeDeliveriesSailToDewford:
|
||
.string "哈奇:喂!\n我明白你的意思!\p你想要去武斗镇送信,\n还要去凯那市送包裹。\p这点小事\n包在我身上!\p你找对人了!\n我们这就启航去武斗镇。$"
|
||
|
||
Route104_MrBrineysHouse_Text_NeedToDeliverPackageSailToDewford:
|
||
.string "哈奇:喂!\n我明白你的意思!\p你要送包裹给\n凯那市的楠木。\p这点小事\n包在我身上!\p你找对人了!\n我们这就启航去武斗镇。$"
|
||
|
||
Route104_MrBrineysHouse_Text_WhereAreWeBound:
|
||
.string "哈奇:喂!\n为了你我随时都能出海!\p说吧朋友,\n这次想去哪儿?$"
|
||
|
||
Route104_MrBrineysHouse_Text_TellMeWheneverYouWantToSail:
|
||
.string "哈奇:这样吗?\n你可是小皮的救命恩人。\p想出海随时叫我!$"
|
||
|
||
Route104_MrBrineysHouse_Text_Peeko:
|
||
.string "小皮:皮皮呦咯!$"
|
||
|