包括“携带”与“持有”,“碰到/上”与“遇到”,所有等级以及秘传招式相关的表述 统一学习器内容说明相关的文本 统一开拓区的两种等级的译名 将电视文本中的“酱油众”修正为“粉丝们” 修正了禁止参加名单的PM的展示(修改了一小部分代码)
292 lines
11 KiB
C++
292 lines
11 KiB
C++
.set LOCALID_ATTENDANT, 1
|
||
|
||
SlateportCity_BattleTentLobby_MapScripts::
|
||
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_BattleTentLobby_OnFrame
|
||
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_BattleTentLobby_OnWarp
|
||
.byte 0
|
||
|
||
SlateportCity_BattleTentLobby_OnWarp:
|
||
map_script_2 VAR_TEMP_1, 0, SlateportCity_BattleTentLobby_EventScript_TurnPlayerNorth
|
||
.2byte 0
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_TurnPlayerNorth::
|
||
setvar VAR_TEMP_1, 1
|
||
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_OnFrame:
|
||
map_script_2 VAR_TEMP_CHALLENGE_STATUS, 0, SlateportCity_BattleTentLobby_EventScript_GetChallengeStatus
|
||
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING, SlateportCity_BattleTentLobby_EventScript_QuitWithoutSaving
|
||
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_PAUSED, SlateportCity_BattleTentLobby_EventScript_ResumeChallenge
|
||
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_WON, SlateportCity_BattleTentLobby_EventScript_WonChallenge
|
||
map_script_2 VAR_TEMP_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST, SlateportCity_BattleTentLobby_EventScript_LostChallenge
|
||
.2byte 0
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_GetChallengeStatus::
|
||
frontier_getstatus
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_QuitWithoutSaving::
|
||
lockall
|
||
msgbox SlateportCity_BattleTentLobby_Text_DidntSaveBeforeQuitting, MSGBOX_DEFAULT
|
||
closemessage
|
||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 255
|
||
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
|
||
releaseall
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_WonChallenge::
|
||
lockall
|
||
message SlateportCity_BattleTentLobby_Text_WonThreeMatchesReturnMons
|
||
waitmessage
|
||
slateporttent_setrandomprize
|
||
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
|
||
slateporttent_save 0
|
||
playse SE_SAVE
|
||
waitse
|
||
SlateportCity_BattleTentLobby_EventScript_GivePrize::
|
||
msgbox SlateportCity_BattleTentLobby_Text_AwardYouThisPrize, MSGBOX_DEFAULT
|
||
slateporttent_giveprize
|
||
switch VAR_RESULT
|
||
case FALSE, SlateportCity_BattleTentLobby_EventScript_NoRoomForPrize
|
||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
|
||
message BattleFrontier_BattleTowerLobby_Text_ReceivedPrize @ Odd that it uses Tower's instead of Factory's or its own
|
||
waitmessage
|
||
playfanfare MUS_OBTAIN_ITEM
|
||
waitfanfare
|
||
goto SlateportCity_BattleTentLobby_EventScript_EndGivePrize
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_NoRoomForPrize::
|
||
msgbox SlateportCity_BattleTentLobby_Text_NoRoomInBagMakeRoom, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_EndGivePrize
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_LostChallenge::
|
||
lockall
|
||
message SlateportCity_BattleTentLobby_Text_ReturnRentalMonsSaveResults
|
||
waitmessage
|
||
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_50
|
||
slateporttent_save 0
|
||
playse SE_SAVE
|
||
waitse
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_EndGivePrize::
|
||
msgbox SlateportCity_BattleTentLobby_Text_LookForwardToNextVisit, MSGBOX_DEFAULT
|
||
closemessage
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 255
|
||
releaseall
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_ResumeChallenge::
|
||
lockall
|
||
message SlateportCity_BattleTentLobby_Text_BeenWaitingForYou
|
||
waitmessage
|
||
slateporttent_save CHALLENGE_STATUS_SAVING
|
||
playse SE_SAVE
|
||
waitse
|
||
frontier_set FRONTIER_DATA_PAUSED, FALSE
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 255
|
||
setvar VAR_0x8006, 2
|
||
goto SlateportCity_BattleTentLobby_EventScript_EnterChallenge
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_Attendant::
|
||
lock
|
||
faceplayer
|
||
slateporttent_getprize
|
||
goto_if_ne VAR_RESULT, ITEM_NONE, SlateportCity_BattleTentLobby_EventScript_GivePrize
|
||
special SavePlayerParty
|
||
msgbox SlateportCity_BattleTentLobby_Text_WelcomeToBattleTent, MSGBOX_DEFAULT
|
||
SlateportCity_BattleTentLobby_EventScript_AskEnterChallenge::
|
||
message SlateportCity_BattleTentLobby_Text_TakeChallenge
|
||
waitmessage
|
||
multichoice 17, 6, MULTI_CHALLENGEINFO, FALSE
|
||
switch VAR_RESULT
|
||
case 0, SlateportCity_BattleTentLobby_EventScript_TryEnterChallenge
|
||
case 1, SlateportCity_BattleTentLobby_EventScript_ExplainChallenge
|
||
case 2, SlateportCity_BattleTentLobby_EventScript_CancelChallenge
|
||
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_CancelChallenge
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_TryEnterChallenge::
|
||
setvar VAR_FRONTIER_FACILITY, FRONTIER_FACILITY_FACTORY
|
||
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
|
||
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_TENT
|
||
msgbox SlateportCity_BattleTentLobby_Text_SaveBeforeChallenge, MSGBOX_YESNO
|
||
switch VAR_RESULT
|
||
case NO, SlateportCity_BattleTentLobby_EventScript_LoadPartyCancelChallenge
|
||
case YES, SlateportCity_BattleTentLobby_EventScript_SaveBeforeChallenge
|
||
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_LoadPartyCancelChallenge
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_SaveBeforeChallenge::
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 0
|
||
frontier_set FRONTIER_DATA_SELECTED_MON_ORDER
|
||
slateporttent_init
|
||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_SAVING
|
||
frontier_set FRONTIER_DATA_PAUSED, FALSE
|
||
closemessage
|
||
delay 2
|
||
call Common_EventScript_SaveGame
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 255
|
||
goto_if_eq VAR_RESULT, 0, SlateportCity_BattleTentLobby_EventScript_CancelChallengeSaveFailed
|
||
setvar VAR_0x8006, 0
|
||
SlateportCity_BattleTentLobby_EventScript_EnterChallenge::
|
||
msgbox SlateportCity_BattleTentLobby_Text_StepThisWay, MSGBOX_DEFAULT
|
||
closemessage
|
||
call SlateportCity_BattleTentLobby_EventScript_WalkToDoor
|
||
warp MAP_SLATEPORT_CITY_BATTLE_TENT_CORRIDOR, 2, 7
|
||
setvar VAR_TEMP_CHALLENGE_STATUS, 0
|
||
waitstate
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_WalkToDoor::
|
||
applymovement LOCALID_ATTENDANT, SlateportCity_BattleTentLobby_Movement_AttendantWalkToDoor
|
||
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_BattleTentLobby_Movement_PlayerWalkToDoor
|
||
waitmovement 0
|
||
opendoor 6, 1
|
||
waitdooranim
|
||
applymovement LOCALID_ATTENDANT, SlateportCity_BattleTentLobby_Movement_AttendantEnterDoor
|
||
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_BattleTentLobby_Movement_PlayerEnterDoor
|
||
waitmovement 0
|
||
closedoor 6, 1
|
||
waitdooranim
|
||
return
|
||
|
||
SlateportCity_BattleTentLobby_Movement_AttendantWalkToDoor:
|
||
walk_up
|
||
walk_up
|
||
walk_up
|
||
step_end
|
||
|
||
SlateportCity_BattleTentLobby_Movement_AttendantEnterDoor:
|
||
walk_up
|
||
set_invisible
|
||
step_end
|
||
|
||
SlateportCity_BattleTentLobby_Movement_PlayerWalkToDoor:
|
||
walk_up
|
||
walk_up
|
||
walk_up
|
||
step_end
|
||
|
||
SlateportCity_BattleTentLobby_Movement_PlayerEnterDoor:
|
||
walk_up
|
||
walk_up
|
||
set_invisible
|
||
step_end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_ExplainChallenge::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainSlateportTent, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_AskEnterChallenge
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_CancelChallengeSaveFailed::
|
||
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
|
||
goto SlateportCity_BattleTentLobby_EventScript_CancelChallenge
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_LoadPartyCancelChallenge::
|
||
special LoadPlayerParty
|
||
SlateportCity_BattleTentLobby_EventScript_CancelChallenge::
|
||
msgbox SlateportCity_BattleTentLobby_Text_LookForwardToNextVisit, MSGBOX_DEFAULT
|
||
release
|
||
end
|
||
|
||
@ Unused
|
||
SlateportCity_BattleTentLobby_Movement_UnusedEnterDoor::
|
||
walk_up
|
||
walk_up
|
||
walk_up
|
||
set_invisible
|
||
step_end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_TormentGiver::
|
||
lock
|
||
faceplayer
|
||
goto_if_set FLAG_RECEIVED_TM_TORMENT, SlateportCity_BattleTentLobby_EventScript_ReceivedTorment
|
||
msgbox SlateportCity_BattleTentLobby_Text_CouldntFindMonForMe, MSGBOX_DEFAULT
|
||
giveitem ITEM_TM_TORMENT
|
||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||
setflag FLAG_RECEIVED_TM_TORMENT
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainTorment, MSGBOX_DEFAULT
|
||
release
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_ReceivedTorment::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainTorment, MSGBOX_DEFAULT
|
||
release
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_Man::
|
||
msgbox SlateportCity_BattleTentLobby_Text_IllTryUsingBugMons, MSGBOX_NPC
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_Girl::
|
||
msgbox SlateportCity_BattleTentLobby_Text_BattleEvenWithoutToughMons, MSGBOX_NPC
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_Woman::
|
||
msgbox SlateportCity_BattleTentLobby_Text_NiceIfMoreSelection, MSGBOX_NPC
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesBoard::
|
||
lockall
|
||
msgbox BattleFrontier_BattleFactoryLobby_Text_RulesAreListed, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard::
|
||
message BattleFrontier_BattleFactoryLobby_Text_ReadWhichHeading
|
||
waitmessage
|
||
multichoice 17, 0, MULTI_SLATEPORT_TENT_RULES, FALSE
|
||
switch VAR_RESULT
|
||
case 0, SlateportCity_BattleTentLobby_EventScript_RulesBasics
|
||
case 1, SlateportCity_BattleTentLobby_EventScript_RulesSwapPartner
|
||
case 2, SlateportCity_BattleTentLobby_EventScript_RulesSwapNumber
|
||
case 3, SlateportCity_BattleTentLobby_EventScript_RulesSwapNotes
|
||
case 4, SlateportCity_BattleTentLobby_EventScript_RulesMons
|
||
case 5, SlateportCity_BattleTentLobby_EventScript_ExitRules
|
||
case MULTI_B_PRESSED, SlateportCity_BattleTentLobby_EventScript_ExitRules
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesBasics::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainBasicRules, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesSwapPartner::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainSwapPartnerRules, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesSwapNumber::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainSwapNumberRules, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesSwapNotes::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainSwapNotes, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_RulesMons::
|
||
msgbox SlateportCity_BattleTentLobby_Text_ExplainMonRules, MSGBOX_DEFAULT
|
||
goto SlateportCity_BattleTentLobby_EventScript_ReadRulesBoard
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_EventScript_ExitRules::
|
||
releaseall
|
||
end
|
||
|
||
SlateportCity_BattleTentLobby_Text_CouldntFindMonForMe:
|
||
.string "那个,呃,我没有,呃,\n自己的宝可梦,\p所以,我觉得,呃,那个,\n我应该向那边那人抱怨一下。\p但他,呃,根本就不听我的,啊!\n那个,呃,真讨厌,对吗?\p啊,呃,你,过来!\n这个,呃,给你!$"
|
||
|
||
SlateportCity_BattleTentLobby_Text_ExplainTorment:
|
||
.string "那个是,嗯,招式学习器41,\n知道吗?\p嘿,里面装着无理取闹,\n懂吗?\p就,这样其他人就不能\n连续使用相同的招式,明白?\p嘿,你听好,\n就,我可没在无理取闹!$"
|
||
|
||
SlateportCity_BattleTentLobby_Text_IllTryUsingBugMons:
|
||
.string "我并不很喜欢虫属性宝可梦,\n但也许我可以用用试试,\l做些改变。\p谁知道我最终会不会\n喜欢上它们呢!$"
|
||
|
||
SlateportCity_BattleTentLobby_Text_BattleEvenWithoutToughMons:
|
||
.string "就算你没有强大的宝可梦,\n也可以在这里尽情战斗。$"
|
||
|
||
SlateportCity_BattleTentLobby_Text_NiceIfMoreSelection:
|
||
.string "如果他们能给出更多选择\n不是很好吗?$"
|
||
|