Document Trainer Tower scripts

This commit is contained in:
GriffinR
2020-01-23 14:46:03 -05:00
parent e97d3532d4
commit ef1f9ead0b
123 changed files with 2099 additions and 1959 deletions
+14 -13
View File
@@ -17,6 +17,7 @@
#include "constants/spawn_points.h"
#include "constants/field_effects.h"
#include "constants/trainers.h"
#include "constants/trainer_tower.h"
#include "constants/object_events.h"
#include "constants/fame_checker.h"
#include "constants/seagallop.h"
@@ -208,17 +209,17 @@ gStdScriptsEnd::
.include "data/maps/SixIsland_PatternBush/scripts.inc"
.include "data/maps/SixIsland_AlteringCave/scripts.inc"
.include "data/maps/NavelRock_Exterior/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_1F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_2F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_3F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_4F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_5F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_6F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_7F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_8F/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_Roof/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_Lobby/scripts.inc"
.include "data/maps/SevenIsland_TrainerTower_Elevator/scripts.inc"
.include "data/maps/TrainerTower_1F/scripts.inc"
.include "data/maps/TrainerTower_2F/scripts.inc"
.include "data/maps/TrainerTower_3F/scripts.inc"
.include "data/maps/TrainerTower_4F/scripts.inc"
.include "data/maps/TrainerTower_5F/scripts.inc"
.include "data/maps/TrainerTower_6F/scripts.inc"
.include "data/maps/TrainerTower_7F/scripts.inc"
.include "data/maps/TrainerTower_8F/scripts.inc"
.include "data/maps/TrainerTower_Roof/scripts.inc"
.include "data/maps/TrainerTower_Lobby/scripts.inc"
.include "data/maps/TrainerTower_Elevator/scripts.inc"
.include "data/maps/FiveIsland_LostCave_Entrance/scripts.inc"
.include "data/maps/FiveIsland_LostCave_Room1/scripts.inc"
.include "data/maps/FiveIsland_LostCave_Room2/scripts.inc"
@@ -593,7 +594,7 @@ gStdScriptsEnd::
.include "data/maps/FiveIsland_RocketWarehouse/text.inc"
.include "data/maps/SixIsland_DottedHole_SapphireRoom/text.inc"
.include "data/maps/SixIsland_PatternBush/text.inc"
.include "data/maps/SevenIsland_TrainerTower_Lobby/text.inc"
.include "data/maps/TrainerTower_Lobby/text.inc"
.include "data/maps/FiveIsland_LostCave_Room1/text.inc"
.include "data/maps/FiveIsland_LostCave_Room4/text.inc"
.include "data/maps/FiveIsland_LostCave_Room10/text.inc"
@@ -1462,7 +1463,7 @@ Route18_EastEntrance_1F_EventScript_1A77C1:: @ 81A77C1
.include "data/scripts/route23.inc"
EventScript_1A7AB9:: @ 81A7AB9
EventScript_GetElevatorFloor:: @ 81A7AB9
special Special_GetElevatorFloor
return
+108 -108
View File
@@ -3356,136 +3356,136 @@
"blockdata_filepath": "data/layouts/FourIsland_IcefallCave_Back/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
"name": "SevenIsland_TrainerTower_Lobby_Layout",
"id": "LAYOUT_TRAINER_TOWER_LOBBY",
"name": "TrainerTower_Lobby_Layout",
"width": 19,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_Lobby/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_Lobby/map.bin"
"border_filepath": "data/layouts/TrainerTower_Lobby/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_Lobby/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_1F",
"name": "SevenIsland_TrainerTower_1F_Layout",
"id": "LAYOUT_TRAINER_TOWER_1F",
"name": "TrainerTower_1F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_1F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_1F/map.bin"
"border_filepath": "data/layouts/TrainerTower_1F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_1F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_2F",
"name": "SevenIsland_TrainerTower_2F_Layout",
"id": "LAYOUT_TRAINER_TOWER_2F",
"name": "TrainerTower_2F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_2F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_2F/map.bin"
"border_filepath": "data/layouts/TrainerTower_2F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_2F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_3F",
"name": "SevenIsland_TrainerTower_3F_Layout",
"id": "LAYOUT_TRAINER_TOWER_3F",
"name": "TrainerTower_3F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_3F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_3F/map.bin"
"border_filepath": "data/layouts/TrainerTower_3F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_3F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_4F",
"name": "SevenIsland_TrainerTower_4F_Layout",
"id": "LAYOUT_TRAINER_TOWER_4F",
"name": "TrainerTower_4F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_4F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_4F/map.bin"
"border_filepath": "data/layouts/TrainerTower_4F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_4F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_5F",
"name": "SevenIsland_TrainerTower_5F_Layout",
"id": "LAYOUT_TRAINER_TOWER_5F",
"name": "TrainerTower_5F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_5F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_5F/map.bin"
"border_filepath": "data/layouts/TrainerTower_5F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_5F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_6F",
"name": "SevenIsland_TrainerTower_6F_Layout",
"id": "LAYOUT_TRAINER_TOWER_6F",
"name": "TrainerTower_6F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_6F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_6F/map.bin"
"border_filepath": "data/layouts/TrainerTower_6F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_6F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_7F",
"name": "SevenIsland_TrainerTower_7F_Layout",
"id": "LAYOUT_TRAINER_TOWER_7F",
"name": "TrainerTower_7F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_7F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_7F/map.bin"
"border_filepath": "data/layouts/TrainerTower_7F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_7F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_8F",
"name": "SevenIsland_TrainerTower_8F_Layout",
"id": "LAYOUT_TRAINER_TOWER_8F",
"name": "TrainerTower_8F_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_8F/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_8F/map.bin"
"border_filepath": "data/layouts/TrainerTower_8F/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_8F/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_ROOF",
"name": "SevenIsland_TrainerTower_Roof_Layout",
"id": "LAYOUT_TRAINER_TOWER_ROOF",
"name": "TrainerTower_Roof_Layout",
"width": 18,
"height": 16,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_Roof/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_Roof/map.bin"
"border_filepath": "data/layouts/TrainerTower_Roof/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_Roof/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"name": "SevenIsland_TrainerTower_Elevator_Layout",
"id": "LAYOUT_TRAINER_TOWER_ELEVATOR",
"name": "TrainerTower_Elevator_Layout",
"width": 5,
"height": 7,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D4ECC",
"border_filepath": "data/layouts/SevenIsland_TrainerTower_Elevator/border.bin",
"blockdata_filepath": "data/layouts/SevenIsland_TrainerTower_Elevator/map.bin"
"border_filepath": "data/layouts/TrainerTower_Elevator/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_Elevator/map.bin"
},
{
"id": "LAYOUT_CERULEAN_CITY_HOUSE5",
@@ -4184,196 +4184,196 @@
"blockdata_filepath": "data/layouts/NavelRock_Fork/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834BC2C",
"name": "UnusedLayout_834BC2C_Layout",
"id": "LAYOUT_TRAINER_TOWER_1F_DOUBLES",
"name": "TrainerTower_1F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834BC2C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834BC2C/map.bin"
"border_filepath": "data/layouts/TrainerTower_1F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_1F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834BEB4",
"name": "UnusedLayout_834BEB4_Layout",
"id": "LAYOUT_TRAINER_TOWER_2F_DOUBLES",
"name": "TrainerTower_2F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834BEB4/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834BEB4/map.bin"
"border_filepath": "data/layouts/TrainerTower_2F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_2F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834C13C",
"name": "UnusedLayout_834C13C_Layout",
"id": "LAYOUT_TRAINER_TOWER_3F_DOUBLES",
"name": "TrainerTower_3F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834C13C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834C13C/map.bin"
"border_filepath": "data/layouts/TrainerTower_3F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_3F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834C3C4",
"name": "UnusedLayout_834C3C4_Layout",
"id": "LAYOUT_TRAINER_TOWER_4F_DOUBLES",
"name": "TrainerTower_4F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834C3C4/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834C3C4/map.bin"
"border_filepath": "data/layouts/TrainerTower_4F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_4F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834C64C",
"name": "UnusedLayout_834C64C_Layout",
"id": "LAYOUT_TRAINER_TOWER_5F_DOUBLES",
"name": "TrainerTower_5F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834C64C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834C64C/map.bin"
"border_filepath": "data/layouts/TrainerTower_5F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_5F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834C8D4",
"name": "UnusedLayout_834C8D4_Layout",
"id": "LAYOUT_TRAINER_TOWER_6F_DOUBLES",
"name": "TrainerTower_6F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834C8D4/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834C8D4/map.bin"
"border_filepath": "data/layouts/TrainerTower_6F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_6F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834CB5C",
"name": "UnusedLayout_834CB5C_Layout",
"id": "LAYOUT_TRAINER_TOWER_7F_DOUBLES",
"name": "TrainerTower_7F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834CB5C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834CB5C/map.bin"
"border_filepath": "data/layouts/TrainerTower_7F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_7F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834CDE4",
"name": "UnusedLayout_834CDE4_Layout",
"id": "LAYOUT_TRAINER_TOWER_8F_DOUBLES",
"name": "TrainerTower_8F_Doubles_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834CDE4/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834CDE4/map.bin"
"border_filepath": "data/layouts/TrainerTower_8F_Doubles/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_8F_Doubles/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834D06C",
"name": "UnusedLayout_834D06C_Layout",
"id": "LAYOUT_TRAINER_TOWER_1F_KNOCKOUT",
"name": "TrainerTower_1F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834D06C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834D06C/map.bin"
"border_filepath": "data/layouts/TrainerTower_1F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_1F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834D2F4",
"name": "UnusedLayout_834D2F4_Layout",
"id": "LAYOUT_TRAINER_TOWER_2F_KNOCKOUT",
"name": "TrainerTower_2F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834D2F4/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834D2F4/map.bin"
"border_filepath": "data/layouts/TrainerTower_2F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_2F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834D57C",
"name": "UnusedLayout_834D57C_Layout",
"id": "LAYOUT_TRAINER_TOWER_3F_KNOCKOUT",
"name": "TrainerTower_3F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834D57C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834D57C/map.bin"
"border_filepath": "data/layouts/TrainerTower_3F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_3F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834D804",
"name": "UnusedLayout_834D804_Layout",
"id": "LAYOUT_TRAINER_TOWER_4F_KNOCKOUT",
"name": "TrainerTower_4F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834D804/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834D804/map.bin"
"border_filepath": "data/layouts/TrainerTower_4F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_4F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834DA8C",
"name": "UnusedLayout_834DA8C_Layout",
"id": "LAYOUT_TRAINER_TOWER_5F_KNOCKOUT",
"name": "TrainerTower_5F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834DA8C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834DA8C/map.bin"
"border_filepath": "data/layouts/TrainerTower_5F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_5F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834DD14",
"name": "UnusedLayout_834DD14_Layout",
"id": "LAYOUT_TRAINER_TOWER_6F_KNOCKOUT",
"name": "TrainerTower_6F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834DD14/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834DD14/map.bin"
"border_filepath": "data/layouts/TrainerTower_6F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_6F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834DF9C",
"name": "UnusedLayout_834DF9C_Layout",
"id": "LAYOUT_TRAINER_TOWER_7F_KNOCKOUT",
"name": "TrainerTower_7F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834DF9C/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834DF9C/map.bin"
"border_filepath": "data/layouts/TrainerTower_7F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_7F_Knockout/map.bin"
},
{
"id": "LAYOUT_UNUSED_LAYOUT_834E224",
"name": "UnusedLayout_834E224_Layout",
"id": "LAYOUT_TRAINER_TOWER_8F_KNOCKOUT",
"name": "TrainerTower_8F_Knockout_Layout",
"width": 18,
"height": 17,
"border_width": 2,
"border_height": 2,
"primary_tileset": "gTileset_82D4BB4",
"secondary_tileset": "gTileset_82D5094",
"border_filepath": "data/layouts/UnusedLayout_834E224/border.bin",
"blockdata_filepath": "data/layouts/UnusedLayout_834E224/map.bin"
"border_filepath": "data/layouts/TrainerTower_8F_Knockout/border.bin",
"blockdata_filepath": "data/layouts/TrainerTower_8F_Knockout/map.bin"
},
{
"id": "LAYOUT_SEVEN_ISLAND_HOUSE_ROOM1",
@@ -4,7 +4,7 @@ CeladonCity_DepartmentStore_Elevator_MapScripts:: @ 816C152
CeladonCity_DepartmentStore_Elevator_EventScript_16C153:: @ 816C153
lockall
setvar VAR_0x8004, 3
call_if_unset FLAG_TEMP_2, EventScript_1A7AB9
call_if_unset FLAG_TEMP_2, EventScript_GetElevatorFloor
copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR
special Special_DrawElevatorCurrentFloorWindow
message Text_WantWhichFloor
+1 -1
View File
@@ -5,7 +5,7 @@ RocketHideout_Elevator_EventScript_1614D9:: @ 81614D9
lockall
goto_if_unset FLAG_CAN_USE_ROCKET_HIDEOUT_LIFT, EventScript_16161B
setvar VAR_0x8004, 2
call_if_unset FLAG_TEMP_2, EventScript_1A7AB9
call_if_unset FLAG_TEMP_2, EventScript_GetElevatorFloor
copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR
special Special_DrawElevatorCurrentFloorWindow
message Text_WantWhichFloor
+1 -1
View File
@@ -51,7 +51,7 @@
"x": 58,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
"dest_map": "MAP_TRAINER_TOWER_LOBBY",
"dest_warp_id": 1
}
],
@@ -1,60 +0,0 @@
SevenIsland_TrainerTower_1F_MapScripts:: @ 81646B8
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_1F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_1F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_1F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_2F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_4F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_6F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_8F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_5F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_7F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_3F_EventScript_1646C8:: @ 81646C8
SevenIsland_TrainerTower_1F_EventScript_1646C8:: @ 81646C8
call EventScript_1C52F4
end
SevenIsland_TrainerTower_2F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_4F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_6F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_8F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_5F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_7F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_3F_EventScript_1646CE:: @ 81646CE
SevenIsland_TrainerTower_1F_EventScript_1646CE:: @ 81646CE
call EventScript_1C533B
end
SevenIsland_TrainerTower_2F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_4F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_6F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_8F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_5F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_7F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_3F_EventScript_1646D4:: @ 81646D4
SevenIsland_TrainerTower_1F_EventScript_1646D4:: @ 81646D4
call EventScript_1C5382
end
SevenIsland_TrainerTower_2F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_4F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_6F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_8F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_5F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_7F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_3F_EventScript_1646DA:: @ 81646DA
SevenIsland_TrainerTower_1F_EventScript_1646DA:: @ 81646DA
call EventScript_1C538C
end
SevenIsland_TrainerTower_2F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_4F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_6F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_8F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_7F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_Roof_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_5F_EventScript_1646E0:: @ 81646E0
SevenIsland_TrainerTower_3F_EventScript_1646E0:: @ 81646E0
call EventScript_1C53AA
end
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_2F_MapScripts:: @ 81646E6
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_2F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_2F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_2F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_2F_EventScript_1646F6:: @ 81646F6
call EventScript_1C52F4
end
EventScript_1646FC:: @ 81646FC
call EventScript_1C533B
end
EventScript_164702:: @ 8164702
call EventScript_1C5382
end
EventScript_164708:: @ 8164708
call EventScript_1C538C
end
EventScript_16470E:: @ 816470E
call EventScript_1C53AA
end
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_3F_MapScripts:: @ 8164714
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_3F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_3F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_3F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_3F_EventScript_164724:: @ 8164724
call EventScript_1C52F4
end
EventScript_16472A:: @ 816472A
call EventScript_1C533B
end
EventScript_164730:: @ 8164730
call EventScript_1C5382
end
EventScript_164736:: @ 8164736
call EventScript_1C538C
end
EventScript_16473C:: @ 816473C
call EventScript_1C53AA
end
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_4F_MapScripts:: @ 8164742
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_4F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_4F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_4F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_4F_EventScript_164752:: @ 8164752
call EventScript_1C52F4
end
EventScript_164758:: @ 8164758
call EventScript_1C533B
end
EventScript_16475E:: @ 816475E
call EventScript_1C5382
end
EventScript_164764:: @ 8164764
call EventScript_1C538C
end
EventScript_16476A:: @ 816476A
call EventScript_1C53AA
end
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_5F_MapScripts:: @ 8164770
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_5F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_5F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_5F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_5F_EventScript_164780:: @ 8164780
call EventScript_1C52F4
end
EventScript_164786:: @ 8164786
call EventScript_1C533B
end
EventScript_16478C:: @ 816478C
call EventScript_1C5382
end
EventScript_164792:: @ 8164792
call EventScript_1C538C
end
EventScript_164798:: @ 8164798
call EventScript_1C53AA
end
@@ -1,135 +0,0 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_6F",
"name": "SevenIsland_TrainerTower_6F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_6F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1646E0",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1646C8",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1646CE",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1646D4",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1646DA",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_7F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_5F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1C54AF"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1C54B4"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_6F_EventScript_1C54EA"
}
],
"bg_events": []
}
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_6F_MapScripts:: @ 816479E
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_6F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_6F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_6F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_6F_EventScript_1647AE:: @ 81647AE
call EventScript_1C52F4
end
EventScript_1647B4:: @ 81647B4
call EventScript_1C533B
end
EventScript_1647BA:: @ 81647BA
call EventScript_1C5382
end
EventScript_1647C0:: @ 81647C0
call EventScript_1C538C
end
EventScript_1647C6:: @ 81647C6
call EventScript_1C53AA
end
@@ -1,135 +0,0 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_7F",
"name": "SevenIsland_TrainerTower_7F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_7F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1646E0",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1646C8",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1646CE",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1646D4",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1646DA",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_8F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_6F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1C54AF"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1C54B4"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_7F_EventScript_1C54EA"
}
],
"bg_events": []
}
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_7F_MapScripts:: @ 81647CC
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_7F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_7F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_7F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_7F_EventScript_1647DC:: @ 81647DC
call EventScript_1C52F4
end
EventScript_1647E2:: @ 81647E2
call EventScript_1C533B
end
EventScript_1647E8:: @ 81647E8
call EventScript_1C5382
end
EventScript_1647EE:: @ 81647EE
call EventScript_1C538C
end
EventScript_1647F4:: @ 81647F4
call EventScript_1C53AA
end
@@ -1,135 +0,0 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_8F",
"name": "SevenIsland_TrainerTower_8F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_8F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1646E0",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1646C8",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1646CE",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1646D4",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1646DA",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ROOF",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_7F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1C54AF"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1C54B4"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_8F_EventScript_1C54EA"
}
],
"bg_events": []
}
@@ -1,25 +0,0 @@
SevenIsland_TrainerTower_8F_MapScripts:: @ 81647FA
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_8F_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_8F_MapScript2_1C4F62
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_8F_MapScript3_1C5046
.byte 0
SevenIsland_TrainerTower_8F_EventScript_16480A:: @ 816480A
call EventScript_1C52F4
end
EventScript_164810:: @ 8164810
call EventScript_1C533B
end
EventScript_164816:: @ 8164816
call EventScript_1C5382
end
EventScript_16481C:: @ 816481C
call EventScript_1C538C
end
EventScript_164822:: @ 8164822
call EventScript_1C53AA
end
@@ -1,80 +0,0 @@
SevenIsland_TrainerTower_Elevator_MapScripts:: @ 8164AF8
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_Elevator_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_Elevator_MapScript2_1C5046
.byte 0
SevenIsland_TrainerTower_Elevator_EventScript_164B03:: @ 8164B03
lockall
setvar VAR_0x8004, 6
call_if_unset FLAG_TEMP_2, EventScript_1A7AB9
copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR
special Special_DrawElevatorCurrentFloorWindow
message Text_WantWhichFloor
waitmessage
setvar VAR_0x8004, 6
specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos
switch VAR_RESULT
case 0, EventScript_164B46
case 1, EventScript_164B52
end
EventScript_164B46:: @ 8164B46
multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 0, FALSE
goto EventScript_164B5E
end
EventScript_164B52:: @ 8164B52
multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 1, FALSE
goto EventScript_164B5E
end
EventScript_164B5E:: @ 8164B5E
switch VAR_RESULT
case 0, EventScript_164BCD
case 1, EventScript_164B90
case 2, EventScript_164BD3
case 127, EventScript_164BD3
end
EventScript_164B90:: @ 8164B90
setvar VAR_0x8006, 3
setdynamicwarp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 17, 8
compare VAR_ELEVATOR_FLOOR, 3
goto_if_eq EventScript_164BD3
call EventScript_164BD8
setvar VAR_ELEVATOR_FLOOR, 3
special Special_CloseElevatorCurrentFloorWindow
delay 25
applymovement OBJ_EVENT_ID_PLAYER, Movement_164BE5
waitmovement 0
warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 17, 8
waitstate
releaseall
end
EventScript_164BCD:: @ 8164BCD
goto EventScript_164BD3
end
EventScript_164BD3:: @ 8164BD3
special Special_CloseElevatorCurrentFloorWindow
releaseall
end
EventScript_164BD8:: @ 8164BD8
special Special_CloseElevatorCurrentFloorWindow
closemessage
waitse
special Special_AnimateElevator
waitstate
setflag FLAG_TEMP_2
return
Movement_164BE5:: @ 8164BE5
walk_in_place_fastest_down
delay_16
walk_down
walk_right
walk_right
walk_down
step_end
@@ -1,235 +0,0 @@
SevenIsland_TrainerTower_Lobby_MapScripts:: @ 8164839
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_Lobby_OnResume
map_script MAP_SCRIPT_ON_RETURN_TO_FIELD, SevenIsland_TrainerTower_Lobby_OnReturnToField
map_script MAP_SCRIPT_ON_TRANSITION, SevenIsland_TrainerTower_Lobby_OnTransition
map_script MAP_SCRIPT_ON_LOAD, SevenIsland_TrainerTower_Lobby_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_Lobby_OnFrame
.byte 0
SevenIsland_TrainerTower_Lobby_OnResume:: @ 8164853
setvar VAR_TEMP_2, 0
setvar VAR_0x8004, 10
special sub_815D9E8
setvar VAR_0x8004, 18
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_eq EventScript_164886
setvar VAR_TEMP_0, 0
setobjectxy OBJ_EVENT_ID_PLAYER, 9, 7
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD4
EventScript_164886:: @ 8164886
end
SevenIsland_TrainerTower_Lobby_OnReturnToField:: @ 8164887
addobject 1
addobject 2
addobject 3
addobject 4
addobject 5
end
SevenIsland_TrainerTower_Lobby_OnLoad:: @ 8164897
compare VAR_TEMP_D, 17
call_if_eq EventScript_1648A3
end
EventScript_1648A3:: @ 81648A3
setmetatile 17, 10, 647, 0
return
SevenIsland_TrainerTower_Lobby_OnTransition:: @ 81648AD
setworldmapflag FLAG_WORLD_MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY
getplayerxy VAR_TEMP_D, VAR_RESULT
end
SevenIsland_TrainerTower_Lobby_OnFrame:: @ 81648B6
map_script_2 VAR_TEMP_0, 0, EventScript_1648ED
map_script_2 VAR_TEMP_D, 0x11, EventScript_1648C8
.2byte 0
EventScript_1648C8:: @ 81648C8
lockall
applymovement OBJ_EVENT_ID_PLAYER, Movement_1648EA
waitmovement 0
setmetatile 17, 10, 692, 1
special DrawWholeMapView
playse SE_TK_KASYA
waitse
setvar VAR_TEMP_D, 0
releaseall
end
Movement_1648EA:: @ 81648EA
walk_down
walk_down
step_end
EventScript_1648ED:: @ 81648ED
setvar VAR_TEMP_0, 1
setvar VAR_0x8004, 12
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_164920
case 1, EventScript_164938
case 2, EventScript_16495C
EventScript_164920:: @ 8164920
lock
faceplayer
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD4
textcolor 1
msgbox gUnknown_817C937
goto EventScript_16494B
EventScript_164938:: @ 8164938
lock
faceplayer
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD4
textcolor 1
msgbox gUnknown_817C9C0
EventScript_16494B:: @ 816494B
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD6
waitmovement 0
setvar VAR_MAP_SCENE_TRAINER_TOWER, 0
release
EventScript_16495C:: @ 816495C
end
SevenIsland_TrainerTower_Lobby_EventScript_16495D:: @ 816495D
lock
faceplayer
call EventScript_PkmnCenterNurse
release
end
SevenIsland_TrainerTower_Lobby_EventScript_164966:: @ 8164966
lock
faceplayer
setvar VAR_0x8004, 20
special sub_815D9E8
compare VAR_RESULT, 1
goto_if_eq EventScript_164988
msgbox gUnknown_817C9A2
goto EventScript_164990
EventScript_164988:: @ 8164988
msgbox gUnknown_817CE1F
EventScript_164990:: @ 8164990
release
end
SevenIsland_TrainerTower_Lobby_EventScript_164992:: @ 8164992
goto_if_questlog EventScript_ReleaseEnd
lock
faceplayer
message Text_MayIHelpYou
waitmessage
pokemart Items_1649B8
msgbox Text_PleaseComeAgain
release
end
.align 2
Items_1649B8:: @ 81649B8
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_FULL_RESTORE
.2byte ITEM_MAX_POTION
.2byte ITEM_HYPER_POTION
.2byte ITEM_REVIVE
.2byte ITEM_FULL_HEAL
.2byte ITEM_ESCAPE_ROPE
.2byte ITEM_MAX_REPEL
.2byte ITEM_NONE
release
end
SevenIsland_TrainerTower_Lobby_EventScript_1649CE:: @ 81649CE
lockall
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD4
textcolor 1
msgbox gUnknown_817C794
setvar VAR_0x8004, 17
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_eq EventScript_164A00
msgbox gUnknown_817C7D9
goto EventScript_164A08
EventScript_164A00:: @ 8164A00
msgbox gUnknown_817C850
EventScript_164A08:: @ 8164A08
message Text_17C88D
waitmessage
multichoice 18, 6, MULTICHOICE_YES_NO_INFO, FALSE
switch VAR_RESULT
case 0, EventScript_164A53
case 1, EventScript_164ABF
case 2, EventScript_164A45
case 127, EventScript_164ABF
end
EventScript_164A45:: @ 8164A45
msgbox gUnknown_817CCC9
goto EventScript_164A08
end
EventScript_164A53:: @ 8164A53
multichoice 13, 3, MULTICHOICE_TRAINER_TOWER_MODE, FALSE
switch VAR_RESULT
case 0, EventScript_164AA0
case 1, EventScript_164AA0
case 2, EventScript_164AA0
case 3, EventScript_164AA0
case 4, EventScript_164ABF
case 127, EventScript_164ABF
end
EventScript_164AA0:: @ 8164AA0
copyvar VAR_0x8005, VAR_RESULT
setvar VAR_MAP_SCENE_TRAINER_TOWER, 1
special HealPlayerParty
msgbox gUnknown_817C8BF
setvar VAR_0x8004, 6
special sub_815D9E8
releaseall
end
EventScript_164ABF:: @ 8164ABF
msgbox gUnknown_817C91D
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_164AD6
waitmovement 0
releaseall
end
Movement_164AD4:: @ 8164AD4
face_right
step_end
Movement_164AD6:: @ 8164AD6
walk_down
step_end
SevenIsland_TrainerTower_Lobby_EventScript_164AD8:: @ 8164AD8
lockall
fadescreen FADE_TO_BLACK
setvar VAR_0x8004, 1
special Special_BattleRecords
waitstate
releaseall
end
SevenIsland_TrainerTower_Lobby_EventScript_164AE6:: @ 8164AE6
msgbox gUnknown_817CE38, MSGBOX_NPC
end
SevenIsland_TrainerTower_Lobby_EventScript_164AEF:: @ 8164AEF
msgbox gUnknown_817CE9F, MSGBOX_NPC
end
@@ -1,8 +0,0 @@
SevenIsland_TrainerTower_Roof_MapScripts:: @ 8164828
map_script MAP_SCRIPT_ON_RESUME, SevenIsland_TrainerTower_Roof_MapScript1_1C4F54
map_script MAP_SCRIPT_ON_FRAME_TABLE, SevenIsland_TrainerTower_Roof_MapScript2_1C5046
.byte 0
SevenIsland_TrainerTower_Roof_EventScript_164833:: @ 8164833
call EventScript_1C53AA
end
+1 -1
View File
@@ -4,7 +4,7 @@ SilphCo_Elevator_MapScripts:: @ 8161F6E
SilphCo_Elevator_EventScript_161F6F:: @ 8161F6F
lockall
setvar VAR_0x8004, 1
call_if_unset FLAG_TEMP_2, EventScript_1A7AB9
call_if_unset FLAG_TEMP_2, EventScript_GetElevatorFloor
copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR
special Special_DrawElevatorCurrentFloorWindow
message Text_WantWhichFloor
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_1F",
"name": "SevenIsland_TrainerTower_1F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_1F",
"id": "MAP_TRAINER_TOWER_1F",
"name": "TrainerTower_1F",
"layout": "LAYOUT_TRAINER_TOWER_1F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1646C8",
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1646CE",
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1646D4",
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1646DA",
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
@@ -84,14 +84,14 @@
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_2F",
"dest_map": "MAP_TRAINER_TOWER_2F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
"dest_map": "MAP_TRAINER_TOWER_LOBBY",
"dest_warp_id": 0
}
],
@@ -103,7 +103,7 @@
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1C54AF"
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
@@ -112,7 +112,7 @@
"elevation": 0,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1C54B4"
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
@@ -121,7 +121,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_1F_EventScript_1C54EA"
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_1F_MapScripts:: @ 81646B8
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ All Trainer Tower floors/roof share these scripts for their object events
TrainerTower_EventScript_DoublesTrainer1:: @ 81646C8
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_EventScript_SinglesTrainer:: @ 81646CE
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_EventScript_KnockoutTrainer:: @ 81646D4
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_EventScript_DoublesTrainer2:: @ 81646DA
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_EventScript_Owner:: @ 81646E0
call TrainerTower_EventScript_SpeakToOwner
end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_5F",
"name": "SevenIsland_TrainerTower_5F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_5F",
"id": "MAP_TRAINER_TOWER_2F",
"name": "TrainerTower_2F",
"layout": "LAYOUT_TRAINER_TOWER_2F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1646E0",
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1646C8",
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1646CE",
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1646D4",
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1646DA",
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
@@ -84,21 +84,21 @@
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_6F",
"dest_map": "MAP_TRAINER_TOWER_3F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_4F",
"dest_map": "MAP_TRAINER_TOWER_1F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
@@ -110,7 +110,7 @@
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1C54AF"
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
@@ -119,7 +119,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1C54B4"
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
@@ -128,7 +128,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_5F_EventScript_1C54EA"
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_2F_MapScripts:: @ 81646E6
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_2F_EventScript_DoublesTrainer1:: @ 81646F6
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_2F_EventScript_SinglesTrainer:: @ 81646FC
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_2F_EventScript_KnockoutTrainer:: @ 8164702
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_2F_EventScript_DoublesTrainer2:: @ 8164708
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_2F_EventScript_Owner:: @ 816470E
call TrainerTower_EventScript_SpeakToOwner
end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_3F",
"name": "SevenIsland_TrainerTower_3F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_3F",
"id": "MAP_TRAINER_TOWER_3F",
"name": "TrainerTower_3F",
"layout": "LAYOUT_TRAINER_TOWER_3F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1646E0",
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1646C8",
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1646CE",
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1646D4",
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1646DA",
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
@@ -84,21 +84,21 @@
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_4F",
"dest_map": "MAP_TRAINER_TOWER_4F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_2F",
"dest_map": "MAP_TRAINER_TOWER_2F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
@@ -110,7 +110,7 @@
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1C54AF"
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
@@ -119,7 +119,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1C54B4"
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
@@ -128,7 +128,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_3F_EventScript_1C54EA"
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_3F_MapScripts:: @ 8164714
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_3F_EventScript_DoublesTrainer1:: @ 8164724
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_3F_EventScript_SinglesTrainer:: @ 816472A
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_3F_EventScript_KnockoutTrainer:: @ 8164730
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_3F_EventScript_DoublesTrainer2:: @ 8164736
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_3F_EventScript_Owner:: @ 816473C
call TrainerTower_EventScript_SpeakToOwner
end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_2F",
"name": "SevenIsland_TrainerTower_2F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_2F",
"id": "MAP_TRAINER_TOWER_4F",
"name": "TrainerTower_4F",
"layout": "LAYOUT_TRAINER_TOWER_4F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1646E0",
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1646C8",
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1646CE",
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1646D4",
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1646DA",
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
@@ -84,21 +84,21 @@
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_3F",
"dest_map": "MAP_TRAINER_TOWER_5F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_1F",
"dest_map": "MAP_TRAINER_TOWER_3F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
@@ -110,7 +110,7 @@
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1C54AF"
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
@@ -119,7 +119,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1C54B4"
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
@@ -128,7 +128,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_2F_EventScript_1C54EA"
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_4F_MapScripts:: @ 8164742
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_4F_EventScript_DoublesTrainer1:: @ 8164752
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_4F_EventScript_SinglesTrainer:: @ 8164758
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_4F_EventScript_KnockoutTrainer:: @ 816475E
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_4F_EventScript_DoublesTrainer2:: @ 8164764
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_4F_EventScript_Owner:: @ 816476A
call TrainerTower_EventScript_SpeakToOwner
end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_4F",
"name": "SevenIsland_TrainerTower_4F",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_4F",
"id": "MAP_TRAINER_TOWER_5F",
"name": "TrainerTower_5F",
"layout": "LAYOUT_TRAINER_TOWER_5F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1646E0",
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1646C8",
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1646CE",
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1646D4",
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1646DA",
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
@@ -84,21 +84,21 @@
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_5F",
"dest_map": "MAP_TRAINER_TOWER_6F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_3F",
"dest_map": "MAP_TRAINER_TOWER_4F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
@@ -110,7 +110,7 @@
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1C54AF"
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
@@ -119,7 +119,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1C54B4"
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
@@ -128,7 +128,7 @@
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "SevenIsland_TrainerTower_4F_EventScript_1C54EA"
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_5F_MapScripts:: @ 8164770
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_5F_EventScript_DoublesTrainer1:: @ 8164780
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_5F_EventScript_SinglesTrainer:: @ 8164786
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_5F_EventScript_KnockoutTrainer:: @ 816478C
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_5F_EventScript_DoublesTrainer2:: @ 8164792
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_5F_EventScript_Owner:: @ 8164798
call TrainerTower_EventScript_SpeakToOwner
end
+135
View File
@@ -0,0 +1,135 @@
{
"id": "MAP_TRAINER_TOWER_6F",
"name": "TrainerTower_6F",
"layout": "LAYOUT_TRAINER_TOWER_6F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_7F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_5F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
}
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_6F_MapScripts:: @ 816479E
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_6F_EventScript_DoublesTrainer1:: @ 81647AE
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_6F_EventScript_SinglesTrainer:: @ 81647B4
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_6F_EventScript_KnockoutTrainer:: @ 81647BA
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_6F_EventScript_DoublesTrainer2:: @ 81647C0
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_6F_EventScript_Owner:: @ 81647C6
call TrainerTower_EventScript_SpeakToOwner
end
+135
View File
@@ -0,0 +1,135 @@
{
"id": "MAP_TRAINER_TOWER_7F",
"name": "TrainerTower_7F",
"layout": "LAYOUT_TRAINER_TOWER_7F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_8F",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_6F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
}
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_7F_MapScripts:: @ 81647CC
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_7F_EventScript_DoublesTrainer1:: @ 81647DC
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_7F_EventScript_SinglesTrainer:: @ 81647E2
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_7F_EventScript_KnockoutTrainer:: @ 81647E8
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_7F_EventScript_DoublesTrainer2:: @ 81647EE
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_7F_EventScript_Owner:: @ 81647F4
call TrainerTower_EventScript_SpeakToOwner
end
+135
View File
@@ -0,0 +1,135 @@
{
"id": "MAP_TRAINER_TOWER_8F",
"name": "TrainerTower_8F",
"layout": "LAYOUT_TRAINER_TOWER_8F",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
"weather": "WEATHER_NONE",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 2,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "OBJECT_EVENT_GFX_TRAINER_TOWER_DUDE",
"x": 9,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_0",
"x": 10,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer1",
"flag": "FLAG_TEMP_2"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_1",
"x": 15,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_SinglesTrainer",
"flag": "FLAG_TEMP_3"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_2",
"x": 10,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_KnockoutTrainer",
"flag": "FLAG_TEMP_4"
},
{
"graphics_id": "OBJECT_EVENT_GFX_VAR_3",
"x": 11,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "TrainerTower_EventScript_DoublesTrainer2",
"flag": "FLAG_TEMP_5"
}
],
"warp_events": [
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_ROOF",
"dest_warp_id": 1
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_TRAINER_TOWER_7F",
"dest_warp_id": 0
},
{
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "trigger",
"x": 10,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_E",
"var_value": 0,
"script": "TrainerTower_EventScript_SingleBattleTrigger"
},
{
"type": "trigger",
"x": 9,
"y": 12,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerTop"
},
{
"type": "trigger",
"x": 9,
"y": 13,
"elevation": 3,
"var": "VAR_TEMP_F",
"var_value": 0,
"script": "TrainerTower_EventScript_DoubleBattleTriggerBottom"
}
],
"bg_events": []
}
+27
View File
@@ -0,0 +1,27 @@
TrainerTower_8F_MapScripts:: @ 81647FA
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below scripts are unused, the identical versions in the 1F script are used instead
TrainerTower_8F_EventScript_DoublesTrainer1:: @ 816480A
call TrainerTower_EventScript_SpeakToDoublesTrainer1
end
TrainerTower_8F_EventScript_SinglesTrainer:: @ 8164810
call TrainerTower_EventScript_SpeakToSinglesTrainer
end
TrainerTower_8F_EventScript_KnockoutTrainer:: @ 8164816
call TrainerTower_EventScript_SpeakToKnockoutTrainer
end
TrainerTower_8F_EventScript_DoublesTrainer2:: @ 816481C
call TrainerTower_EventScript_SpeakToDoublesTrainer2
end
TrainerTower_8F_EventScript_Owner:: @ 8164822
call TrainerTower_EventScript_SpeakToOwner
end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"name": "SevenIsland_TrainerTower_Elevator",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"id": "MAP_TRAINER_TOWER_ELEVATOR",
"name": "TrainerTower_Elevator",
"layout": "LAYOUT_TRAINER_TOWER_ELEVATOR",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -29,7 +29,7 @@
"x": 0,
"y": 2,
"elevation": 0,
"script": "SevenIsland_TrainerTower_Elevator_EventScript_164B03"
"script": "TrainerTower_Elevator_EventScript_FloorSelect"
}
]
}
@@ -0,0 +1,80 @@
TrainerTower_Elevator_MapScripts:: @ 8164AF8
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
TrainerTower_Elevator_EventScript_FloorSelect:: @ 8164B03
lockall
setvar VAR_0x8004, 6
call_if_unset FLAG_TEMP_2, EventScript_GetElevatorFloor
copyvar VAR_0x8005, VAR_ELEVATOR_FLOOR
special Special_DrawElevatorCurrentFloorWindow
message Text_WantWhichFloor
waitmessage
setvar VAR_0x8004, 6
specialvar VAR_RESULT, Special_InitElevatorFloorSelectMenuPos
switch VAR_RESULT
case 0, TrainerTower_Elevator_EventScript_FloorSelectFromRoof
case 1, TrainerTower_Elevator_EventScript_FloorSelectFromLobby
end
TrainerTower_Elevator_EventScript_FloorSelectFromRoof:: @ 8164B46
multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 0, FALSE
goto TrainerTower_Elevator_EventScript_ChooseFloor
end
TrainerTower_Elevator_EventScript_FloorSelectFromLobby:: @ 8164B52
multichoicedefault 0, 0, MULTICHOICE_ROOFTOP_B1F, 1, FALSE
goto TrainerTower_Elevator_EventScript_ChooseFloor
end
TrainerTower_Elevator_EventScript_ChooseFloor:: @ 8164B5E
switch VAR_RESULT
case 0, TrainerTower_Elevator_EventScript_SelectRoof
case 1, TrainerTower_Elevator_EventScript_SelectLobby
case 2, TrainerTower_Elevator_EventScript_CloseFloorSelect
case SCR_MENU_CANCEL, TrainerTower_Elevator_EventScript_CloseFloorSelect
end
TrainerTower_Elevator_EventScript_SelectLobby:: @ 8164B90
setvar VAR_0x8006, 3
setdynamicwarp MAP_TRAINER_TOWER_LOBBY, 255, 17, 8
compare VAR_ELEVATOR_FLOOR, 3
goto_if_eq TrainerTower_Elevator_EventScript_CloseFloorSelect
call TrainerTower_Elevator_EventScript_MoveElevator
setvar VAR_ELEVATOR_FLOOR, 3
special Special_CloseElevatorCurrentFloorWindow
delay 25
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Elevator_Movement_ExitElevator
waitmovement 0
warp MAP_TRAINER_TOWER_LOBBY, 255, 17, 8
waitstate
releaseall
end
TrainerTower_Elevator_EventScript_SelectRoof:: @ 8164BCD
goto TrainerTower_Elevator_EventScript_CloseFloorSelect
end
TrainerTower_Elevator_EventScript_CloseFloorSelect:: @ 8164BD3
special Special_CloseElevatorCurrentFloorWindow
releaseall
end
TrainerTower_Elevator_EventScript_MoveElevator:: @ 8164BD8
special Special_CloseElevatorCurrentFloorWindow
closemessage
waitse
special Special_AnimateElevator
waitstate
setflag FLAG_TEMP_2
return
TrainerTower_Elevator_Movement_ExitElevator:: @ 8164BE5
walk_in_place_fastest_down
delay_16
walk_down
walk_right
walk_right
walk_down
step_end
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
"name": "SevenIsland_TrainerTower_Lobby",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_LOBBY",
"id": "MAP_TRAINER_TOWER_LOBBY",
"name": "TrainerTower_Lobby",
"layout": "LAYOUT_TRAINER_TOWER_LOBBY",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_16495D",
"script": "TrainerTower_Lobby_EventScript_Nurse",
"flag": "0"
},
{
@@ -36,7 +36,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_164992",
"script": "TrainerTower_Lobby_EventScript_MartClerk",
"flag": "0"
},
{
@@ -49,7 +49,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_164966",
"script": "TrainerTower_Lobby_EventScript_Receptionist",
"flag": "0"
},
{
@@ -62,7 +62,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_164AE6",
"script": "TrainerTower_Lobby_EventScript_CooltrainerF",
"flag": "0"
},
{
@@ -75,7 +75,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_164AEF",
"script": "TrainerTower_Lobby_EventScript_BaldingMan",
"flag": "0"
}
],
@@ -84,7 +84,7 @@
"x": 9,
"y": 2,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_1F",
"dest_map": "MAP_TRAINER_TOWER_1F",
"dest_warp_id": 1
},
{
@@ -98,7 +98,7 @@
"x": 17,
"y": 8,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
}
],
@@ -110,7 +110,7 @@
"elevation": 3,
"var": "VAR_MAP_SCENE_TRAINER_TOWER",
"var_value": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_1649CE"
"script": "TrainerTower_Lobby_EventScript_EntryTrigger"
}
],
"bg_events": [
@@ -119,7 +119,7 @@
"x": 8,
"y": 10,
"elevation": 0,
"script": "SevenIsland_TrainerTower_Lobby_EventScript_164AD8"
"script": "TrainerTower_Lobby_EventScript_ShowRecords"
}
]
}
+226
View File
@@ -0,0 +1,226 @@
TrainerTower_Lobby_MapScripts:: @ 8164839
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_Lobby_OnResume
map_script MAP_SCRIPT_ON_RETURN_TO_FIELD, TrainerTower_Lobby_OnReturnToField
map_script MAP_SCRIPT_ON_TRANSITION, TrainerTower_Lobby_OnTransition
map_script MAP_SCRIPT_ON_LOAD, TrainerTower_Lobby_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_Lobby_OnFrame
.byte 0
TrainerTower_Lobby_OnResume:: @ 8164853
setvar VAR_TEMP_2, 0
ttower_resumetimer
ttower_shouldexit
compare VAR_RESULT, FALSE
goto_if_eq TrainerTower_Lobby_OnResumeEnd
@ Never reached, above always FALSE
setvar VAR_TEMP_0, 0
setobjectxy OBJ_EVENT_ID_PLAYER, 9, 7
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_FaceReceptionist
TrainerTower_Lobby_OnResumeEnd:: @ 8164886
end
TrainerTower_Lobby_OnReturnToField:: @ 8164887
addobject 1
addobject 2
addobject 3
addobject 4
addobject 5
end
TrainerTower_Lobby_OnLoad:: @ 8164897
compare VAR_TEMP_D, 17
call_if_eq TrainerTower_Lobby_OpenCounterBarrier
end
TrainerTower_Lobby_OpenCounterBarrier:: @ 81648A3
setmetatile 17, 10, METATILE_TrainerTower_Floor_ShadeBottomLeft, 0
return
TrainerTower_Lobby_OnTransition:: @ 81648AD
setworldmapflag FLAG_WORLD_MAP_TRAINER_TOWER_LOBBY
getplayerxy VAR_TEMP_D, VAR_RESULT
end
TrainerTower_Lobby_OnFrame:: @ 81648B6
map_script_2 VAR_TEMP_0, 0, TrainerTower_Lobby_EventScript_Enter
map_script_2 VAR_TEMP_D, 17, TrainerTower_Lobby_EventScript_ExitElevator
.2byte 0
TrainerTower_Lobby_EventScript_ExitElevator:: @ 81648C8
lockall
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_ExitElevator
waitmovement 0
setmetatile 17, 10, METATILE_TrainerTower_CounterBarrier, 1
special DrawWholeMapView
playse SE_TK_KASYA
waitse
setvar VAR_TEMP_D, 0
releaseall
end
TrainerTower_Lobby_Movement_ExitElevator:: @ 81648EA
walk_down
walk_down
step_end
TrainerTower_Lobby_EventScript_Enter:: @ 81648ED
setvar VAR_TEMP_0, 1
ttower_getchallengestatus
switch VAR_RESULT
case CHALLENGE_STATUS_LOST, TrainerTower_Lobby_EventScript_LostChallenge
case CHALLENGE_STATUS_UNK, TrainerTower_Lobby_EventScript_164938
case CHALLENGE_STATUS_NORMAL, TrainerTower_Lobby_EventScript_EnterEnd
TrainerTower_Lobby_EventScript_LostChallenge:: @ 8164920
lock
faceplayer
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_FaceReceptionist
textcolor 1
msgbox TrainerTower_Lobby_Text_TooBadComeBackTryAgain
goto TrainerTower_Lobby_EventScript_ExitChallenge
@ Presumably E-Reader related
TrainerTower_Lobby_EventScript_164938:: @ 8164938
lock
faceplayer
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_FaceReceptionist
textcolor 1
msgbox TrainerTower_Lobby_Text_MoveCounterHereWhenTrainersSwitch
TrainerTower_Lobby_EventScript_ExitChallenge:: @ 816494B
closemessage
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_WalkDown
waitmovement 0
setvar VAR_MAP_SCENE_TRAINER_TOWER, 0
release
TrainerTower_Lobby_EventScript_EnterEnd:: @ 816495C
end
TrainerTower_Lobby_EventScript_Nurse:: @ 816495D
lock
faceplayer
call EventScript_PkmnCenterNurse
release
end
TrainerTower_Lobby_EventScript_Receptionist:: @ 8164966
lock
faceplayer
ttower_getbeatchallenge
compare VAR_RESULT, TRUE
goto_if_eq TrainerTower_Lobby_EventScript_ThanksForCompeting
msgbox TrainerTower_Lobby_Text_GiveItYourBest
goto TrainerTower_Lobby_EventScript_ReceptionistEnd
TrainerTower_Lobby_EventScript_ThanksForCompeting:: @ 8164988
msgbox TrainerTower_Lobby_Text_ThanksForCompeting
TrainerTower_Lobby_EventScript_ReceptionistEnd:: @ 8164990
release
end
TrainerTower_Lobby_EventScript_MartClerk:: @ 8164992
goto_if_questlog EventScript_ReleaseEnd
lock
faceplayer
message Text_MayIHelpYou
waitmessage
pokemart TrainerTower_Lobby_Mart_Items
msgbox Text_PleaseComeAgain
release
end
.align 2
TrainerTower_Lobby_Mart_Items:: @ 81649B8
.2byte ITEM_ULTRA_BALL
.2byte ITEM_GREAT_BALL
.2byte ITEM_FULL_RESTORE
.2byte ITEM_MAX_POTION
.2byte ITEM_HYPER_POTION
.2byte ITEM_REVIVE
.2byte ITEM_FULL_HEAL
.2byte ITEM_ESCAPE_ROPE
.2byte ITEM_MAX_REPEL
.2byte ITEM_NONE
release
end
TrainerTower_Lobby_EventScript_EntryTrigger:: @ 81649CE
lockall
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_FaceReceptionist
textcolor 1
msgbox TrainerTower_Lobby_Text_WelcomeToTrainerTower
ttower_getnumfloors
compare VAR_RESULT, FALSE
goto_if_eq TrainerTower_Lobby_EventScript_AllFloorsUsed
msgbox TrainerTower_Lobby_Text_TrainersUpToFloorNum
goto TrainerTower_Lobby_EventScript_AskEnterChallenge
TrainerTower_Lobby_EventScript_AllFloorsUsed:: @ 8164A00
msgbox TrainerTower_Lobby_Text_TrainersUpEighthFloor
TrainerTower_Lobby_EventScript_AskEnterChallenge:: @ 8164A08
message TrainerTower_Lobby_Text_LikeToChallengeTrainers
waitmessage
multichoice 18, 6, MULTICHOICE_YES_NO_INFO, FALSE
switch VAR_RESULT
case 0, TrainerTower_Lobby_EventScript_ChooseChallenge
case 1, TrainerTower_Lobby_EventScript_DeclineChallenge
case 2, TrainerTower_Lobby_EventScript_ChallengeInfo
case SCR_MENU_CANCEL, TrainerTower_Lobby_EventScript_DeclineChallenge
end
TrainerTower_Lobby_EventScript_ChallengeInfo:: @ 8164A45
msgbox TrainerTower_Lobby_Text_ExplainTrainerTower
goto TrainerTower_Lobby_EventScript_AskEnterChallenge
end
TrainerTower_Lobby_EventScript_ChooseChallenge:: @ 8164A53
multichoice 13, 3, MULTICHOICE_TRAINER_TOWER_MODE, FALSE
switch VAR_RESULT
case 0, TrainerTower_Lobby_EventScript_BeginChallenge
case 1, TrainerTower_Lobby_EventScript_BeginChallenge
case 2, TrainerTower_Lobby_EventScript_BeginChallenge
case 3, TrainerTower_Lobby_EventScript_BeginChallenge
case 4, TrainerTower_Lobby_EventScript_DeclineChallenge
case SCR_MENU_CANCEL, TrainerTower_Lobby_EventScript_DeclineChallenge
end
TrainerTower_Lobby_EventScript_BeginChallenge:: @ 8164AA0
copyvar VAR_0x8005, VAR_RESULT
setvar VAR_MAP_SCENE_TRAINER_TOWER, 1
special HealPlayerParty
msgbox TrainerTower_Lobby_Text_StartClockGetSetGo
ttower_startchallenge
releaseall
end
TrainerTower_Lobby_EventScript_DeclineChallenge:: @ 8164ABF
msgbox TrainerTower_Lobby_Text_PleaseVisitUsAgain
closemessage
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Lobby_Movement_WalkDown
waitmovement 0
releaseall
end
TrainerTower_Lobby_Movement_FaceReceptionist:: @ 8164AD4
face_right
step_end
TrainerTower_Lobby_Movement_WalkDown:: @ 8164AD6
walk_down
step_end
TrainerTower_Lobby_EventScript_ShowRecords:: @ 8164AD8
lockall
fadescreen FADE_TO_BLACK
setvar VAR_0x8004, 1
special Special_BattleRecords
waitstate
releaseall
end
TrainerTower_Lobby_EventScript_CooltrainerF:: @ 8164AE6
msgbox TrainerTower_Lobby_Text_WonderWhatKindsOfTrainers, MSGBOX_NPC
end
TrainerTower_Lobby_EventScript_BaldingMan:: @ 8164AEF
msgbox TrainerTower_Lobby_Text_StairsTougherThanAnyBattle, MSGBOX_NPC
end
@@ -1,50 +1,52 @@
gUnknown_817C794:: @ 817C794
@ All Trainer Tower text (Lobby and Roof) is interleaved here
TrainerTower_Lobby_Text_WelcomeToTrainerTower:: @ 817C794
.string "Hello!\p"
.string "Welcome to TRAINER TOWER where\n"
.string "TRAINERS gather from all over!$"
gUnknown_817C7D9:: @ 817C7D9
TrainerTower_Lobby_Text_TrainersUpToFloorNum:: @ 817C7D9
.string "TRAINERS from all over the world\n"
.string "gather here to battle.\p"
.string "Let me see…\p"
.string "Right now, there are TRAINERS only\n"
.string "up to Floor {STR_VAR_1}.$"
gUnknown_817C850:: @ 817C850
TrainerTower_Lobby_Text_TrainersUpEighthFloor:: @ 817C850
.string "TRAINERS are awaiting your\n"
.string "challenge up to the eighth floor.$"
Text_17C88D:: @ 817C88D
TrainerTower_Lobby_Text_LikeToChallengeTrainers:: @ 817C88D
.string "Would you like to challenge the\n"
.string "waiting TRAINERS?$"
gUnknown_817C8BF:: @ 817C8BF
TrainerTower_Lobby_Text_StartClockGetSetGo:: @ 817C8BF
.string "Okay, I'll get the clock started,\n"
.string "so give it everything you have.\p"
.string "On your marks…\p"
.string "Get set…\p"
.string "Go!$"
gUnknown_817C91D:: @ 817C91D
TrainerTower_Lobby_Text_PleaseVisitUsAgain:: @ 817C91D
.string "Please do visit us again!$"
gUnknown_817C937:: @ 817C937
TrainerTower_Lobby_Text_TooBadComeBackTryAgain:: @ 817C937
.string "That was too bad.\p"
.string "I think you put in a tremendous\n"
.string "effort in your battling.\p"
.string "Please come back and try again!$"
gUnknown_817C9A2:: @ 817C9A2
TrainerTower_Lobby_Text_GiveItYourBest:: @ 817C9A2
.string "I hope you give it your best.$"
gUnknown_817C9C0:: @ 817C9C0
TrainerTower_Lobby_Text_MoveCounterHereWhenTrainersSwitch:: @ 817C9C0
.string "When the TRAINERS switch places,\n"
.string "the movement can be hectic.\p"
.string "To avoid the stampede, we moved\n"
.string "the reception counter here.\p"
.string "I'm sorry for the inconvenience.$"
Text_17CA5A:: @ 817CA5A
TrainerTower_Roof_Text_ImOwnerBattledPerfectly:: @ 817CA5A
.string "Hello…\p"
.string "I am the owner of this TOWER…\p"
.string "How the sky soars above this\n"
@@ -54,10 +56,10 @@ Text_17CA5A:: @ 817CA5A
.string "The way you battled…\n"
.string "It, too, was perfection…$"
Text_17CB09:: @ 817CB09
TrainerTower_Roof_Text_ThisIsForYou:: @ 817CB09
.string "This is for you…$"
Text_17CB1A:: @ 817CB1A
TrainerTower_Roof_Text_DoneItInRecordTime:: @ 817CB1A
.string "Oh!\n"
.string "Stupendous!\p"
.string "It's marvelous how you've come up\n"
@@ -67,28 +69,28 @@ Text_17CB1A:: @ 817CB1A
.string "I'll have your record posted at\n"
.string "the reception counter.$"
Text_17CBC0:: @ 817CBC0
TrainerTower_Roof_Text_TookSweetTimeGettingHere:: @ 817CBC0
.string "You seem to have taken your sweet\n"
.string "time getting here…$"
Text_17CBF5:: @ 817CBF5
TrainerTower_Roof_Text_IdLikeToSeeBetterTime:: @ 817CBF5
.string "What I would like to see is a\n"
.string "better time out of you…\p"
.string "I'm counting on you.\p"
.string "Until then, farewell…$"
Text_17CC56:: @ 817CC56
TrainerTower_Text_XMinYZSec:: @ 817CC56
.string "{STR_VAR_1} min. {STR_VAR_2}.{STR_VAR_3} sec.$"
Text_17CC69:: @ 817CC69
TrainerTower_Lobby_Text_HereAreTheResults:: @ 817CC69
.string "せいせきひょうです$"
Text_17CC73:: @ 817CC73
TrainerTower_Lobby_Text_NeedTwoMonsForDouble:: @ 817CC73
.string "This is a two-on-two battle.\p"
.string "You may not battle unless you have\n"
.string "at least two POKéMON.$"
gUnknown_817CCC9:: @ 817CCC9
TrainerTower_Lobby_Text_ExplainTrainerTower:: @ 817CCC9
.string "Here at TRAINER TOWER, there is an\n"
.string "event called TIME ATTACK.\p"
.string "You will be timed on how quickly\n"
@@ -101,16 +103,16 @@ gUnknown_817CCC9:: @ 817CCC9
.string "You will not earn any EXP. Points\n"
.string "or money by beating TRAINERS here.$"
gUnknown_817CE1F:: @ 817CE1F
TrainerTower_Lobby_Text_ThanksForCompeting:: @ 817CE1F
.string "Thank you for competing!$"
gUnknown_817CE38:: @ 817CE38
TrainerTower_Lobby_Text_WonderWhatKindsOfTrainers:: @ 817CE38
.string "I'm here to see how good I am.\p"
.string "I wonder what kinds of TRAINERS\n"
.string "are waiting for me?\p"
.string "It's nerve-racking!$"
gUnknown_817CE9F:: @ 817CE9F
TrainerTower_Lobby_Text_StairsTougherThanAnyBattle:: @ 817CE9F
.string "Gasp, gasp…\n"
.string "Gasp…\p"
.string "Never mind battling! These stairs…\n"
@@ -1,7 +1,7 @@
{
"id": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ROOF",
"name": "SevenIsland_TrainerTower_Roof",
"layout": "LAYOUT_SEVEN_ISLAND_TRAINER_TOWER_ROOF",
"id": "MAP_TRAINER_TOWER_ROOF",
"name": "TrainerTower_Roof",
"layout": "LAYOUT_TRAINER_TOWER_ROOF",
"music": "MUS_T_TOWER",
"region_map_section": "MAPSEC_TRAINER_TOWER_2",
"requires_flash": false,
@@ -23,7 +23,7 @@
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SevenIsland_TrainerTower_Roof_EventScript_1646E0",
"script": "TrainerTower_EventScript_Owner",
"flag": "FLAG_TEMP_6"
}
],
@@ -32,14 +32,14 @@
"x": 13,
"y": 5,
"elevation": 0,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_ELEVATOR",
"dest_map": "MAP_TRAINER_TOWER_ELEVATOR",
"dest_warp_id": 0
},
{
"x": 4,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SEVEN_ISLAND_TRAINER_TOWER_8F",
"dest_map": "MAP_TRAINER_TOWER_8F",
"dest_warp_id": 0
}
],
+10
View File
@@ -0,0 +1,10 @@
TrainerTower_Roof_MapScripts:: @ 8164828
map_script MAP_SCRIPT_ON_RESUME, TrainerTower_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerTower_OnFrame
.byte 0
@ Below script is unused, the identical version in the 1F script is used instead
TrainerTower_Roof_EventScript_Owner:: @ 8164833
call TrainerTower_EventScript_SpeakToOwner
end
+11 -11
View File
@@ -178,17 +178,17 @@
],
"gMapGroup2": [
"NavelRock_Exterior",
"SevenIsland_TrainerTower_1F",
"SevenIsland_TrainerTower_2F",
"SevenIsland_TrainerTower_3F",
"SevenIsland_TrainerTower_4F",
"SevenIsland_TrainerTower_5F",
"SevenIsland_TrainerTower_6F",
"SevenIsland_TrainerTower_7F",
"SevenIsland_TrainerTower_8F",
"SevenIsland_TrainerTower_Roof",
"SevenIsland_TrainerTower_Lobby",
"SevenIsland_TrainerTower_Elevator",
"TrainerTower_1F",
"TrainerTower_2F",
"TrainerTower_3F",
"TrainerTower_4F",
"TrainerTower_5F",
"TrainerTower_6F",
"TrainerTower_7F",
"TrainerTower_8F",
"TrainerTower_Roof",
"TrainerTower_Lobby",
"TrainerTower_Elevator",
"FiveIsland_LostCave_Entrance",
"FiveIsland_LostCave_Room1",
"FiveIsland_LostCave_Room2",
+270 -316
View File
@@ -1,320 +1,297 @@
SevenIsland_TrainerTower_1F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_2F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_3F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_4F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_5F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_6F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_7F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_8F_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_Elevator_MapScript1_1C4F54:: @ 81C4F54
SevenIsland_TrainerTower_Roof_MapScript1_1C4F54:: @ 81C4F54
@ Local IDs apply to all floors (not lobby or roof)
.equ LOCALID_TRAINER_DOUBLES1, 2
.equ LOCALID_TRAINER_SINGLES, 3
.equ LOCALID_TRAINER_KNOCKOUT, 4
.equ LOCALID_TRAINER_DOUBLES2, 5
.equ HIDE_TRAINER_DOUBLES1, FLAG_TEMP_2
.equ HIDE_TRAINER_SINGLES, FLAG_TEMP_3
.equ HIDE_TRAINER_KNOCKOUT, FLAG_TEMP_4
.equ HIDE_TRAINER_DOUBLES2, FLAG_TEMP_5
.equ HIDE_OWNER, FLAG_TEMP_6
.equ DISABLE_SINGLES_TRIGGER, VAR_TEMP_E
.equ DISABLE_DOUBLES_TRIGGER, VAR_TEMP_F
@@ Map scripts
TrainerTower_OnResume:: @ 81C4F54
setvar VAR_TEMP_2, 0
setvar VAR_0x8004, 10
special sub_815D9E8
ttower_resumetimer
end
SevenIsland_TrainerTower_1F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_2F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_3F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_4F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_5F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_6F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_7F_MapScript2_1C4F62:: @ 81C4F62
SevenIsland_TrainerTower_8F_MapScript2_1C4F62:: @ 81C4F62
setvar VAR_0x8004, 0
special sub_815D9E8
TrainerTower_OnTransition:: @ 81C4F62
ttower_initfloor
switch VAR_RESULT
case 0, EventScript_1C4FA7
case 1, EventScript_1C4FC5
case 2, EventScript_1C5019
setflag FLAG_TEMP_2
setflag FLAG_TEMP_3
setflag FLAG_TEMP_4
setflag FLAG_TEMP_5
setvar VAR_TEMP_E, 1
setvar VAR_TEMP_F, 1
case CHALLENGE_TYPE_SINGLE, TrainerTower_EventScript_SetObjectsSingles
case CHALLENGE_TYPE_DOUBLE, TrainerTower_EventScript_SetObjectsDoubles
case CHALLENGE_TYPE_KNOCKOUT, TrainerTower_EventScript_SetObjectsKnockout
setflag HIDE_TRAINER_DOUBLES1
setflag HIDE_TRAINER_SINGLES
setflag HIDE_TRAINER_KNOCKOUT
setflag HIDE_TRAINER_DOUBLES2
setvar DISABLE_SINGLES_TRIGGER, TRUE
setvar DISABLE_DOUBLES_TRIGGER, TRUE
end
EventScript_1C4FA7:: @ 81C4FA7
setflag FLAG_TEMP_2
setflag FLAG_TEMP_4
setflag FLAG_TEMP_5
setvar VAR_TEMP_F, 1
setobjectxyperm 3, 15, 13
setobjectmovementtype 3, 9
goto EventScript_1C5042
TrainerTower_EventScript_SetObjectsSingles:: @ 81C4FA7
setflag HIDE_TRAINER_DOUBLES1
setflag HIDE_TRAINER_KNOCKOUT
setflag HIDE_TRAINER_DOUBLES2
setvar DISABLE_DOUBLES_TRIGGER, TRUE
setobjectxyperm LOCALID_TRAINER_SINGLES, 15, 13
setobjectmovementtype LOCALID_TRAINER_SINGLES, MOVEMENT_TYPE_FACE_LEFT
goto TrainerTower_EventScript_HideOwner
EventScript_1C4FC5:: @ 81C4FC5
setflag FLAG_TEMP_3
setflag FLAG_TEMP_4
setvar VAR_TEMP_E, 1
setvar VAR_0x8004, 5
special sub_815D9E8
compare VAR_RESULT, 1
goto_if_eq EventScript_1C4FFE
setobjectxyperm 2, 10, 12
setobjectmovementtype 2, 9
setobjectxyperm 5, 10, 13
setobjectmovementtype 5, 9
goto EventScript_1C5042
TrainerTower_EventScript_SetObjectsDoubles:: @ 81C4FC5
setflag HIDE_TRAINER_SINGLES
setflag HIDE_TRAINER_KNOCKOUT
setvar DISABLE_SINGLES_TRIGGER, TRUE
ttower_isfloorbeaten
compare VAR_RESULT, TRUE
goto_if_eq TrainerTower_EventScript_SetObjectsDoublesAlreadyBeaten
setobjectxyperm LOCALID_TRAINER_DOUBLES1, 10, 12
setobjectmovementtype LOCALID_TRAINER_DOUBLES1, MOVEMENT_TYPE_FACE_LEFT
setobjectxyperm LOCALID_TRAINER_DOUBLES2, 10, 13
setobjectmovementtype LOCALID_TRAINER_DOUBLES2, MOVEMENT_TYPE_FACE_LEFT
goto TrainerTower_EventScript_HideOwner
EventScript_1C4FFE:: @ 81C4FFE
setobjectxyperm 2, 10, 12
setobjectmovementtype 2, 8
setobjectxyperm 5, 11, 12
setobjectmovementtype 5, 8
goto EventScript_1C5042
TrainerTower_EventScript_SetObjectsDoublesAlreadyBeaten:: @ 81C4FFE
setobjectxyperm LOCALID_TRAINER_DOUBLES1, 10, 12
setobjectmovementtype LOCALID_TRAINER_DOUBLES1, MOVEMENT_TYPE_FACE_DOWN
setobjectxyperm LOCALID_TRAINER_DOUBLES2, 11, 12
setobjectmovementtype LOCALID_TRAINER_DOUBLES2, MOVEMENT_TYPE_FACE_DOWN
goto TrainerTower_EventScript_HideOwner
EventScript_1C5019:: @ 81C5019
setflag FLAG_TEMP_5
setvar VAR_TEMP_F, 1
setobjectxyperm 2, 10, 10
setobjectmovementtype 2, 8
setobjectxyperm 3, 14, 13
setobjectmovementtype 3, 9
setobjectxyperm 4, 10, 16
setobjectmovementtype 4, 7
EventScript_1C5042:
setflag FLAG_TEMP_6
@ Knockout challenge re-uses trainer objects
TrainerTower_EventScript_SetObjectsKnockout:: @ 81C5019
setflag HIDE_TRAINER_DOUBLES2
setvar DISABLE_DOUBLES_TRIGGER, TRUE
setobjectxyperm LOCALID_TRAINER_DOUBLES1, 10, 10
setobjectmovementtype LOCALID_TRAINER_DOUBLES1, MOVEMENT_TYPE_FACE_DOWN
setobjectxyperm LOCALID_TRAINER_SINGLES, 14, 13
setobjectmovementtype LOCALID_TRAINER_SINGLES, MOVEMENT_TYPE_FACE_LEFT
setobjectxyperm LOCALID_TRAINER_KNOCKOUT, 10, 16
setobjectmovementtype LOCALID_TRAINER_KNOCKOUT, MOVEMENT_TYPE_FACE_UP
TrainerTower_EventScript_HideOwner:
setflag HIDE_OWNER
end
SevenIsland_TrainerTower_1F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_2F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_3F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_4F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_5F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_6F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_7F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_8F_MapScript3_1C5046:: @ 81C5046
SevenIsland_TrainerTower_Elevator_MapScript2_1C5046:: @ 81C5046
SevenIsland_TrainerTower_Roof_MapScript2_1C5046:: @ 81C5046
map_script_2 VAR_TEMP_2, 0, EventScript_1C5050
TrainerTower_OnFrame:: @ 81C5046
map_script_2 VAR_TEMP_2, 0, TrainerTower_EventScript_EnterFloor
.2byte 0
EventScript_1C5050:: @ 81C5050
TrainerTower_EventScript_EnterFloor:: @ 81C5050
setvar VAR_TEMP_2, 1
setvar VAR_0x8004, 5
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_eq EventScript_1C5072
setvar VAR_TEMP_E, 1
setvar VAR_TEMP_F, 1
EventScript_1C5072:
setvar VAR_0x8004, 18
special sub_815D9E8
compare VAR_RESULT, 1
goto_if_eq EventScript_1C5086
ttower_isfloorbeaten
compare VAR_RESULT, FALSE
goto_if_eq TrainerTower_EventScript_EndEnterFloor
setvar DISABLE_SINGLES_TRIGGER, TRUE
setvar DISABLE_DOUBLES_TRIGGER, TRUE
TrainerTower_EventScript_EndEnterFloor:
ttower_shouldexit
compare VAR_RESULT, TRUE
goto_if_eq TrainerTower_EventScript_WarpToLobby
end
EventScript_1C5086:: @ 81C5086
warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7
@ Never reached
TrainerTower_EventScript_WarpToLobby:: @ 81C5086
warp MAP_TRAINER_TOWER_LOBBY, 255, 9, 7
waitstate
EventScript_1C508F::
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
@@ Battle scripts
TrainerTower_EventScript_TriggerBattle::
ttower_getchallengetype
switch VAR_RESULT
case 0, EventScript_1C50C2
case 1, EventScript_1C510D
case 2, EventScript_1C515C
EventScript_1C50C2:
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 3, Movement_ExclamationMark
case CHALLENGE_TYPE_SINGLE, TrainerTower_EventScript_DoSingleBattle
case CHALLENGE_TYPE_DOUBLE, TrainerTower_EventScript_DoDoubleBattle
case CHALLENGE_TYPE_KNOCKOUT, TrainerTower_EventScript_DoKnockoutBattle
TrainerTower_EventScript_DoSingleBattle:
ttower_encountermusic
applymovement LOCALID_TRAINER_SINGLES, Movement_ExclamationMark
waitmovement 0
applymovement 3, Movement_Delay48
applymovement LOCALID_TRAINER_SINGLES, Movement_Delay48
waitmovement 0
setvar VAR_TEMP_E, 1
applymovement 3, Movement_1C5541
setvar DISABLE_SINGLES_TRIGGER, TRUE
applymovement LOCALID_TRAINER_SINGLES, TrainerTower_Movement_SingleTrainerApproach
waitmovement 0
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
setvar VAR_0x8006, 0
special sub_815D9E8
ttower_getspeech TRAINER_TOWER_TEXT_INTRO, 0
msgbox gStringVar4
closemessage
goto EventScript_1C5219
goto TrainerTower_EventScript_DoBattle
EventScript_1C510D:: @ 81C510D
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_TEMP_3
special sub_815D9E8
TrainerTower_EventScript_DoDoubleBattle:: @ 81C510D
ttower_getspeech TRAINER_TOWER_TEXT_INTRO, VAR_TEMP_3
msgbox gStringVar4
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
setvar VAR_0x8004, TRAINER_TOWER_FUNC_GET_SPEECH
setvar VAR_0x8005, TRAINER_TOWER_TEXT_INTRO
addvar VAR_TEMP_3, 1
compare VAR_TEMP_3, 1
goto_if_eq EventScript_1C5146
goto_if_eq TrainerTower_EventScript_DoSecondTrainerIntro
setvar VAR_TEMP_3, 0
EventScript_1C5146:
TrainerTower_EventScript_DoSecondTrainerIntro:
copyvar VAR_0x8006, VAR_TEMP_3
special sub_815D9E8
special CallTrainerTowerFunc
msgbox gStringVar4
closemessage
goto EventScript_1C5219
goto TrainerTower_EventScript_DoBattle
EventScript_1C515C:: @ 81C515C
TrainerTower_EventScript_DoKnockoutBattle:: @ 81C515C
switch VAR_TEMP_1
case 0, EventScript_1C5182
case 1, EventScript_1C51AD
case 2, EventScript_1C51D8
EventScript_1C5182:
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 4, Movement_ExclamationMark
waitmovement 0
applymovement 4, Movement_Delay48
waitmovement 0
applymovement 4, Movement_1C5546
waitmovement 0
goto EventScript_1C51FE
case 0, TrainerTower_EventScript_DoKnockoutBattle1
case 1, TrainerTower_EventScript_DoKnockoutBattle2
case 2, TrainerTower_EventScript_DoKnockoutBattle3
EventScript_1C51AD:: @ 81C51AD
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 2, Movement_ExclamationMark
TrainerTower_EventScript_DoKnockoutBattle1:
ttower_encountermusic
applymovement LOCALID_TRAINER_KNOCKOUT, Movement_ExclamationMark
waitmovement 0
applymovement 2, Movement_Delay48
applymovement LOCALID_TRAINER_KNOCKOUT, Movement_Delay48
waitmovement 0
applymovement 2, Movement_1C5549
applymovement LOCALID_TRAINER_KNOCKOUT, TrainerTower_Movement_BottomKnockoutTrainerApproach
waitmovement 0
goto EventScript_1C51FE
goto TrainerTower_EventScript_DoKnockoutBattleIntro
EventScript_1C51D8:: @ 81C51D8
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 3, Movement_ExclamationMark
TrainerTower_EventScript_DoKnockoutBattle2:: @ 81C51AD
ttower_encountermusic
applymovement LOCALID_TRAINER_DOUBLES1, Movement_ExclamationMark
waitmovement 0
applymovement 3, Movement_Delay48
applymovement LOCALID_TRAINER_DOUBLES1, Movement_Delay48
waitmovement 0
applymovement 3, Movement_1C5542
applymovement LOCALID_TRAINER_DOUBLES1, TrainerTower_Movement_TopKnockoutTrainerApproach
waitmovement 0
EventScript_1C51FE:
setvar VAR_0x8004, 1
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_TEMP_1
special sub_815D9E8
goto TrainerTower_EventScript_DoKnockoutBattleIntro
TrainerTower_EventScript_DoKnockoutBattle3:: @ 81C51D8
ttower_encountermusic
applymovement LOCALID_TRAINER_SINGLES, Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_TRAINER_SINGLES, Movement_Delay48
waitmovement 0
applymovement LOCALID_TRAINER_SINGLES, TrainerTower_Movement_RightKnockoutTrainerApproach
waitmovement 0
TrainerTower_EventScript_DoKnockoutBattleIntro:
ttower_getspeech TRAINER_TOWER_TEXT_INTRO, VAR_TEMP_1
msgbox gStringVar4
closemessage
EventScript_1C5219:
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
special sub_815D9E8
TrainerTower_EventScript_DoBattle:
ttower_dobattle
waitstate
switch VAR_RESULT
case 1, EventScript_1C524D
case 2, EventScript_1C52E0
case 3, EventScript_1C52E0
EventScript_1C524D:
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
case B_OUTCOME_WON, TrainerTower_EventScript_WonBattle
case B_OUTCOME_LOST, TrainerTower_EventScript_WarpToLobbyLost
case B_OUTCOME_DREW, TrainerTower_EventScript_WarpToLobbyLost
TrainerTower_EventScript_WonBattle:
ttower_getchallengetype
switch VAR_RESULT
case 0, EventScript_1C52D7
case 1, EventScript_1C52BA
case 2, EventScript_1C5280
EventScript_1C5280:
case CHALLENGE_TYPE_SINGLE, TrainerTower_EventScript_SetFloorCleared
case CHALLENGE_TYPE_DOUBLE, TrainerTower_EventScript_MoveDoublesTrainers
case CHALLENGE_TYPE_KNOCKOUT, TrainerTower_EventScript_CheckNextKnockoutBattle
TrainerTower_EventScript_CheckNextKnockoutBattle:
switch VAR_TEMP_1
case 0, EventScript_1C52A6
case 1, EventScript_1C52B0
case 2, EventScript_1C52D0
EventScript_1C52A6:
addvar VAR_TEMP_1, 1
goto EventScript_1C515C
case 0, TrainerTower_EventScript_DoSecondKnockoutBattle
case 1, TrainerTower_EventScript_DoThirdKnockoutBattle
case 2, TrainerTower_EventScript_MoveLastKnockoutTrainer
EventScript_1C52B0:: @ 81C52B0
TrainerTower_EventScript_DoSecondKnockoutBattle:
addvar VAR_TEMP_1, 1
goto EventScript_1C515C
goto TrainerTower_EventScript_DoKnockoutBattle
EventScript_1C52BA:: @ 81C52BA
applymovement 5, Movement_1C554C
TrainerTower_EventScript_DoThirdKnockoutBattle:: @ 81C52B0
addvar VAR_TEMP_1, 1
goto TrainerTower_EventScript_DoKnockoutBattle
TrainerTower_EventScript_MoveDoublesTrainers:: @ 81C52BA
applymovement LOCALID_TRAINER_DOUBLES2, TrainerTower_Movement_DoublesTrainer2OutOfWay
waitmovement 0
applymovement 2, Movement_1C5550
goto EventScript_1C52D7
applymovement LOCALID_TRAINER_DOUBLES1, TrainerTower_Movement_DoublesTrainer1FaceDown
goto TrainerTower_EventScript_SetFloorCleared
EventScript_1C52D0:: @ 81C52D0
applymovement 3, Movement_1C554D
EventScript_1C52D7:
setvar VAR_0x8004, 4
special sub_815D9E8
TrainerTower_EventScript_MoveLastKnockoutTrainer:: @ 81C52D0
applymovement LOCALID_TRAINER_SINGLES, TrainerTower_Movement_LastKnockoutTrainerOutOfWay
TrainerTower_EventScript_SetFloorCleared:
ttower_clearedfloor
end
EventScript_1C52E0:: @ 81C52E0
TrainerTower_EventScript_WarpToLobbyLost:: @ 81C52E0
special HealPlayerParty
setvar VAR_0x8004, 11
special sub_815D9E8
warp MAP_SEVEN_ISLAND_TRAINER_TOWER_LOBBY, 255, 9, 7
ttower_setlost
warp MAP_TRAINER_TOWER_LOBBY, 255, 9, 7
waitstate
EventScript_1C52F4:: @ 81C52F4
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
switch VAR_RESULT
case 0, EventScript_1C5327
case 1, EventScript_1C5327
case 2, EventScript_1C5331
EventScript_1C5327:
setvar VAR_0x8006, 0
goto EventScript_1C5391
EventScript_1C5331:: @ 81C5331
@@ Speaking to trainers after battle
TrainerTower_EventScript_SpeakToDoublesTrainer1:: @ 81C52F4
ttower_getchallengetype
switch VAR_RESULT
case CHALLENGE_TYPE_SINGLE, TrainerTower_EventScript_DoublesTrainer1PostBattle
case CHALLENGE_TYPE_DOUBLE, TrainerTower_EventScript_DoublesTrainer1PostBattle
case CHALLENGE_TYPE_KNOCKOUT, TrainerTower_EventScript_KnockoutTrainer2PostBattle
TrainerTower_EventScript_DoublesTrainer1PostBattle:
setvar VAR_0x8006, 0
goto TrainerTower_EventScript_DoPostBattleText
TrainerTower_EventScript_KnockoutTrainer2PostBattle:: @ 81C5331
setvar VAR_0x8006, 1
goto EventScript_1C5391
goto TrainerTower_EventScript_DoPostBattleText
EventScript_1C533B:: @ 81C533B
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
special sub_815D9E8
TrainerTower_EventScript_SpeakToSinglesTrainer:: @ 81C533B
ttower_getchallengetype
switch VAR_RESULT
case 0, EventScript_1C536E
case 1, EventScript_1C536E
case 2, EventScript_1C5378
EventScript_1C536E:
case CHALLENGE_TYPE_SINGLE, TrainerTower_EventScript_SinglesTrainerPostBattle
case CHALLENGE_TYPE_DOUBLE, TrainerTower_EventScript_SinglesTrainerPostBattle
case CHALLENGE_TYPE_KNOCKOUT, TrainerTower_EventScript_KnockoutTrainer3PostBattle
TrainerTower_EventScript_SinglesTrainerPostBattle:
setvar VAR_0x8006, 0
goto EventScript_1C5391
goto TrainerTower_EventScript_DoPostBattleText
EventScript_1C5378:: @ 81C5378
TrainerTower_EventScript_KnockoutTrainer3PostBattle:: @ 81C5378
setvar VAR_0x8006, 2
goto EventScript_1C5391
goto TrainerTower_EventScript_DoPostBattleText
EventScript_1C5382:: @ 81C5382
TrainerTower_EventScript_SpeakToKnockoutTrainer:: @ 81C5382
setvar VAR_0x8006, 0
goto EventScript_1C5391
goto TrainerTower_EventScript_DoPostBattleText
EventScript_1C538C:: @ 81C538C
TrainerTower_EventScript_SpeakToDoublesTrainer2:: @ 81C538C
setvar VAR_0x8006, 1
EventScript_1C5391:
setvar VAR_0x8004, 1
setvar VAR_0x8005, 5
special sub_815D9E8
TrainerTower_EventScript_DoPostBattleText:
ttower_getspeech TRAINER_TOWER_TEXT_AFTER
lock
faceplayer
msgbox gStringVar4
release
return
EventScript_1C53AA:: @ 81C53AA
@@ Speaking to owner
TrainerTower_EventScript_SpeakToOwner:: @ 81C53AA
lock
faceplayer
setvar VAR_0x8004, 7
special sub_815D9E8
ttower_getownerstate
switch VAR_RESULT
case 0, EventScript_1C53DA
case 1, EventScript_1C53E2
case 2, EventScript_1C5492
EventScript_1C53DA:
msgbox Text_17CA5A
EventScript_1C53E2:
setvar VAR_0x8004, 8
special sub_815D9E8
case 0, TrainerTower_Roof_EventScript_Arrived
case 1, TrainerTower_Roof_EventScript_GivePrize
case 2, TrainerTower_Roof_EventScript_OwnerEnd
TrainerTower_Roof_EventScript_Arrived:
msgbox TrainerTower_Roof_Text_ImOwnerBattledPerfectly
TrainerTower_Roof_EventScript_GivePrize:
ttower_giveprize
switch VAR_RESULT
case 0, EventScript_1C5410
case 1, EventScript_1C543A
case 2, EventScript_1C544F
EventScript_1C5410:
msgbox Text_17CB09
case 0, TrainerTower_Roof_EventScript_ReceivePrize
case 1, TrainerTower_Roof_EventScript_NoRoomForPrize
case 2, TrainerTower_Roof_EventScript_CheckFinalTime
TrainerTower_Roof_EventScript_ReceivePrize:
msgbox TrainerTower_Roof_Text_ThisIsForYou
textcolor 3
playfanfare MUS_FANFA1
message Text_ObtainedTheX
@@ -323,128 +300,105 @@ EventScript_1C5410:
getstdstring 2, STDSTRING_ITEMS_POCKET
msgbox Text_PutItemAway
call EventScript_1A6675
goto EventScript_1C544F
goto TrainerTower_Roof_EventScript_CheckFinalTime
EventScript_1C543A:: @ 81C543A
msgbox Text_17CB09
TrainerTower_Roof_EventScript_NoRoomForPrize:: @ 81C543A
msgbox TrainerTower_Roof_Text_ThisIsForYou
msgbox Text_BagIsFull
goto EventScript_1C544F
goto TrainerTower_Roof_EventScript_CheckFinalTime
EventScript_1C544F:: @ 81C544F
setvar VAR_0x8004, 9
special sub_815D9E8
TrainerTower_Roof_EventScript_CheckFinalTime:: @ 81C544F
ttower_checkfinaltime
switch VAR_RESULT
case 0, EventScript_1C547D
case 1, EventScript_1C548A
case 2, EventScript_1C5492
EventScript_1C547D:
msgbox Text_17CB1A
goto EventScript_1C5492
case 0, TrainerTower_Roof_EventScript_NewRecord
case 1, TrainerTower_Roof_EventScript_NoNewRecord
case 2, TrainerTower_Roof_EventScript_OwnerEnd
EventScript_1C548A:: @ 81C548A
msgbox Text_17CBC0
EventScript_1C5492:
msgbox Text_17CBF5
TrainerTower_Roof_EventScript_NewRecord:
msgbox TrainerTower_Roof_Text_DoneItInRecordTime
goto TrainerTower_Roof_EventScript_OwnerEnd
TrainerTower_Roof_EventScript_NoNewRecord:: @ 81C548A
msgbox TrainerTower_Roof_Text_TookSweetTimeGettingHere
TrainerTower_Roof_EventScript_OwnerEnd:
msgbox TrainerTower_Roof_Text_IdLikeToSeeBetterTime
release
return
EventScript_1C549C:: @ 81C549C
TrainerTower_EventScript_ShowTime:: @ 81C549C
lockall
setvar VAR_0x8004, 13
special sub_815D9E8
msgbox Text_17CC56
ttower_gettime
msgbox TrainerTower_Text_XMinYZSec
releaseall
end
SevenIsland_TrainerTower_2F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_4F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_6F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_8F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_5F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_7F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_3F_EventScript_1C54AF:: @ 81C54AF
SevenIsland_TrainerTower_1F_EventScript_1C54AF:: @ 81C54AF
goto EventScript_1C508F
SevenIsland_TrainerTower_2F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_4F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_6F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_8F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_5F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_7F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_3F_EventScript_1C54B4:: @ 81C54B4
SevenIsland_TrainerTower_1F_EventScript_1C54B4:: @ 81C54B4
@@ Battle triggers
TrainerTower_EventScript_SingleBattleTrigger:: @ 81C54AF
goto TrainerTower_EventScript_TriggerBattle
TrainerTower_EventScript_DoubleBattleTriggerTop:: @ 81C54B4
setvar VAR_TEMP_3, 0
setvar VAR_0x8004, 16
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_ne EventScript_1C5528
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 2, Movement_ExclamationMark
ttower_checkdoubles
compare VAR_RESULT, PLAYER_HAS_TWO_USABLE_MONS
goto_if_ne TrainerTower_EventScript_IneligibleForDoubleBattle
ttower_encountermusic
applymovement LOCALID_TRAINER_DOUBLES1, Movement_ExclamationMark
waitmovement 0
applymovement 2, Movement_Delay48
goto EventScript_1C551B
applymovement LOCALID_TRAINER_DOUBLES1, Movement_Delay48
goto TrainerTower_EventScript_TriggerDoubleBattle
SevenIsland_TrainerTower_2F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_4F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_6F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_8F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_5F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_7F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_3F_EventScript_1C54EA:: @ 81C54EA
SevenIsland_TrainerTower_1F_EventScript_1C54EA:: @ 81C54EA
TrainerTower_EventScript_DoubleBattleTriggerBottom:: @ 81C54EA
setvar VAR_TEMP_3, 1
setvar VAR_0x8004, 16
special sub_815D9E8
compare VAR_RESULT, 0
goto_if_ne EventScript_1C5528
setvar VAR_0x8004, 19
special sub_815D9E8
applymovement 5, Movement_ExclamationMark
ttower_checkdoubles
compare VAR_RESULT, PLAYER_HAS_TWO_USABLE_MONS
goto_if_ne TrainerTower_EventScript_IneligibleForDoubleBattle
ttower_encountermusic
applymovement LOCALID_TRAINER_DOUBLES2, Movement_ExclamationMark
waitmovement 0
applymovement 5, Movement_Delay48
EventScript_1C551B:
applymovement LOCALID_TRAINER_DOUBLES2, Movement_Delay48
TrainerTower_EventScript_TriggerDoubleBattle:
waitmovement 0
setvar VAR_TEMP_F, 1
goto EventScript_1C508F
setvar DISABLE_DOUBLES_TRIGGER, TRUE
goto TrainerTower_EventScript_TriggerBattle
EventScript_1C5528:: @ 81C5528
TrainerTower_EventScript_IneligibleForDoubleBattle:: @ 81C5528
lockall
playse SE_PINPON
msgbox Text_17CC73
msgbox TrainerTower_Lobby_Text_NeedTwoMonsForDouble
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Movement_1C5544
applymovement OBJ_EVENT_ID_PLAYER, TrainerTower_Movement_PushPlayerBack
waitmovement 0
releaseall
end
Movement_1C5541:
TrainerTower_Movement_SingleTrainerApproach:
walk_left
Movement_1C5542:: @ 81C5542
TrainerTower_Movement_RightKnockoutTrainerApproach:: @ 81C5542
walk_left
walk_left
Movement_1C5544:
TrainerTower_Movement_PushPlayerBack:
walk_left
step_end
Movement_1C5546:: @ 81C5546
TrainerTower_Movement_BottomKnockoutTrainerApproach:: @ 81C5546
walk_up
walk_up
step_end
Movement_1C5549:: @ 81C5549
TrainerTower_Movement_TopKnockoutTrainerApproach:: @ 81C5549
walk_down
walk_down
step_end
Movement_1C554C:: @ 81C554C
TrainerTower_Movement_DoublesTrainer2OutOfWay:: @ 81C554C
walk_right
Movement_1C554D:
TrainerTower_Movement_LastKnockoutTrainerOutOfWay:
walk_up
face_down
step_end
Movement_1C5550:: @ 81C5550
TrainerTower_Movement_DoublesTrainer1FaceDown:: @ 81C5550
face_down
step_end
+2 -2
View File
@@ -412,7 +412,7 @@ gSpecials:: @ 815FD60
def_special Special_SSAnneDepartureCutscene
def_special IsPokemonJumpSpeciesInParty
def_special IsNationalPokedexEnabled
def_special sub_815D9E8
def_special CallTrainerTowerFunc
def_special ShowPokemonJumpRecords
def_special Special_ItemIsTM_GetMoveName
def_special Special_DaisyMassageServices
@@ -439,7 +439,7 @@ gSpecials:: @ 815FD60
def_special Special_SetDeoxysTriangleObjectPal
def_special sub_8147594
def_special Special_BadEggInParty
def_special sub_815D834
def_special ReadTrainerHillAndValidate
def_special HasAllMons
def_special Special_PlayerIsNotInTrainerTowerLobby
def_special Special_BrailleCursorToggle