pokeemerald/data/maps/Route111/scripts.inc

730 lines
23 KiB
PHP
Raw Normal View History

.set LOCALID_VICTOR, 1
.set LOCALID_VICTORIA, 2
.set LOCALID_VIVI, 3
.set LOCALID_VICKY, 4
.set LOCALID_ROCK_SMASH_MAN, 46
2021-07-05 19:54:43 +02:00
@ Note: LOCALID_ROUTE111_PLAYER_FALLING is a local id for this map used elsewhere. It's defined in event_objects.h
2021-04-27 08:30:26 +02:00
2021-07-20 21:18:31 +02:00
Route111_MapScripts::
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route111_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, Route111_OnTransition
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, Route111_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route111_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route111_OnLoad:
2019-11-12 07:57:39 +01:00
call_if_unset FLAG_REGI_DOORS_OPENED, Route111_EventScript_CloseDesertRuins
call_if_eq VAR_MIRAGE_TOWER_STATE, 1, Route111_EventScript_ShowTemporaryMirageTower
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_CloseDesertRuins::
2021-11-16 23:12:16 +01:00
setmetatile 29, 86, METATILE_General_RockWall_RockBase, TRUE
setmetatile 29, 87, METATILE_General_RockWall_SandBase, TRUE
2017-11-10 02:21:31 +01:00
return
2019-11-12 07:57:39 +01:00
@ Show Mirage Tower just prior to disintegration. Mirage Tower is otherwise handled by the map layout
2021-07-20 21:18:31 +02:00
Route111_EventScript_ShowTemporaryMirageTower::
2021-11-16 23:12:16 +01:00
setmetatile 18, 53, METATILE_Mauville_MirageTower_Tile0, FALSE
setmetatile 19, 53, METATILE_Mauville_MirageTower_Tile1, FALSE
setmetatile 20, 53, METATILE_Mauville_MirageTower_Tile2, FALSE
setmetatile 18, 54, METATILE_Mauville_MirageTower_Tile3, FALSE
setmetatile 19, 54, METATILE_Mauville_MirageTower_Tile4, FALSE
setmetatile 20, 54, METATILE_Mauville_MirageTower_Tile5, FALSE
setmetatile 18, 55, METATILE_Mauville_MirageTower_Tile6, FALSE
setmetatile 19, 55, METATILE_Mauville_MirageTower_Tile7, FALSE
setmetatile 20, 55, METATILE_Mauville_MirageTower_Tile8, FALSE
setmetatile 18, 56, METATILE_Mauville_MirageTower_Tile9, FALSE
setmetatile 19, 56, METATILE_Mauville_MirageTower_TileA, FALSE
setmetatile 20, 56, METATILE_Mauville_MirageTower_TileB, FALSE
setmetatile 18, 57, METATILE_Mauville_MirageTower_TileC, FALSE
setmetatile 19, 57, METATILE_Mauville_MirageTower_TileD, FALSE
setmetatile 20, 57, METATILE_Mauville_MirageTower_TileE, FALSE
setmetatile 18, 58, METATILE_Mauville_MirageTower_TileF, FALSE
setmetatile 19, 58, METATILE_Mauville_MirageTower_Tile10, FALSE
setmetatile 20, 58, METATILE_Mauville_MirageTower_Tile11, FALSE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_OnTransition:
setvar VAR_TRAINER_HILL_IS_ACTIVE, 0
special SetMirageTowerVisibility
2019-11-12 07:57:39 +01:00
call_if_unset FLAG_MIRAGE_TOWER_VISIBLE, Route111_EventScript_SetLayoutNoMirageTower
call_if_eq VAR_MIRAGE_TOWER_STATE, 1, Route111_EventScript_SetFallingPlayerGfx
call_if_eq VAR_MIRAGE_TOWER_STATE, 2, Route111_EventScript_SetMirageTowerGone
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CheckSetSandstorm
2019-10-23 01:44:38 +02:00
call GabbyAndTy_EventScript_UpdateLocation
2020-01-13 02:20:02 +01:00
goto_if_not_defeated TRAINER_VICKY, Route111_EventScript_SetWinstratesNotDefeated
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetFallingPlayerGfx::
2017-11-10 02:21:31 +01:00
checkplayergender
goto_if_eq VAR_RESULT, MALE, Route111_EventScript_SetFallingPlayerGfxMale
goto_if_eq VAR_RESULT, FEMALE, Route111_EventScript_SetFallingPlayerGfxFemale
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetFallingPlayerGfxMale::
setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetFallingPlayerGfxFemale::
setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_CheckSetSandstorm::
2018-05-19 18:02:43 +02:00
getplayerxy VAR_TEMP_0, VAR_TEMP_1
goto_if_lt VAR_TEMP_1, 34, Route111_EventScript_EndCheckSetSandstorm
goto_if_gt VAR_TEMP_1, 107, Route111_EventScript_EndCheckSetSandstorm
goto_if_gt VAR_TEMP_1, 72, Route111_EventScript_SetSandstorm
goto_if_gt VAR_TEMP_0, 2000, Route111_EventScript_EndCheckSetSandstorm
goto_if_lt VAR_TEMP_0, 8, Route111_EventScript_EndCheckSetSandstorm
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetSandstorm::
2018-12-24 22:23:58 +01:00
setweather WEATHER_SANDSTORM
2021-07-20 21:18:31 +02:00
Route111_EventScript_EndCheckSetSandstorm::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetWinstratesNotDefeated::
2018-10-19 19:04:47 +02:00
clearflag FLAG_HIDE_ROUTE_111_VICTOR_WINSTRATE
setflag FLAG_HIDE_ROUTE_111_VICTORIA_WINSTRATE
setflag FLAG_HIDE_ROUTE_111_VIVI_WINSTRATE
setflag FLAG_HIDE_ROUTE_111_VICKY_WINSTRATE
2017-11-10 02:21:31 +01:00
cleartrainerflag TRAINER_VICTOR
cleartrainerflag TRAINER_VICTORIA
cleartrainerflag TRAINER_VIVI
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetLayoutNoMirageTower::
2019-01-31 22:51:20 +01:00
setmaplayoutindex LAYOUT_ROUTE111_NO_MIRAGE_TOWER
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_SetMirageTowerGone::
2019-08-05 17:50:29 +02:00
setvar VAR_MIRAGE_TOWER_STATE, 3
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route111_OnWarp:
2019-11-12 07:57:39 +01:00
map_script_2 VAR_MIRAGE_TOWER_STATE, 1, Route111_EventScript_HidePlayerForMirageTower
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
Route111_EventScript_HidePlayerForMirageTower::
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_LITTLEROOT_TOWN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_OnFrame:
2019-11-12 07:57:39 +01:00
map_script_2 VAR_MIRAGE_TOWER_STATE, 1, Route111_EventScript_MirageTowerDisappear
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
Route111_EventScript_MirageTowerDisappear::
2017-11-10 02:21:31 +01:00
lockall
special StartMirageTowerShake
2017-11-10 02:21:31 +01:00
waitstate
delay 24
2020-08-21 00:02:00 +02:00
playse SE_FALL
2021-04-27 08:30:26 +02:00
addobject LOCALID_ROUTE111_PLAYER_FALLING
special StartPlayerDescendMirageTower
2017-11-10 02:21:31 +01:00
waitstate
showobjectat OBJ_EVENT_ID_PLAYER, MAP_LITTLEROOT_TOWN
2021-04-27 08:30:26 +02:00
removeobject LOCALID_ROUTE111_PLAYER_FALLING
2017-11-10 02:21:31 +01:00
delay 16
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
delay 16
special StartMirageTowerDisintegration
2017-11-10 02:21:31 +01:00
waitstate
special StartMirageTowerFossilFallAndSink
2017-11-10 02:21:31 +01:00
waitstate
2019-08-05 17:50:29 +02:00
setvar VAR_MIRAGE_TOWER_STATE, 2
clearflag FLAG_HIDE_DESERT_UNDERPASS_FOSSIL
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_CHOSE_CLAW_FOSSIL, Route111_EventScript_RootFossilDisappeared
msgbox Route111_Text_ClawFossilDisappeared, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RootFossilDisappeared::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_RootFossilDisappeared, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-12 07:57:39 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
Route111_Movement_PlayerFall::
store_lock_anim
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_EventScript_Girl::
2017-11-10 02:21:31 +01:00
lock
faceplayer
dotimebasedevents
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_DAILY_ROUTE_111_RECEIVED_BERRY, Route111_EventScript_ReceivedBerry
msgbox Route111_Text_WateredPlantsEveryDayTakeBerry, MSGBOX_DEFAULT
giveitem ITEM_RAZZ_BERRY
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-01-03 02:54:55 +01:00
setflag FLAG_DAILY_ROUTE_111_RECEIVED_BERRY
special GetPlayerBigGuyGirlString
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_GoingToTryToMakeDifferentColorBerries, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_ReceivedBerry::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_WhatColorBerriesToLookForToday, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
Route111_EventScript_ViciousSandstormTriggerUp::
lockall
setvar VAR_0x8004, 0
2019-11-12 07:57:39 +01:00
goto Route111_EventScript_ViciousSandstormTrigger
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_EventScript_ViciousSandstormTriggerDown::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, 1
2019-11-12 07:57:39 +01:00
goto Route111_EventScript_ViciousSandstormTrigger
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_ViciousSandstormTriggerLeft::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, 2
2019-11-12 07:57:39 +01:00
goto Route111_EventScript_ViciousSandstormTrigger
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
Route111_EventScript_ViciousSandstormTriggerRight::
lockall
setvar VAR_0x8004, 3
2019-11-12 07:57:39 +01:00
goto Route111_EventScript_ViciousSandstormTrigger
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_EventScript_ViciousSandstormTrigger::
2021-08-05 18:46:11 +02:00
checkitem ITEM_GO_GOGGLES
goto_if_eq VAR_RESULT, FALSE, Route111_EventScript_PreventRouteAccess
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_3, 1
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_PreventRouteAccess::
2019-08-15 05:38:42 +02:00
msgbox gText_SandstormIsVicious, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call_if_eq VAR_0x8004, 0, Route111_EventScript_PushUpFromRoute
call_if_eq VAR_0x8004, 1, Route111_EventScript_PushDownFromRoute
call_if_eq VAR_0x8004, 2, Route111_EventScript_PushLeftFromRoute
call_if_eq VAR_0x8004, 3, Route111_EventScript_PushRightFromRoute
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_PushUpFromRoute::
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_PushUpFromRoute
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_PushDownFromRoute::
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_PushDownFromRoute
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_PushLeftFromRoute::
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_PushLeftFromRoute
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_PushRightFromRoute::
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_PushRightFromRoute
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_Movement_PushUpFromRoute:
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_PushDownFromRoute:
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_PushLeftFromRoute:
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_PushRightFromRoute:
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_EventScript_SunTrigger::
2018-12-24 22:23:58 +01:00
setweather WEATHER_SUNNY
2020-08-21 00:02:00 +02:00
fadenewbgm MUS_ROUTE110
2017-11-10 02:21:31 +01:00
doweather
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_3, 0
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_SandstormTrigger::
2018-12-24 22:23:58 +01:00
setweather WEATHER_SANDSTORM
2020-08-21 00:02:00 +02:00
fadenewbgm MUS_ROUTE111
2017-11-10 02:21:31 +01:00
doweather
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Victor::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_WINSTRATE_FAMILY
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_BattleOurFamily, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route111_EventScript_BattleWinstrates
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_IsThatSo, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_BattleWinstrates::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_VictorIntro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VICTOR, Route111_Text_VictorDefeat
applymovement LOCALID_VICTOR, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
msgbox Route111_Text_VictorPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_VICTOR, Route111_Movement_WinstrateEnterHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_VICTOR
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_WaitForNextWinstrate
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
addobject LOCALID_VICTORIA
applymovement LOCALID_VICTORIA, Route111_Movement_WinstrateExitHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
msgbox Route111_Text_VictoriaIntro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VICTORIA, Route111_Text_VictoriaDefeat
applymovement LOCALID_VICTORIA, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
msgbox Route111_Text_VictoriaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_VICTORIA, Route111_Movement_WinstrateEnterHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_VICTORIA
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_WaitForNextWinstrate
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
addobject LOCALID_VIVI
applymovement LOCALID_VIVI, Route111_Movement_WinstrateExitHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
msgbox Route111_Text_ViviIntro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VIVI, Route111_Text_ViviDefeat
applymovement LOCALID_VIVI, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
msgbox Route111_Text_ViviPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_VIVI, Route111_Movement_WinstrateEnterHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_VIVI
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
applymovement OBJ_EVENT_ID_PLAYER, Route111_Movement_WaitForNextWinstrate
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
addobject LOCALID_VICKY
applymovement LOCALID_VICKY, Route111_Movement_WinstrateExitHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
msgbox Route111_Text_VickyIntro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VICKY, Route111_Text_VickyDefeat
msgbox Route111_Text_VickyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_VICKY, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
call Route111_EventScript_OpenWinstrateDoor
applymovement LOCALID_VICKY, Route111_Movement_WinstrateEnterHouse
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_VICKY
2019-11-12 07:57:39 +01:00
call Route111_EventScript_CloseWinstrateDoor
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_OpenWinstrateDoor::
2017-11-10 02:21:31 +01:00
opendoor 13, 113
waitdooranim
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_CloseWinstrateDoor::
2017-11-10 02:21:31 +01:00
closedoor 13, 113
waitdooranim
return
2021-07-20 21:18:31 +02:00
Route111_Movement_WinstrateEnterHouse:
walk_in_place_faster_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_WinstrateExitHouse:
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_WaitForNextWinstrate:
delay_16
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RouteSignMauville::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_RouteSignMauville, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_WinstrateHouseSign::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_WinstrateHouseSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RouteSign112::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_RouteSign112, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RouteSign113::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_RouteSign113, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_OldLadysRestStopSign::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_OldLadysRestStopSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_TrainerTipsSpAtkSpDef::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_TrainerTipsSpAtkSpDef, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Man1::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_ToughToKeepWinningUpTheRanks, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Man2::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_WinstrateFamilyDestroyedMe, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Hiker::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_eq VAR_MIRAGE_TOWER_STATE, 3, Route111_EventScript_HikerMirageTowerGone
goto_if_eq VAR_MIRAGE_TOWER_STATE, 2, Route111_EventScript_HikerMirageTowerDisintegrated
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_MIRAGE_TOWER_VISIBLE, Route111_EventScript_HikerMirageTowerVisible
msgbox Route111_Text_ShouldBeMirageTowerAroundHere, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_HikerMirageTowerGone::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_MirageTowerHasntBeenSeenSince, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_HikerMirageTowerDisintegrated::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_ThatWasShockingSandRainedDown, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_HikerMirageTowerVisible::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_MirageTowerClearlyVisible, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RockSmashTipFatMan::
2017-11-10 02:21:31 +01:00
lockall
applymovement LOCALID_ROCK_SMASH_MAN, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_MauvilleUncleToldMeToTakeRockSmash, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_ROCK_SMASH_MAN, Common_Movement_FaceOriginalDirection
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Drew::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DREW, Route111_Text_DrewIntro, Route111_Text_DrewDefeat
msgbox Route111_Text_DrewPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Heidi::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_HEIDI, Route111_Text_HeidiIntro, Route111_Text_HeidiDefeat
msgbox Route111_Text_HeidiPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Beau::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BEAU, Route111_Text_BeauIntro, Route111_Text_BeauDefeat
msgbox Route111_Text_BeauPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Becky::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BECKY, Route111_Text_BeckyIntro, Route111_Text_BeckyDefeat
msgbox Route111_Text_BeckyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Dusty::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DUSTY_1, Route111_Text_DustyIntro, Route111_Text_DustyDefeat, Route111_EventScript_RegisterDusty
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route111_EventScript_RematchDusty
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_DustyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RegisterDusty::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_DustyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_DUSTY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RematchDusty::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_DUSTY_1, Route111_Text_DustyRematchIntro, Route111_Text_DustyRematchDefeat
msgbox Route111_Text_DustyPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Travis::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_TRAVIS, Route111_Text_TravisIntro, Route111_Text_TravisDefeat
msgbox Route111_Text_TravisPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Irene::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_IRENE, Route111_Text_IreneIntro, Route111_Text_IreneDefeat
msgbox Route111_Text_IrenePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Daisuke::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DAISUKE, Route111_Text_DaisukeIntro, Route111_Text_DaisukeDefeat
msgbox Route111_Text_DaisukePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Wilton::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_WILTON_1, Route111_Text_WiltonIntro, Route111_Text_WiltonDefeat, Route111_EventScript_RegisterWilton
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route111_EventScript_RematchWilton
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_WiltonPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RegisterWilton::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_WiltonRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_WILTON_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RematchWilton::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_WILTON_1, Route111_Text_WiltonRematchIntro, Route111_Text_WiltonRematchDefeat
msgbox Route111_Text_WiltonPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Brooke::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BROOKE_1, Route111_Text_BrookeIntro, Route111_Text_BrookeDefeat, Route111_EventScript_RegisterBrooke
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route111_EventScript_RematchBrooke
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_BrookePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RegisterBrooke::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_BrookeRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_BROOKE_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_RematchBrooke::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_BROOKE_1, Route111_Text_BrookeRematchIntro, Route111_Text_BrookeRematchDefeat
msgbox Route111_Text_BrookePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Hayden::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_HAYDEN, Route111_Text_HaydenIntro, Route111_Text_HaydenDefeat
msgbox Route111_Text_HaydenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Bianca::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BIANCA, Route111_Text_BiancaIntro, Route111_Text_BiancaDefeat
msgbox Route111_Text_BiancaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Tyron::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_TYRON, Route111_Text_TyronIntro, Route111_Text_TyronDefeat
msgbox Route111_Text_TyronPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Celina::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CELINA, Route111_Text_CelinaIntro, Route111_Text_CelinaDefeat
msgbox Route111_Text_CelinaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Celia::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CELIA, Route111_Text_CeliaIntro, Route111_Text_CeliaDefeat
msgbox Route111_Text_CeliaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Bryan::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BRYAN, Route111_Text_BryanIntro, Route111_Text_BryanDefeat
msgbox Route111_Text_BryanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_Branden::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BRANDEN, Route111_Text_BrandenIntro, Route111_Text_BrandenDefeat
msgbox Route111_Text_BrandenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_TrainerHillSign::
2019-11-12 07:57:39 +01:00
msgbox Route111_Text_TrainerHillSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route111_Text_BattleOurFamily:
2018-12-07 16:41:08 +01:00
.string "Hello! I take it you're a traveler.\p"
.string "How's this? What do you say to taking\n"
2017-11-10 02:21:31 +01:00
.string "on our family of four in a series of\l"
.string "POKéMON battles?$"
2021-07-20 21:18:31 +02:00
Route111_Text_IsThatSo:
2017-11-10 02:21:31 +01:00
.string "Is that so?\n"
.string "Drop in, if you change your mind!$"
2021-07-20 21:18:31 +02:00
Route111_Text_VictorIntro:
2018-12-07 16:41:08 +01:00
.string "That's the spirit! I like you!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_VictorDefeat:
2017-11-10 02:21:31 +01:00
.string "Aiyah!\n"
2018-12-07 16:41:08 +01:00
.string "You're a lot tougher than I expected!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_VictorPostBattle:
2017-11-10 02:21:31 +01:00
.string "Hey, all!\n"
2018-12-07 16:41:08 +01:00
.string "I've found a pretty strong TRAINER!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_VictoriaIntro:
2018-12-07 16:41:08 +01:00
.string "Oh, my goodness! Aren't you young?\p"
2017-11-10 02:21:31 +01:00
.string "You must be quite the TRAINER to beat\n"
.string "my husband, though.\p"
2018-12-07 16:41:08 +01:00
.string "It's my turn to battle now!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_VictoriaDefeat:
2017-11-10 02:21:31 +01:00
.string "Oh, gosh!\n"
2018-12-07 16:41:08 +01:00
.string "I can't get over how strong you are!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_VictoriaPostBattle:
2018-12-07 16:41:08 +01:00
.string "There's a strong TRAINER here!\n"
.string "This one's really strong!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_ViviIntro:
2018-12-07 16:41:08 +01:00
.string "You're stronger than Mommy? Wow!\p"
.string "But I'm strong, too!\n"
2017-11-10 02:21:31 +01:00
.string "Really! Honestly!$"
2021-07-20 21:18:31 +02:00
Route111_Text_ViviDefeat:
2017-11-10 02:21:31 +01:00
.string "Huh? Did I just lose?$"
2021-07-20 21:18:31 +02:00
Route111_Text_ViviPostBattle:
2017-11-10 02:21:31 +01:00
.string "This stinks…\p"
.string "…Snivel… Grandma!$"
2021-07-20 21:18:31 +02:00
Route111_Text_VickyIntro:
2017-11-10 02:21:31 +01:00
.string "How dare you make my granddaughter\n"
.string "cry!\p"
2018-12-07 16:41:08 +01:00
.string "For that, I'm going to smack you!\n"
2017-11-10 02:21:31 +01:00
.string "Prepare to lose!$"
2021-07-20 21:18:31 +02:00
Route111_Text_VickyDefeat:
2017-11-10 02:21:31 +01:00
.string "Kwah! You are strong…\n"
.string "My granddaughter was right…$"
2021-07-20 21:18:31 +02:00
Route111_Text_VickyPostBattle:
2018-12-07 16:41:08 +01:00
.string "If you're not in any hurry,\n"
2017-11-10 02:21:31 +01:00
.string "visit with us awhile.$"
2021-07-20 21:18:31 +02:00
Route111_Text_ToughToKeepWinningUpTheRanks:
2018-12-07 16:41:08 +01:00
.string "If you don't raise your POKéMON some\n"
2017-11-10 02:21:31 +01:00
.string "more, it could be tough to keep winning\l"
.string "up through the ranks.\p"
2018-12-07 16:41:08 +01:00
.string "I've heard the POKéMON LEAGUE's\n"
2017-11-10 02:21:31 +01:00
.string "ELITE FOUR are far stronger than\l"
.string "any GYM LEADER.$"
2021-07-20 21:18:31 +02:00
Route111_Text_WinstrateFamilyDestroyedMe:
2017-11-10 02:21:31 +01:00
.string "I challenged the WINSTRATE family,\n"
.string "but four matches in a row is tough\l"
.string "going… They destroyed me.$"
2021-07-20 21:18:31 +02:00
Route111_Text_RouteSignMauville:
2017-11-10 02:21:31 +01:00
.string "ROUTE 111\n"
.string "{DOWN_ARROW} MAUVILLE CITY$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_WinstrateHouseSign:
2018-12-07 16:41:08 +01:00
.string "“Our family's hearts beat as one!”\n"
.string "THE WINSTRATE'S HOUSE$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_RouteSign112:
2017-11-10 02:21:31 +01:00
.string "ROUTE 111\n"
.string "{LEFT_ARROW} ROUTE 112$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_RouteSign113:
2017-11-10 02:21:31 +01:00
.string "ROUTE 111\n"
.string "{LEFT_ARROW} ROUTE 113$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_OldLadysRestStopSign:
2018-12-07 16:41:08 +01:00
.string "OLD LADY'S REST STOP\n"
2017-11-10 02:21:31 +01:00
.string "“Come in and rest your tired bones.”$"
2021-07-20 21:18:31 +02:00
Route111_Text_TrainerTipsSpAtkSpDef:
2017-11-10 02:21:31 +01:00
.string "TRAINER TIPS\p"
2018-12-07 16:41:08 +01:00
.string "One of the indicators of a POKéMON's\n"
2017-11-10 02:21:31 +01:00
.string "powerfulness is SP. ATK. It stands for\l"
.string "“SPECIAL ATTACK.”\p"
.string "Likewise, SP. DEF stands for “SPECIAL\n"
.string "DEFENSE.”$"
2021-07-20 21:18:31 +02:00
Route111_Text_ShouldBeMirageTowerAroundHere:
2017-11-10 02:21:31 +01:00
.string "There should be a tower made of sand\n"
.string "around here somewhere.\p"
.string "But for some reason, it can be seen\n"
.string "sometimes, and sometimes not.\p"
2018-12-07 16:41:08 +01:00
.string "That's why I call it the MIRAGE TOWER.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route111_Text_MirageTowerClearlyVisible:
2017-11-10 02:21:31 +01:00
.string "I see it!\n"
.string "The tower of sand!\p"
.string "The sand tower they called a mirage\n"
.string "is clearly visible!\p"
.string "But it looks so fragile…\n"
.string "It could crumble away anytime…\p"
2018-12-07 16:41:08 +01:00
.string "I want to go inside it, but I can't\n"
2017-11-10 02:21:31 +01:00
.string "get my courage up for it…$"
2021-07-20 21:18:31 +02:00
Route111_Text_ThatWasShockingSandRainedDown:
2017-11-10 02:21:31 +01:00
.string "Whoa…\n"
.string "That was shocking.\p"
.string "Sand rained down in chunks all of\n"
.string "a sudden.\p"
.string "What was it like inside?\n"
.string "Were there sandy ghosts and such?$"
2021-07-20 21:18:31 +02:00
Route111_Text_MirageTowerHasntBeenSeenSince:
2017-11-10 02:21:31 +01:00
.string "Since I spoke to you, the tower of sand\n"
2018-12-07 16:41:08 +01:00
.string "hasn't been seen.\p"
2017-11-10 02:21:31 +01:00
.string "Perhaps it really was\n"
.string "the MIRAGE TOWER…$"
2021-07-20 21:18:31 +02:00
Route111_Text_ClawFossilDisappeared:
2017-11-10 02:21:31 +01:00
.string "The CLAW FOSSIL disappeared into\n"
.string "the sand…$"
2021-07-20 21:18:31 +02:00
Route111_Text_RootFossilDisappeared:
2017-11-10 02:21:31 +01:00
.string "The ROOT FOSSIL disappeared into\n"
.string "the sand…$"
2021-07-20 21:18:31 +02:00
Route111_Text_MauvilleUncleToldMeToTakeRockSmash:
2017-11-10 02:21:31 +01:00
.string "Oh, no!\p"
.string "My uncle in MAUVILLE told me to take\n"
.string "ROCK SMASH with me if I was going to\l"
.string "ROUTE 111!\p"
.string "My uncle? He lives across from\n"
.string "the bike shop in MAUVILLE.$"
2021-07-20 21:18:31 +02:00
Route111_Text_TrainerHillSign:
.string "{RIGHT_ARROW} TRAINER HILL ENTRANCE\p"
2017-11-10 02:21:31 +01:00
.string "“Scale the heights, you hot-blooded\n"
.string "TRAINERS!”$"