pokeemerald/data/event_scripts.s

1062 lines
43 KiB
ArmAsm
Raw Normal View History

#include "constants/global.h"
2019-11-15 00:56:18 +01:00
#include "constants/apprentice.h"
2019-09-25 20:48:22 +02:00
#include "constants/battle.h"
2019-11-26 23:20:08 +01:00
#include "constants/battle_arena.h"
#include "constants/battle_dome.h"
2019-12-02 14:44:34 +01:00
#include "constants/battle_factory.h"
#include "constants/battle_frontier.h"
2019-11-26 23:20:08 +01:00
#include "constants/battle_palace.h"
2019-10-07 02:04:30 +02:00
#include "constants/battle_pike.h"
#include "constants/battle_pyramid.h"
#include "constants/battle_setup.h"
2019-12-02 20:49:22 +01:00
#include "constants/battle_tent.h"
#include "constants/battle_tower.h"
2019-09-16 05:47:07 +02:00
#include "constants/berry.h"
2019-10-11 10:14:09 +02:00
#include "constants/cable_club.h"
2019-11-07 15:41:59 +01:00
#include "constants/coins.h"
2019-08-18 07:35:30 +02:00
#include "constants/contest.h"
2019-09-25 20:48:22 +02:00
#include "constants/daycare.h"
#include "constants/decorations.h"
2019-02-27 19:45:31 +01:00
#include "constants/easy_chat.h"
#include "constants/event_objects.h"
2019-11-21 20:03:35 +01:00
#include "constants/event_object_movement.h"
2018-11-13 15:19:04 +01:00
#include "constants/field_effects.h"
2019-10-07 02:04:30 +02:00
#include "constants/field_poison.h"
2019-09-13 20:24:07 +02:00
#include "constants/field_specials.h"
#include "constants/field_tasks.h"
2019-12-15 17:42:50 +01:00
#include "constants/field_weather.h"
2018-11-13 23:28:46 +01:00
#include "constants/flags.h"
2019-11-10 02:40:25 +01:00
#include "constants/frontier_util.h"
#include "constants/game_stat.h"
2019-09-19 00:57:25 +02:00
#include "constants/item.h"
2017-12-11 19:41:13 +01:00
#include "constants/items.h"
2018-11-13 15:19:04 +01:00
#include "constants/heal_locations.h"
2019-01-31 22:51:20 +01:00
#include "constants/layouts.h"
2019-09-25 20:48:22 +02:00
#include "constants/lilycove_lady.h"
#include "constants/map_scripts.h"
#include "constants/maps.h"
2019-10-20 22:11:07 +02:00
#include "constants/mauville_old_man.h"
2019-09-25 20:48:22 +02:00
#include "constants/metatile_labels.h"
2017-12-11 19:27:51 +01:00
#include "constants/moves.h"
2019-10-06 23:30:17 +02:00
#include "constants/party_menu.h"
#include "constants/pokemon.h"
2019-09-19 00:57:25 +02:00
#include "constants/script_menu.h"
#include "constants/secret_bases.h"
2017-12-11 19:27:51 +01:00
#include "constants/songs.h"
#include "constants/species.h"
#include "constants/trade.h"
2019-09-25 20:48:22 +02:00
#include "constants/trainer_hill.h"
2018-02-05 17:39:26 +01:00
#include "constants/trainers.h"
2019-10-07 08:00:16 +02:00
#include "constants/tv.h"
2019-11-11 03:54:00 +01:00
#include "constants/union_room.h"
2018-11-13 15:19:04 +01:00
#include "constants/vars.h"
2018-12-24 22:23:58 +01:00
#include "constants/weather.h"
2016-11-01 16:29:13 +01:00
.include "asm/macros.inc"
2017-10-24 05:18:35 +02:00
.include "asm/macros/event.inc"
2016-11-01 16:29:13 +01:00
.include "constants/constants.inc"
2016-09-03 10:11:14 +02:00
.section script_data, "aw", %progbits
2016-09-03 04:51:16 +02:00
@ 81DB67C
.include "data/script_cmd_table.inc"
2015-10-10 14:20:38 +02:00
2017-09-02 22:31:37 +02:00
gSpecialVars:: @ 81DBA0C
2017-11-11 01:12:18 +01:00
.4byte gSpecialVar_0x8000
.4byte gSpecialVar_0x8001
.4byte gSpecialVar_0x8002
.4byte gSpecialVar_0x8003
.4byte gSpecialVar_0x8004
.4byte gSpecialVar_0x8005
.4byte gSpecialVar_0x8006
.4byte gSpecialVar_0x8007
.4byte gSpecialVar_0x8008
.4byte gSpecialVar_0x8009
.4byte gSpecialVar_0x800A
.4byte gSpecialVar_0x800B
.4byte gSpecialVar_Facing
.4byte gSpecialVar_Result
.4byte gSpecialVar_ItemId
.4byte gSpecialVar_LastTalked
.4byte gSpecialVar_ContestRank
.4byte gSpecialVar_ContestCategory
.4byte gSpecialVar_MonBoxId
.4byte gSpecialVar_MonBoxPos
2019-02-28 05:54:51 +01:00
.4byte gSpecialVar_Unused_0x8014
2017-11-11 01:12:18 +01:00
.4byte gTrainerBattleOpponent_A
2015-10-10 14:20:38 +02:00
2017-10-14 20:26:25 +02:00
.include "data/specials.inc"
2015-10-10 14:20:38 +02:00
2017-10-12 09:06:19 +02:00
gStdScripts:: @ 81DC2A0
2019-12-12 08:35:37 +01:00
.4byte Std_ObtainItem @ STD_OBTAIN_ITEM
.4byte Std_FindItem @ STD_FIND_ITEM
.4byte Std_MsgboxNPC @ MSGBOX_NPC
.4byte Std_MsgboxSign @ MSGBOX_SIGN
.4byte Std_MsgboxDefault @ MSGBOX_DEFAULT
.4byte Std_MsgboxYesNo @ MSGBOX_YESNO
.4byte Std_MsgboxAutoclose @ MSGBOX_AUTOCLOSE
.4byte Std_ObtainDecoration @ STD_OBTAIN_DECORATION
.4byte Std_RegisteredInMatchCall @ STD_REGISTER_MATCH_CALL
.4byte Std_MsgboxGetPoints @ MSGBOX_GETPOINTS
.4byte Std_10
2017-11-10 02:21:31 +01:00
gStdScripts_End:: @ 81DC2CC
2018-06-21 00:41:41 +02:00
.include "data/maps/PetalburgCity/scripts.inc"
.include "data/maps/SlateportCity/scripts.inc"
.include "data/maps/MauvilleCity/scripts.inc"
.include "data/maps/RustboroCity/scripts.inc"
.include "data/maps/FortreeCity/scripts.inc"
.include "data/maps/LilycoveCity/scripts.inc"
.include "data/maps/MossdeepCity/scripts.inc"
.include "data/maps/SootopolisCity/scripts.inc"
.include "data/maps/EverGrandeCity/scripts.inc"
.include "data/maps/LittlerootTown/scripts.inc"
.include "data/maps/OldaleTown/scripts.inc"
.include "data/maps/DewfordTown/scripts.inc"
.include "data/maps/LavaridgeTown/scripts.inc"
.include "data/maps/FallarborTown/scripts.inc"
.include "data/maps/VerdanturfTown/scripts.inc"
.include "data/maps/PacifidlogTown/scripts.inc"
.include "data/maps/Route101/scripts.inc"
.include "data/maps/Route102/scripts.inc"
.include "data/maps/Route103/scripts.inc"
.include "data/maps/Route104/scripts.inc"
.include "data/maps/Route105/scripts.inc"
.include "data/maps/Route106/scripts.inc"
.include "data/maps/Route107/scripts.inc"
.include "data/maps/Route108/scripts.inc"
.include "data/maps/Route109/scripts.inc"
.include "data/maps/Route110/scripts.inc"
.include "data/maps/Route111/scripts.inc"
.include "data/maps/Route112/scripts.inc"
.include "data/maps/Route113/scripts.inc"
.include "data/maps/Route114/scripts.inc"
.include "data/maps/Route115/scripts.inc"
.include "data/maps/Route116/scripts.inc"
.include "data/maps/Route117/scripts.inc"
.include "data/maps/Route118/scripts.inc"
.include "data/maps/Route119/scripts.inc"
.include "data/maps/Route120/scripts.inc"
.include "data/maps/Route121/scripts.inc"
.include "data/maps/Route122/scripts.inc"
.include "data/maps/Route123/scripts.inc"
.include "data/maps/Route124/scripts.inc"
.include "data/maps/Route125/scripts.inc"
.include "data/maps/Route126/scripts.inc"
.include "data/maps/Route127/scripts.inc"
.include "data/maps/Route128/scripts.inc"
.include "data/maps/Route129/scripts.inc"
.include "data/maps/Route130/scripts.inc"
.include "data/maps/Route131/scripts.inc"
.include "data/maps/Route132/scripts.inc"
.include "data/maps/Route133/scripts.inc"
.include "data/maps/Route134/scripts.inc"
.include "data/maps/Underwater1/scripts.inc"
.include "data/maps/Underwater2/scripts.inc"
.include "data/maps/Underwater3/scripts.inc"
.include "data/maps/Underwater4/scripts.inc"
.include "data/maps/Underwater5/scripts.inc"
.include "data/maps/Underwater6/scripts.inc"
.include "data/maps/Underwater7/scripts.inc"
.include "data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc"
.include "data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc"
.include "data/maps/LittlerootTown_MaysHouse_1F/scripts.inc"
.include "data/maps/LittlerootTown_MaysHouse_2F/scripts.inc"
.include "data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc"
.include "data/maps/OldaleTown_House1/scripts.inc"
.include "data/maps/OldaleTown_House2/scripts.inc"
.include "data/maps/OldaleTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/OldaleTown_PokemonCenter_2F/scripts.inc"
.include "data/maps/OldaleTown_Mart/scripts.inc"
.include "data/maps/DewfordTown_House1/scripts.inc"
.include "data/maps/DewfordTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/DewfordTown_PokemonCenter_2F/scripts.inc"
.include "data/maps/DewfordTown_Gym/scripts.inc"
.include "data/maps/DewfordTown_Hall/scripts.inc"
.include "data/maps/DewfordTown_House2/scripts.inc"
.include "data/maps/LavaridgeTown_HerbShop/scripts.inc"
.include "data/maps/LavaridgeTown_Gym_1F/scripts.inc"
.include "data/maps/LavaridgeTown_Gym_B1F/scripts.inc"
.include "data/maps/LavaridgeTown_House/scripts.inc"
.include "data/maps/LavaridgeTown_Mart/scripts.inc"
.include "data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc"
.include "data/maps/FallarborTown_Mart/scripts.inc"
.include "data/maps/FallarborTown_BattleTentLobby/scripts.inc"
.include "data/maps/FallarborTown_BattleTentCorridor/scripts.inc"
.include "data/maps/FallarborTown_BattleTentBattleRoom/scripts.inc"
.include "data/maps/FallarborTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/FallarborTown_PokemonCenter_2F/scripts.inc"
2019-10-18 01:22:03 +02:00
.include "data/maps/FallarborTown_CozmosHouse/scripts.inc"
.include "data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/VerdanturfTown_BattleTentLobby/scripts.inc"
.include "data/maps/VerdanturfTown_BattleTentCorridor/scripts.inc"
.include "data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc"
.include "data/maps/VerdanturfTown_Mart/scripts.inc"
.include "data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc"
.include "data/maps/VerdanturfTown_WandasHouse/scripts.inc"
.include "data/maps/VerdanturfTown_FriendshipRatersHouse/scripts.inc"
.include "data/maps/VerdanturfTown_House/scripts.inc"
.include "data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc"
.include "data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc"
.include "data/maps/PacifidlogTown_House1/scripts.inc"
.include "data/maps/PacifidlogTown_House2/scripts.inc"
.include "data/maps/PacifidlogTown_House3/scripts.inc"
.include "data/maps/PacifidlogTown_House4/scripts.inc"
.include "data/maps/PacifidlogTown_House5/scripts.inc"
.include "data/maps/PetalburgCity_WallysHouse/scripts.inc"
.include "data/maps/PetalburgCity_Gym/scripts.inc"
.include "data/maps/PetalburgCity_House1/scripts.inc"
.include "data/maps/PetalburgCity_House2/scripts.inc"
.include "data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/PetalburgCity_Mart/scripts.inc"
.include "data/maps/SlateportCity_SternsShipyard_1F/scripts.inc"
.include "data/maps/SlateportCity_SternsShipyard_2F/scripts.inc"
.include "data/maps/SlateportCity_BattleTentLobby/scripts.inc"
.include "data/maps/SlateportCity_BattleTentCorridor/scripts.inc"
.include "data/maps/SlateportCity_BattleTentBattleRoom/scripts.inc"
2019-11-09 09:07:32 +01:00
.include "data/maps/SlateportCity_NameRatersHouse/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/SlateportCity_PokemonFanClub/scripts.inc"
.include "data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc"
.include "data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc"
.include "data/maps/SlateportCity_Harbor/scripts.inc"
2019-11-09 09:07:32 +01:00
.include "data/maps/SlateportCity_House/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/SlateportCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/SlateportCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/SlateportCity_Mart/scripts.inc"
.include "data/maps/MauvilleCity_Gym/scripts.inc"
.include "data/maps/MauvilleCity_BikeShop/scripts.inc"
.include "data/maps/MauvilleCity_House1/scripts.inc"
.include "data/maps/MauvilleCity_GameCorner/scripts.inc"
.include "data/maps/MauvilleCity_House2/scripts.inc"
.include "data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/MauvilleCity_Mart/scripts.inc"
.include "data/maps/RustboroCity_DevonCorp_1F/scripts.inc"
.include "data/maps/RustboroCity_DevonCorp_2F/scripts.inc"
.include "data/maps/RustboroCity_DevonCorp_3F/scripts.inc"
.include "data/maps/RustboroCity_Gym/scripts.inc"
.include "data/maps/RustboroCity_PokemonSchool/scripts.inc"
.include "data/maps/RustboroCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/RustboroCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/RustboroCity_Mart/scripts.inc"
.include "data/maps/RustboroCity_Flat1_1F/scripts.inc"
.include "data/maps/RustboroCity_Flat1_2F/scripts.inc"
.include "data/maps/RustboroCity_House1/scripts.inc"
.include "data/maps/RustboroCity_CuttersHouse/scripts.inc"
.include "data/maps/RustboroCity_House2/scripts.inc"
.include "data/maps/RustboroCity_Flat2_1F/scripts.inc"
.include "data/maps/RustboroCity_Flat2_2F/scripts.inc"
.include "data/maps/RustboroCity_Flat2_3F/scripts.inc"
.include "data/maps/RustboroCity_House3/scripts.inc"
.include "data/maps/FortreeCity_House1/scripts.inc"
.include "data/maps/FortreeCity_Gym/scripts.inc"
.include "data/maps/FortreeCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/FortreeCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/FortreeCity_Mart/scripts.inc"
.include "data/maps/FortreeCity_House2/scripts.inc"
.include "data/maps/FortreeCity_House3/scripts.inc"
.include "data/maps/FortreeCity_House4/scripts.inc"
.include "data/maps/FortreeCity_House5/scripts.inc"
.include "data/maps/FortreeCity_DecorationShop/scripts.inc"
.include "data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc"
.include "data/maps/LilycoveCity_CoveLilyMotel_2F/scripts.inc"
.include "data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc"
.include "data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc"
.include "data/maps/LilycoveCity_ContestLobby/scripts.inc"
.include "data/maps/LilycoveCity_ContestHall/scripts.inc"
.include "data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/LilycoveCity_UnusedMart/scripts.inc"
.include "data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc"
.include "data/maps/LilycoveCity_Harbor/scripts.inc"
.include "data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc"
.include "data/maps/LilycoveCity_House1/scripts.inc"
.include "data/maps/LilycoveCity_House2/scripts.inc"
.include "data/maps/LilycoveCity_House3/scripts.inc"
.include "data/maps/LilycoveCity_House4/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc"
.include "data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc"
.include "data/maps/MossdeepCity_Gym/scripts.inc"
.include "data/maps/MossdeepCity_House1/scripts.inc"
.include "data/maps/MossdeepCity_House2/scripts.inc"
.include "data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/MossdeepCity_Mart/scripts.inc"
.include "data/maps/MossdeepCity_House3/scripts.inc"
.include "data/maps/MossdeepCity_StevensHouse/scripts.inc"
.include "data/maps/MossdeepCity_House4/scripts.inc"
.include "data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc"
.include "data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc"
.include "data/maps/MossdeepCity_GameCorner_1F/scripts.inc"
.include "data/maps/MossdeepCity_GameCorner_B1F/scripts.inc"
.include "data/maps/SootopolisCity_Gym_1F/scripts.inc"
.include "data/maps/SootopolisCity_Gym_B1F/scripts.inc"
.include "data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/SootopolisCity_Mart/scripts.inc"
.include "data/maps/SootopolisCity_House1/scripts.inc"
.include "data/maps/SootopolisCity_House2/scripts.inc"
.include "data/maps/SootopolisCity_House3/scripts.inc"
.include "data/maps/SootopolisCity_House4/scripts.inc"
.include "data/maps/SootopolisCity_House5/scripts.inc"
.include "data/maps/SootopolisCity_House6/scripts.inc"
.include "data/maps/SootopolisCity_House7/scripts.inc"
.include "data/maps/SootopolisCity_LotadAndSeedotHouse/scripts.inc"
.include "data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc"
.include "data/maps/SootopolisCity_MysteryEventsHouse_B1F/scripts.inc"
.include "data/maps/EverGrandeCity_SidneysRoom/scripts.inc"
.include "data/maps/EverGrandeCity_PhoebesRoom/scripts.inc"
.include "data/maps/EverGrandeCity_GlaciasRoom/scripts.inc"
.include "data/maps/EverGrandeCity_DrakesRoom/scripts.inc"
.include "data/maps/EverGrandeCity_ChampionsRoom/scripts.inc"
.include "data/maps/EverGrandeCity_Hall1/scripts.inc"
.include "data/maps/EverGrandeCity_Hall2/scripts.inc"
.include "data/maps/EverGrandeCity_Hall3/scripts.inc"
.include "data/maps/EverGrandeCity_Hall4/scripts.inc"
.include "data/maps/EverGrandeCity_Hall5/scripts.inc"
.include "data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc"
.include "data/maps/EverGrandeCity_HallOfFame/scripts.inc"
.include "data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc"
.include "data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc"
.include "data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc"
.include "data/maps/Route104_MrBrineysHouse/scripts.inc"
.include "data/maps/Route104_PrettyPetalFlowerShop/scripts.inc"
.include "data/maps/Route111_WinstrateFamilysHouse/scripts.inc"
.include "data/maps/Route111_OldLadysRestStop/scripts.inc"
.include "data/maps/Route112_CableCarStation/scripts.inc"
.include "data/maps/MtChimney_CableCarStation/scripts.inc"
.include "data/maps/Route114_FossilManiacsHouse/scripts.inc"
.include "data/maps/Route114_FossilManiacsTunnel/scripts.inc"
.include "data/maps/Route114_LanettesHouse/scripts.inc"
.include "data/maps/Route116_TunnelersRestHouse/scripts.inc"
.include "data/maps/Route117_PokemonDayCare/scripts.inc"
.include "data/maps/Route121_SafariZoneEntrance/scripts.inc"
.include "data/maps/MeteorFalls_1F_1R/scripts.inc"
.include "data/maps/MeteorFalls_1F_2R/scripts.inc"
.include "data/maps/MeteorFalls_B1F_1R/scripts.inc"
.include "data/maps/MeteorFalls_B1F_2R/scripts.inc"
.include "data/maps/RusturfTunnel/scripts.inc"
.include "data/maps/Underwater_SootopolisCity/scripts.inc"
.include "data/maps/DesertRuins/scripts.inc"
.include "data/maps/GraniteCave_1F/scripts.inc"
.include "data/maps/GraniteCave_B1F/scripts.inc"
.include "data/maps/GraniteCave_B2F/scripts.inc"
.include "data/maps/GraniteCave_StevensRoom/scripts.inc"
.include "data/maps/PetalburgWoods/scripts.inc"
.include "data/maps/MtChimney/scripts.inc"
.include "data/maps/JaggedPass/scripts.inc"
.include "data/maps/FieryPath/scripts.inc"
.include "data/maps/MtPyre_1F/scripts.inc"
.include "data/maps/MtPyre_2F/scripts.inc"
.include "data/maps/MtPyre_3F/scripts.inc"
.include "data/maps/MtPyre_4F/scripts.inc"
.include "data/maps/MtPyre_5F/scripts.inc"
.include "data/maps/MtPyre_6F/scripts.inc"
.include "data/maps/MtPyre_Exterior/scripts.inc"
.include "data/maps/MtPyre_Summit/scripts.inc"
.include "data/maps/AquaHideout_1F/scripts.inc"
.include "data/maps/AquaHideout_B1F/scripts.inc"
.include "data/maps/AquaHideout_B2F/scripts.inc"
.include "data/maps/Underwater_SeafloorCavern/scripts.inc"
.include "data/maps/SeafloorCavern_Entrance/scripts.inc"
.include "data/maps/SeafloorCavern_Room1/scripts.inc"
.include "data/maps/SeafloorCavern_Room2/scripts.inc"
.include "data/maps/SeafloorCavern_Room3/scripts.inc"
.include "data/maps/SeafloorCavern_Room4/scripts.inc"
.include "data/maps/SeafloorCavern_Room5/scripts.inc"
.include "data/maps/SeafloorCavern_Room6/scripts.inc"
.include "data/maps/SeafloorCavern_Room7/scripts.inc"
.include "data/maps/SeafloorCavern_Room8/scripts.inc"
.include "data/maps/SeafloorCavern_Room9/scripts.inc"
.include "data/maps/CaveOfOrigin_Entrance/scripts.inc"
.include "data/maps/CaveOfOrigin_1F/scripts.inc"
.include "data/maps/CaveOfOrigin_UnusedRubySapphireMap1/scripts.inc"
.include "data/maps/CaveOfOrigin_UnusedRubySapphireMap2/scripts.inc"
.include "data/maps/CaveOfOrigin_UnusedRubySapphireMap3/scripts.inc"
.include "data/maps/CaveOfOrigin_B1F/scripts.inc"
.include "data/maps/VictoryRoad_1F/scripts.inc"
.include "data/maps/VictoryRoad_B1F/scripts.inc"
.include "data/maps/VictoryRoad_B2F/scripts.inc"
.include "data/maps/ShoalCave_LowTideEntranceRoom/scripts.inc"
.include "data/maps/ShoalCave_LowTideInnerRoom/scripts.inc"
.include "data/maps/ShoalCave_LowTideStairsRoom/scripts.inc"
.include "data/maps/ShoalCave_LowTideLowerRoom/scripts.inc"
.include "data/maps/ShoalCave_HighTideEntranceRoom/scripts.inc"
.include "data/maps/ShoalCave_HighTideInnerRoom/scripts.inc"
.include "data/maps/NewMauville_Entrance/scripts.inc"
.include "data/maps/NewMauville_Inside/scripts.inc"
.include "data/maps/AbandonedShip_Deck/scripts.inc"
.include "data/maps/AbandonedShip_Corridors_1F/scripts.inc"
.include "data/maps/AbandonedShip_Rooms_1F/scripts.inc"
.include "data/maps/AbandonedShip_Corridors_B1F/scripts.inc"
.include "data/maps/AbandonedShip_Rooms_B1F/scripts.inc"
.include "data/maps/AbandonedShip_Rooms2_B1F/scripts.inc"
.include "data/maps/AbandonedShip_Underwater1/scripts.inc"
.include "data/maps/AbandonedShip_Room_B1F/scripts.inc"
.include "data/maps/AbandonedShip_Rooms2_1F/scripts.inc"
.include "data/maps/AbandonedShip_CaptainsOffice/scripts.inc"
.include "data/maps/AbandonedShip_Underwater2/scripts.inc"
.include "data/maps/AbandonedShip_HiddenFloorCorridors/scripts.inc"
.include "data/maps/AbandonedShip_HiddenFloorRooms/scripts.inc"
.include "data/maps/IslandCave/scripts.inc"
.include "data/maps/AncientTomb/scripts.inc"
.include "data/maps/Underwater_Route134/scripts.inc"
.include "data/maps/Underwater_SealedChamber/scripts.inc"
.include "data/maps/SealedChamber_OuterRoom/scripts.inc"
.include "data/maps/SealedChamber_InnerRoom/scripts.inc"
.include "data/maps/ScorchedSlab/scripts.inc"
.include "data/maps/AquaHideout_UnusedRubyMap1/scripts.inc"
.include "data/maps/AquaHideout_UnusedRubyMap2/scripts.inc"
.include "data/maps/AquaHideout_UnusedRubyMap3/scripts.inc"
.include "data/maps/SkyPillar_Entrance/scripts.inc"
.include "data/maps/SkyPillar_Outside/scripts.inc"
.include "data/maps/SkyPillar_1F/scripts.inc"
.include "data/maps/SkyPillar_2F/scripts.inc"
.include "data/maps/SkyPillar_3F/scripts.inc"
.include "data/maps/SkyPillar_4F/scripts.inc"
.include "data/maps/ShoalCave_LowTideIceRoom/scripts.inc"
.include "data/maps/SkyPillar_5F/scripts.inc"
.include "data/maps/SkyPillar_Top/scripts.inc"
.include "data/maps/MagmaHideout_1F/scripts.inc"
.include "data/maps/MagmaHideout_2F_1R/scripts.inc"
.include "data/maps/MagmaHideout_2F_2R/scripts.inc"
.include "data/maps/MagmaHideout_3F_1R/scripts.inc"
.include "data/maps/MagmaHideout_3F_2R/scripts.inc"
.include "data/maps/MagmaHideout_4F/scripts.inc"
.include "data/maps/MagmaHideout_3F_3R/scripts.inc"
.include "data/maps/MagmaHideout_2F_3R/scripts.inc"
.include "data/maps/MirageTower_1F/scripts.inc"
.include "data/maps/MirageTower_2F/scripts.inc"
.include "data/maps/MirageTower_3F/scripts.inc"
.include "data/maps/MirageTower_4F/scripts.inc"
.include "data/maps/DesertUnderpass/scripts.inc"
.include "data/maps/ArtisanCave_B1F/scripts.inc"
.include "data/maps/ArtisanCave_1F/scripts.inc"
.include "data/maps/Underwater_MarineCave/scripts.inc"
.include "data/maps/MarineCave_Entrance/scripts.inc"
.include "data/maps/MarineCave_End/scripts.inc"
.include "data/maps/TerraCave_Entrance/scripts.inc"
.include "data/maps/TerraCave_End/scripts.inc"
.include "data/maps/AlteringCave/scripts.inc"
.include "data/maps/MeteorFalls_StevensCave/scripts.inc"
.include "data/scripts/shared_secret_base.inc"
2020-01-14 03:13:33 +01:00
.include "data/maps/BattleColosseum_2P/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/TradeCenter/scripts.inc"
.include "data/maps/RecordCorner/scripts.inc"
2020-01-14 03:13:33 +01:00
.include "data/maps/BattleColosseum_4P/scripts.inc"
2019-11-11 03:54:00 +01:00
.include "data/maps/ContestHall/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/InsideOfTruck/scripts.inc"
.include "data/maps/SSTidalCorridor/scripts.inc"
.include "data/maps/SSTidalLowerDeck/scripts.inc"
.include "data/maps/SSTidalRooms/scripts.inc"
.include "data/maps/BattlePyramidSquare01/scripts.inc"
.include "data/maps/UnionRoom/scripts.inc"
.include "data/maps/SafariZone_Northwest/scripts.inc"
.include "data/maps/SafariZone_North/scripts.inc"
.include "data/maps/SafariZone_Southwest/scripts.inc"
.include "data/maps/SafariZone_South/scripts.inc"
.include "data/maps/BattleFrontier_OutsideWest/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerElevator/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc"
.include "data/maps/SouthernIsland_Exterior/scripts.inc"
.include "data/maps/SouthernIsland_Interior/scripts.inc"
.include "data/maps/SafariZone_RestHouse/scripts.inc"
.include "data/maps/SafariZone_Northeast/scripts.inc"
.include "data/maps/SafariZone_Southeast/scripts.inc"
.include "data/maps/BattleFrontier_OutsideEast/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerMultiPartnerRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattleTowerMultiCorridor/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattleDomeLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattleDomeCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattleDomePreBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattlePalaceLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattlePalaceCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc"
2019-12-11 09:28:55 +01:00
.include "data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/BattleFrontier_BattlePyramidTop/scripts.inc"
.include "data/maps/BattleFrontier_BattleArenaLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattleArenaCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattleArenaBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattleFactoryLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattleFactoryPreBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeLobby/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeRoomNormal/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeRoomFinal/scripts.inc"
.include "data/maps/BattleFrontier_BattlePikeRoomWildMons/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/BattleFrontier_RankingHall/scripts.inc"
.include "data/maps/BattleFrontier_Lounge1/scripts.inc"
.include "data/maps/BattleFrontier_ExchangeServiceCorner/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/BattleFrontier_Lounge2/scripts.inc"
.include "data/maps/BattleFrontier_Lounge3/scripts.inc"
.include "data/maps/BattleFrontier_Lounge4/scripts.inc"
.include "data/maps/BattleFrontier_ScottsHouse/scripts.inc"
.include "data/maps/BattleFrontier_Lounge5/scripts.inc"
.include "data/maps/BattleFrontier_Lounge6/scripts.inc"
.include "data/maps/BattleFrontier_Lounge7/scripts.inc"
.include "data/maps/BattleFrontier_ReceptionGate/scripts.inc"
.include "data/maps/BattleFrontier_Lounge8/scripts.inc"
.include "data/maps/BattleFrontier_Lounge9/scripts.inc"
.include "data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc"
.include "data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc"
.include "data/maps/BattleFrontier_Mart/scripts.inc"
.include "data/maps/FarawayIsland_Entrance/scripts.inc"
.include "data/maps/FarawayIsland_Interior/scripts.inc"
.include "data/maps/BirthIsland_Exterior/scripts.inc"
.include "data/maps/BirthIsland_Harbor/scripts.inc"
.include "data/maps/TrainerHill_Entrance/scripts.inc"
.include "data/maps/TrainerHill_1F/scripts.inc"
.include "data/maps/TrainerHill_2F/scripts.inc"
.include "data/maps/TrainerHill_3F/scripts.inc"
.include "data/maps/TrainerHill_4F/scripts.inc"
.include "data/maps/TrainerHill_Roof/scripts.inc"
.include "data/maps/NavelRock_Exterior/scripts.inc"
.include "data/maps/NavelRock_Harbor/scripts.inc"
.include "data/maps/NavelRock_Entrance/scripts.inc"
.include "data/maps/NavelRock_B1F/scripts.inc"
.include "data/maps/NavelRock_Fork/scripts.inc"
.include "data/maps/NavelRock_Up1/scripts.inc"
.include "data/maps/NavelRock_Up2/scripts.inc"
.include "data/maps/NavelRock_Up3/scripts.inc"
.include "data/maps/NavelRock_Up4/scripts.inc"
.include "data/maps/NavelRock_Top/scripts.inc"
.include "data/maps/NavelRock_Down01/scripts.inc"
.include "data/maps/NavelRock_Down02/scripts.inc"
.include "data/maps/NavelRock_Down03/scripts.inc"
.include "data/maps/NavelRock_Down04/scripts.inc"
.include "data/maps/NavelRock_Down05/scripts.inc"
.include "data/maps/NavelRock_Down06/scripts.inc"
.include "data/maps/NavelRock_Down07/scripts.inc"
.include "data/maps/NavelRock_Down08/scripts.inc"
.include "data/maps/NavelRock_Down09/scripts.inc"
.include "data/maps/NavelRock_Down10/scripts.inc"
.include "data/maps/NavelRock_Down11/scripts.inc"
.include "data/maps/NavelRock_Bottom/scripts.inc"
.include "data/maps/TrainerHill_Elevator/scripts.inc"
.include "data/maps/Route104_Prototype/scripts.inc"
.include "data/maps/Route104_PrototypePrettyPetalFlowerShop/scripts.inc"
.include "data/maps/Route109_SeashoreHouse/scripts.inc"
.include "data/maps/Route110_TrickHouseEntrance/scripts.inc"
.include "data/maps/Route110_TrickHouseEnd/scripts.inc"
.include "data/maps/Route110_TrickHouseCorridor/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle1/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle2/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle3/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle4/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle5/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle6/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle7/scripts.inc"
.include "data/maps/Route110_TrickHousePuzzle8/scripts.inc"
2018-06-21 00:42:01 +02:00
.include "data/maps/Route110_SeasideCyclingRoadNorthEntrance/scripts.inc"
.include "data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc"
2018-06-21 00:41:41 +02:00
.include "data/maps/Route113_GlassWorkshop/scripts.inc"
.include "data/maps/Route123_BerryMastersHouse/scripts.inc"
.include "data/maps/Route119_WeatherInstitute_1F/scripts.inc"
.include "data/maps/Route119_WeatherInstitute_2F/scripts.inc"
.include "data/maps/Route119_House/scripts.inc"
.include "data/maps/Route124_DivingTreasureHuntersHouse/scripts.inc"
.include "data/scripts/std_msgbox.inc"
2018-12-07 23:50:56 +01:00
.include "data/scripts/trainer_battle.inc"
.include "data/scripts/new_game.inc"
2019-11-07 19:28:33 +01:00
.include "data/scripts/hall_of_fame.inc"
2015-10-10 14:20:38 +02:00
2018-02-12 15:01:43 +01:00
EventScript_WhiteOut:: @ 8271857
call EverGrandeCity_HallOfFame_EventScript_ResetEliteFour
2019-02-18 07:03:44 +01:00
goto EventScript_ResetMrBriney
2017-11-11 01:12:18 +01:00
end
2015-10-10 14:20:38 +02:00
2019-02-27 04:11:43 +01:00
EventScript_ResetMrBriney:: @ 8271862
compare VAR_BRINEY_LOCATION, 1
goto_if_eq EventScript_MoveMrBrineyToHouse
compare VAR_BRINEY_LOCATION, 2
goto_if_eq EventScript_MoveMrBrineyToDewford
compare VAR_BRINEY_LOCATION, 3
2019-10-26 18:16:04 +02:00
goto_if_eq EventScript_MoveMrBrineyToRoute109
2017-11-11 01:12:18 +01:00
end
EventScript_MoveMrBrineyToHouse:: @ 8271884
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
2019-10-26 18:16:04 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
clearflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
clearflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
clearflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
2017-11-11 01:12:18 +01:00
end
2017-11-10 02:21:31 +01:00
EventScript_MoveMrBrineyToDewford:: @ 827189A
2019-10-26 18:16:04 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
setflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
2017-11-11 01:12:18 +01:00
end
2019-10-26 18:16:04 +02:00
EventScript_MoveMrBrineyToRoute109:: @ 82718B3
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
setflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
2019-10-26 18:16:04 +02:00
clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY
2018-10-19 19:04:47 +02:00
clearflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
2017-11-11 01:12:18 +01:00
end
2017-11-10 02:21:31 +01:00
EverGrandeCity_HallOfFame_EventScript_ResetEliteFour:: @ 82718CC
2019-04-16 16:40:32 +02:00
clearflag FLAG_DEFEATED_ELITE_4_SIDNEY
2019-01-02 22:12:43 +01:00
clearflag FLAG_DEFEATED_ELITE_4_PHOEBE
clearflag FLAG_DEFEATED_ELITE_4_GLACIA
clearflag FLAG_DEFEATED_ELITE_4_DRAKE
setvar VAR_ELITE_4_STATE, 0
2017-11-10 02:21:31 +01:00
return
2019-08-15 05:38:42 +02:00
Common_EventScript_UpdateBrineyLocation:: @ 82718DE
2019-02-23 02:21:26 +01:00
goto_if_unset FLAG_RECEIVED_POKENAV, Common_EventScript_NopReturn
goto_if_set FLAG_DEFEATED_PETALBURG_GYM, Common_EventScript_NopReturn
2019-08-15 05:38:42 +02:00
goto_if_unset FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT, EventScript_SetBrineyLocation_House
goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, EventScript_SetBrineyLocation_Dewford
2019-10-26 18:16:04 +02:00
goto_if_unset FLAG_HIDE_ROUTE_109_MR_BRINEY, EventScript_SetBrineyLocation_Route109
2017-11-10 02:21:31 +01:00
return
2019-08-15 05:38:42 +02:00
EventScript_SetBrineyLocation_House:: @ 827190C
setvar VAR_BRINEY_LOCATION, 1
2017-11-10 02:21:31 +01:00
return
2019-08-15 05:38:42 +02:00
EventScript_SetBrineyLocation_Dewford:: @ 8271912
setvar VAR_BRINEY_LOCATION, 2
2017-11-10 02:21:31 +01:00
return
2019-10-26 18:16:04 +02:00
EventScript_SetBrineyLocation_Route109:: @ 8271918
setvar VAR_BRINEY_LOCATION, 3
2017-11-10 02:21:31 +01:00
return
.include "data/scripts/pkmn_center_nurse.inc"
.include "data/scripts/obtain_item.inc"
.include "data/scripts/record_mix.inc"
.include "data/scripts/pc.inc"
2017-11-10 02:21:31 +01:00
@ scripts/notices.inc? signs.inc? See comment about text/notices.inc
Common_EventScript_ShowPokemartSign:: @ 8271E6A
msgbox gText_PokemartSign, MSGBOX_SIGN
end
Common_EventScript_ShowPokemonCenterSign:: @ 8271E73
msgbox gText_PokemonCenterSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2019-02-27 19:45:31 +01:00
Common_ShowEasyChatScreen:: @ 8271E7C
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2019-02-27 19:45:31 +01:00
special ShowEasyChatScreen
2019-12-15 17:42:50 +01:00
fadescreen FADE_FROM_BLACK
2017-11-10 02:21:31 +01:00
return
2019-10-11 23:25:07 +02:00
Common_EventScript_ReadyPetalburgGymForBattle:: @ 8271E84
2018-10-18 21:28:59 +02:00
clearflag FLAG_HIDE_PETALBURG_GYM_GREETER
2019-01-02 22:12:43 +01:00
setflag FLAG_PETALBURG_MART_EXPANDED_ITEMS
2017-11-10 02:21:31 +01:00
return
2019-11-07 22:36:48 +01:00
Common_EventScript_BufferTrendyPhrase:: @ 8271E8B
dotimebasedevents
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 0
2018-04-16 12:52:13 +02:00
special BufferTrendyPhraseString
2017-11-10 02:21:31 +01:00
return
2019-10-26 18:16:04 +02:00
EventScript_BackupMrBrineyLocation:: @ 8271E95
copyvar VAR_0x8008, VAR_BRINEY_LOCATION
setvar VAR_BRINEY_LOCATION, 0
2017-11-10 02:21:31 +01:00
return
2015-10-10 14:20:38 +02:00
.include "data/scripts/surf.inc"
.include "data/scripts/rival_graphics.inc"
.include "data/scripts/set_gym_trainers.inc"
2017-11-10 02:21:31 +01:00
Common_EventScript_ShowBagIsFull:: @ 8272054
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Common_EventScript_BagIsFull:: @ 827205E
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
Common_EventScript_ShowNoRoomForDecor:: @ 8272067
msgbox gText_NoRoomLeftForAnother, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Common_EventScript_NoRoomForDecor:: @ 8272071
msgbox gText_NoRoomLeftForAnother, MSGBOX_DEFAULT
return
2019-12-02 01:19:47 +01:00
Common_EventScript_SetAbnormalWeather:: @ 827207A
setweather WEATHER_ABNORMAL
return
Common_EventScript_PlayGymBadgeFanfare:: @ 827207E
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_BACHI
2017-11-10 02:21:31 +01:00
waitfanfare
return
Common_EventScript_OutOfCenterPartyHeal:: @ 8272083
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_ASA
2017-11-10 02:21:31 +01:00
waitfanfare
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2019-12-15 17:42:50 +01:00
fadescreen FADE_FROM_BLACK
2017-11-10 02:21:31 +01:00
return
2015-10-10 14:20:38 +02:00
2018-10-17 04:47:08 +02:00
EventScript_RegionMap:: @ 827208F
2017-11-11 01:12:18 +01:00
lockall
msgbox Common_Text_LookCloserAtMap, MSGBOX_DEFAULT
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
special FieldShowRegionMap
2017-11-11 01:12:18 +01:00
waitstate
releaseall
end
2017-11-10 02:21:31 +01:00
2019-08-15 05:38:42 +02:00
Common_EventScript_PlayBrineysBoatMusic:: @ 82720A0
setflag FLAG_DONT_TRANSITION_MUSIC
2017-12-22 08:46:19 +01:00
playbgm MUS_M_BOAT, 0
2017-11-10 02:21:31 +01:00
return
2019-08-15 05:38:42 +02:00
Common_EventScript_StopBrineysBoatMusic:: @ 82720A8
clearflag FLAG_DONT_TRANSITION_MUSIC
2017-11-10 02:21:31 +01:00
fadedefaultbgm
return
2019-09-27 20:20:51 +02:00
.include "data/scripts/prof_birch.inc"
2017-11-10 02:21:31 +01:00
@ Below could be split as ferry.inc aside from the Rusturf tunnel script
Common_EventScript_FerryDepart:: @ 82721E2
2017-11-10 02:21:31 +01:00
delay 60
applymovement VAR_0x8004, Movement_FerryDepart
2017-11-10 02:21:31 +01:00
waitmovement 0
return
Movement_FerryDepart: @ 82721F0
walk_slow_right
walk_slow_right
walk_slow_right
walk_right
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
EventScript_HideMrBriney:: @ 82721F8
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
2019-10-26 18:16:04 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
setflag FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY
setflag FLAG_HIDE_BRINEYS_HOUSE_PEEKO
setvar VAR_BRINEY_LOCATION, 0
2017-11-10 02:21:31 +01:00
return
2019-11-07 02:38:53 +01:00
RusturfTunnel_EventScript_SetRusturfTunnelOpen:: @ 8272216
removeobject LOCALID_WANDAS_BF
removeobject LOCALID_WANDA
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDAS_BOYFRIEND
clearflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WANDA
setvar VAR_RUSTURF_TUNNEL_STATE, 6
setflag FLAG_RUSTURF_TUNNEL_OPENED
2017-11-10 02:21:31 +01:00
return
2019-10-31 22:00:37 +01:00
EventScript_UnusedBoardFerry:: @ 827222B
2017-11-11 01:12:18 +01:00
delay 30
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-11 01:12:18 +01:00
waitmovement 0
showobjectat OBJ_EVENT_ID_PLAYER, 0
2017-11-11 01:12:18 +01:00
delay 30
applymovement OBJ_EVENT_ID_PLAYER, Movement_UnusedBoardFerry
2017-11-11 01:12:18 +01:00
waitmovement 0
delay 30
return
2019-10-31 22:00:37 +01:00
Movement_UnusedBoardFerry: @ 827224E
walk_up
2017-11-11 01:12:18 +01:00
step_end
2017-11-10 02:21:31 +01:00
2019-10-31 22:00:37 +01:00
Common_EventScript_FerryDepartIsland:: @ 8272250
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_SOUTH
2019-10-31 22:00:37 +01:00
call_if_eq Ferry_EventScript_DepartIslandSouth
2019-10-07 06:14:10 +02:00
compare VAR_FACING, DIR_WEST
2019-10-31 22:00:37 +01:00
call_if_eq Ferry_EventScript_DepartIslandWest
2017-11-10 02:21:31 +01:00
delay 30
hideobjectat OBJ_EVENT_ID_PLAYER, 0
call Common_EventScript_FerryDepart
2017-11-10 02:21:31 +01:00
return
.include "data/scripts/cave_of_origin.inc"
.include "data/scripts/kecleon.inc"
2017-11-10 02:21:31 +01:00
2019-08-15 05:38:42 +02:00
Common_EventScript_NameReceivedPartyMon:: @ 82723DD
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2017-11-10 02:21:31 +01:00
special ChangePokemonNickname
waitstate
return
2019-08-15 05:38:42 +02:00
Common_EventScript_PlayerHandedOverTheItem:: @ 82723E4
2017-11-10 02:21:31 +01:00
bufferitemname 0, VAR_0x8004
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_WAZA
2019-08-15 05:38:42 +02:00
message gText_PlayerHandedOverTheItem
2017-11-10 02:21:31 +01:00
waitmessage
waitfanfare
removeitem VAR_0x8004
2017-11-10 02:21:31 +01:00
return
.include "data/scripts/elite_four.inc"
.include "data/scripts/movement.inc"
.include "data/scripts/check_furniture.inc"
.include "data/text/record_mix.inc"
.include "data/text/pc.inc"
.include "data/text/pkmn_center_nurse.inc"
2019-10-22 00:15:50 +02:00
.include "data/text/mart_clerk.inc"
.include "data/text/obtain_item.inc"
2017-09-19 21:12:51 +02:00
@ The below and surf.inc could be split into some text/notices.inc
gText_PokemartSign:: @ 8272B6A
2019-08-15 05:38:42 +02:00
.string "Selected items for your convenience!\n"
.string "POKéMON MART$"
2017-09-19 21:12:51 +02:00
gText_PokemonCenterSign:: @ 8272B9E
2019-08-15 05:38:42 +02:00
.string "Rejuvenate your tired partners!\n"
.string "POKéMON CENTER$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_MomOrDadMightLikeThisProgram:: @ 8272BCF
.string "{STR_VAR_1} might like this program.\n"
.string " \p"
.string "Better get going!$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_WhichFloorWouldYouLike:: @ 8272C1D
.string "Welcome to LILYCOVE DEPARTMENT STORE.\p"
.string "Which floor would you like?$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_SandstormIsVicious:: @ 8272C5F
.string "The sandstorm is vicious.\n"
.string "It's impossible to keep going.$"
2017-09-19 21:12:51 +02:00
gText_SelectWithoutRegisteredItem:: @ 8272C98
2019-08-15 05:38:42 +02:00
.string "An item in the BAG can be\n"
.string "registered to SELECT for easy use.$"
gText_PokemonTrainerSchoolEmail:: @ 8272CD5
.string "There's an e-mail from POKéMON TRAINER\n"
.string "SCHOOL.\p"
.string " \p"
.string "A POKéMON may learn up to four moves.\p"
.string "A TRAINER's expertise is tested on the\n"
.string "move sets chosen for POKéMON.\p"
.string " $"
2017-09-19 21:12:51 +02:00
gText_PlayerHouseBootPC:: @ 8272D87
2017-09-19 21:12:51 +02:00
.string "{PLAYER} booted up the PC.$"
2019-08-15 05:38:42 +02:00
gText_PokeblockLinkCanceled:: @ 8272D9C
2017-09-19 21:12:51 +02:00
.string "The link was canceled.$"
2019-08-15 05:38:42 +02:00
gText_UnusedNicknameReceivedPokemon:: @ 8272DB3
.string "Want to give a nickname to\n"
.string "the {STR_VAR_2} you received?$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_PlayerWhitedOut:: @ 8272DE3
.string "{PLAYER} is out of usable\n"
.string "POKéMON!\p{PLAYER} whited out!$"
2017-09-19 21:12:51 +02:00
gText_RegisteredTrainerinPokeNav:: @ 8272E0F
2019-08-15 05:38:42 +02:00
.string "Registered {STR_VAR_1} {STR_VAR_2}\n"
.string "in the POKéNAV.$"
gText_ComeBackWithSecretPower:: @ 8272E30
.string "Do you know the TM SECRET POWER?\p"
.string "Our group, we love the TM SECRET\n"
.string "POWER.\p"
.string "One of our members will give it to you.\n"
.string "Come back and show me if you get it.\p"
.string "We'll accept you as a member and sell\n"
.string "you good stuff in secrecy.$"
2017-09-19 21:12:51 +02:00
gText_PokerusExplanation:: @ 8272F07
2019-08-15 05:38:42 +02:00
.string "Your POKéMON may be infected with\n"
.string "POKéRUS.\p"
.string "Little is known about the POKéRUS\n"
.string "except that they are microscopic life-\l"
.string "forms that attach to POKéMON.\p"
.string "While infected, POKéMON are said to\n"
.string "grow exceptionally well.$"
2017-09-19 21:12:51 +02:00
.include "data/text/surf.inc"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_DoorOpenedFarAway:: @ 827301B
.string "It sounded as if a door opened\n"
.string "somewhere far away.$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_BigHoleInTheWall:: @ 827304E
2017-09-19 21:12:51 +02:00
.string "There is a big hole in the wall.$"
2019-08-15 05:38:42 +02:00
gText_SorryWirelessClubAdjustments:: @ 827306F
.string "I'm terribly sorry.\n"
.string "The POKéMON WIRELESS CLUB is\l"
.string "undergoing adjustments now.$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_UndergoingAdjustments:: @ 82730BC
.string "It appears to be undergoing\n"
.string "adjustments$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
@ Unused
gText_SorryTradeCenterInspections:: @ 82730E5
.string "I'm terribly sorry. The TRADE CENTER\n"
.string "is undergoing inspections.$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
@ Unused
gText_SorryRecordCornerPreparation:: @ 8273125
.string "I'm terribly sorry. The RECORD CORNER\n"
.string "is under preparation.$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_PlayerHandedOverTheItem:: @ 8273161
.string "{PLAYER} handed over the\n"
.string "{STR_VAR_1}.$"
2017-09-19 21:12:51 +02:00
2019-08-15 05:38:42 +02:00
gText_ThankYouForAccessingMysteryGift:: @ 8273178
.string "Thank you for accessing the\n"
.string "MYSTERY GIFT System.$"
2017-09-19 21:12:51 +02:00
2019-10-22 23:56:47 +02:00
gText_PlayerFoundOneTMHM:: @ 82731A9
2019-08-15 05:38:42 +02:00
.string "{PLAYER} found one {STR_VAR_1}\n"
.string "{STR_VAR_2}!$"
2017-09-19 21:12:51 +02:00
gText_Sudowoodo_Attacked:: @ 82731BD
2019-08-15 05:38:42 +02:00
.string "The weird tree doesn't like the\n"
.string "WAILMER PAIL!\p"
.string "The weird tree attacked!$"
2017-09-19 21:12:51 +02:00
gText_LegendaryFlewAway:: @ 8273204
2017-09-19 21:12:51 +02:00
.string "The {STR_VAR_1} flew away!$"
.include "data/text/pc_transfer.inc"
2019-09-27 20:20:51 +02:00
.include "data/text/mevent.inc"
2019-12-02 01:19:47 +01:00
.include "data/text/abnormal_weather.inc"
2015-10-10 14:20:38 +02:00
EventScript_SelectWithoutRegisteredItem:: @ 82736B3
msgbox gText_SelectWithoutRegisteredItem, MSGBOX_SIGN
2017-11-11 01:12:18 +01:00
end
2015-10-10 14:20:38 +02:00
.include "data/scripts/field_poison.inc"
2017-11-10 02:21:31 +01:00
2019-02-23 02:21:26 +01:00
Common_EventScript_NopReturn:: @ 827374E
2017-11-10 02:21:31 +01:00
return
2019-08-15 05:38:42 +02:00
@ Unused
EventScript_CableClub_SetVarResult1:: @ 827374F
2017-11-11 01:12:18 +01:00
setvar VAR_RESULT, 1
return
2017-11-10 02:21:31 +01:00
2019-08-15 05:38:42 +02:00
EventScript_CableClub_SetVarResult0:: @ 8273755
2017-11-10 02:21:31 +01:00
setvar VAR_RESULT, 0
return
2019-10-11 10:14:09 +02:00
Common_EventScript_UnionRoomAttendant:: @ 827375B
call CableClub_EventScript_UnionRoomAttendant
2017-11-10 02:21:31 +01:00
end
2019-10-11 10:14:09 +02:00
Common_EventScript_WirelessClubAttendant:: @ 8273761
call CableClub_EventScript_WirelessClubAttendant
2017-11-10 02:21:31 +01:00
end
2019-10-11 10:14:09 +02:00
Common_EventScript_DirectCornerAttendant:: @ 8273767
call CableClub_EventScript_DirectCornerAttendant
2017-11-10 02:21:31 +01:00
end
2019-08-15 05:38:42 +02:00
Common_EventScript_RemoveStaticPokemon:: @ 827376D
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_TO_BLACK
2017-11-10 02:21:31 +01:00
removeobject VAR_LAST_TALKED
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_FROM_BLACK
2017-11-10 02:21:31 +01:00
release
end
2019-08-15 05:38:42 +02:00
Common_EventScript_LegendaryFlewAway:: @ 8273776
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_TO_BLACK
2017-11-10 02:21:31 +01:00
removeobject VAR_LAST_TALKED
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_FROM_BLACK
2017-11-10 02:21:31 +01:00
bufferspeciesname 0, VAR_0x8004
msgbox gText_LegendaryFlewAway, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
.include "data/scripts/pc_transfer.inc"
2019-09-27 20:20:51 +02:00
.include "data/scripts/mevent.inc"
2019-12-02 01:19:47 +01:00
.include "data/scripts/abnormal_weather.inc"
.include "data/scripts/trainer_script.inc"
.include "data/scripts/berry_tree.inc"
.include "data/scripts/secret_base.inc"
.include "data/scripts/cable_club.inc"
2019-10-11 16:22:21 +02:00
.include "data/text/cable_club.inc"
.include "data/scripts/contest_hall.inc"
.include "data/text/contest_strings.inc"
2019-09-27 20:20:51 +02:00
.include "data/text/contest_link.inc"
.include "data/text/contest_painting.inc"
.include "data/text/trick_house_mechadolls.inc"
.include "data/scripts/tv.inc"
.include "data/text/tv.inc"
2019-09-27 20:20:51 +02:00
.include "data/scripts/interview.inc"
.include "data/scripts/gabby_and_ty.inc"
.include "data/text/pokemon_news.inc"
.include "data/scripts/mauville_man.inc"
.include "data/scripts/field_move_scripts.inc"
.include "data/scripts/item_ball_scripts.inc"
.include "data/scripts/mystery_event_club.inc"
.include "data/scripts/day_care.inc"
.include "data/scripts/flash.inc"
.include "data/scripts/players_house.inc"
2019-11-10 16:56:35 +01:00
.include "data/scripts/berry_blender.inc"
2019-09-27 20:20:51 +02:00
.include "data/text/mauville_man.inc"
.include "data/text/trainers.inc"
.include "data/scripts/repel.inc"
.include "data/scripts/safari_zone.inc"
2019-09-27 18:22:58 +02:00
.include "data/scripts/roulette.inc"
.include "data/text/pokedex_rating.inc"
.include "data/text/lottery_corner.inc"
.include "data/text/event_ticket_1.inc"
.include "data/text/braille.inc"
.include "data/text/berries.inc"
.include "data/text/shoal_cave.inc"
.include "data/text/check_furniture.inc"
.include "data/scripts/cave_hole.inc"
.include "data/scripts/lilycove_lady.inc"
2019-01-03 02:07:47 +01:00
.include "data/text/match_call.inc"
2018-10-14 11:37:44 +02:00
.include "data/scripts/apprentice.inc"
2019-11-15 00:56:18 +01:00
.include "data/text/apprentice.inc"
2019-09-27 18:22:58 +02:00
.include "data/text/battle_dome.inc"
.include "data/scripts/battle_pike.inc"
2019-11-11 03:54:00 +01:00
.include "data/text/blend_master.inc"
2019-09-27 18:22:58 +02:00
.include "data/text/battle_tent.inc"
.include "data/text/event_ticket_2.inc"
2019-09-27 18:22:58 +02:00
.include "data/text/move_tutors.inc"
.include "data/scripts/move_tutors.inc"
.include "data/scripts/trainer_hill.inc"
.include "data/scripts/test_signpost.inc"
.include "data/text/frontier_brain.inc"
.include "data/text/save.inc"
.include "data/text/birch_speech.inc"