import from github
This commit is contained in:
220
data/maps/Route124/map.json
Normal file
220
data/maps/Route124/map.json
Normal file
@ -0,0 +1,220 @@
|
||||
{
|
||||
"id": "MAP_ROUTE124",
|
||||
"name": "Route124",
|
||||
"layout": "LAYOUT_ROUTE124",
|
||||
"music": "MUS_ROUTE120",
|
||||
"region_map_section": "MAPSEC_ROUTE_124",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_SUNNY",
|
||||
"map_type": "MAP_TYPE_OCEAN_ROUTE",
|
||||
"allow_cycling": true,
|
||||
"allow_escaping": false,
|
||||
"allow_running": true,
|
||||
"show_map_name": true,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": [
|
||||
{
|
||||
"direction": "down",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE126"
|
||||
},
|
||||
{
|
||||
"direction": "left",
|
||||
"offset": 10,
|
||||
"map": "MAP_LILYCOVE_CITY"
|
||||
},
|
||||
{
|
||||
"direction": "right",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE125"
|
||||
},
|
||||
{
|
||||
"direction": "right",
|
||||
"offset": 40,
|
||||
"map": "MAP_MOSSDEEP_CITY"
|
||||
},
|
||||
{
|
||||
"direction": "dive",
|
||||
"offset": 0,
|
||||
"map": "MAP_UNDERWATER_ROUTE124"
|
||||
}
|
||||
],
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 34,
|
||||
"y": 25,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 5,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route124_EventScript_Spencer",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 61,
|
||||
"y": 74,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_RIGHT",
|
||||
"movement_range_x": 5,
|
||||
"movement_range_y": 3,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "7",
|
||||
"script": "Route124_EventScript_Roland",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 49,
|
||||
"y": 45,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_ROTATE_CLOCKWISE",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route124_EventScript_Jenny",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 7,
|
||||
"y": 23,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
|
||||
"movement_range_x": 6,
|
||||
"movement_range_y": 8,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "5",
|
||||
"script": "Route124_EventScript_Grace",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 58,
|
||||
"y": 58,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_RIGHT_AND_LEFT",
|
||||
"movement_range_x": 7,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "2",
|
||||
"script": "Route124_EventScript_Chad",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 28,
|
||||
"y": 12,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route124_EventScript_ItemRedShard",
|
||||
"flag": "FLAG_ITEM_ROUTE_124_RED_SHARD"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 31,
|
||||
"y": 53,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route124_EventScript_ItemBlueShard",
|
||||
"flag": "FLAG_ITEM_ROUTE_124_BLUE_SHARD"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 58,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route124_EventScript_ItemYellowShard",
|
||||
"flag": "FLAG_ITEM_ROUTE_124_YELLOW_SHARD"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 18,
|
||||
"y": 44,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "1",
|
||||
"script": "Route124_EventScript_Lila",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_TUBER_M_SWIMMING",
|
||||
"x": 17,
|
||||
"y": 44,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "1",
|
||||
"script": "Route124_EventScript_Roy",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 7,
|
||||
"y": 29,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "5",
|
||||
"script": "Route124_EventScript_Declan",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 69,
|
||||
"y": 74,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "7",
|
||||
"script": "Route124_EventScript_Isabella",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 70,
|
||||
"y": 48,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_ROUTE124_DIVING_TREASURE_HUNTERS_HOUSE",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 73,
|
||||
"y": 48,
|
||||
"elevation": 3,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route124_EventScript_HuntersHouseSign"
|
||||
}
|
||||
]
|
||||
}
|
104
data/maps/Route124/scripts.inc
Normal file
104
data/maps/Route124/scripts.inc
Normal file
@ -0,0 +1,104 @@
|
||||
Route124_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, Route124_OnTransition
|
||||
.byte 0
|
||||
|
||||
Route124_OnTransition:
|
||||
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
|
||||
end
|
||||
|
||||
Route124_EventScript_HuntersHouseSign::
|
||||
msgbox Route124_Text_HuntersHouse, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
Route124_EventScript_Spencer::
|
||||
trainerbattle_single TRAINER_SPENCER, Route124_Text_SpencerIntro, Route124_Text_SpencerDefeat
|
||||
msgbox Route124_Text_SpencerPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Roland::
|
||||
trainerbattle_single TRAINER_ROLAND, Route124_Text_RolandIntro, Route124_Text_RolandDefeat
|
||||
msgbox Route124_Text_RolandPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Jenny::
|
||||
trainerbattle_single TRAINER_JENNY_1, Route124_Text_JennyIntro, Route124_Text_JennyDefeat, Route124_EventScript_RegisterJenny
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchJenny
|
||||
msgbox Route124_Text_JennyPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RegisterJenny::
|
||||
special PlayerFaceTrainerAfterBattle
|
||||
waitmovement 0
|
||||
msgbox Route124_Text_JennyRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_JENNY_1
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RematchJenny::
|
||||
trainerbattle_rematch TRAINER_JENNY_1, Route124_Text_JennyRematchIntro, Route124_Text_JennyRematchDefeat
|
||||
msgbox Route124_Text_JennyPostRematch, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Grace::
|
||||
trainerbattle_single TRAINER_GRACE, Route124_Text_GraceIntro, Route124_Text_GraceDefeat
|
||||
msgbox Route124_Text_GracePostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Chad::
|
||||
trainerbattle_single TRAINER_CHAD, Route124_Text_ChadIntro, Route124_Text_ChadDefeat
|
||||
msgbox Route124_Text_ChadPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Lila::
|
||||
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_LilaIntro, Route124_Text_LilaDefeat, Route124_Text_LilaNotEnoughMons, Route124_EventScript_RegisterLila
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchLila
|
||||
msgbox Route124_Text_LilaPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RegisterLila::
|
||||
msgbox Route124_Text_LilaRoyRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_LILA_AND_ROY_1
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RematchLila::
|
||||
trainerbattle_rematch_double TRAINER_LILA_AND_ROY_1, Route124_Text_LilaRematchIntro, Route124_Text_LilaRematchDefeat, Route124_Text_LilaRematchNotEnoughMons
|
||||
msgbox Route124_Text_LilaPostRematch, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Roy::
|
||||
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_RoyIntro, Route124_Text_RoyDefeat, Route124_Text_RoyNotEnoughMons, Route124_EventScript_RegisterRoy
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchRoy
|
||||
msgbox Route124_Text_RoyPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RegisterRoy::
|
||||
msgbox Route124_Text_LilaRoyRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_LILA_AND_ROY_1
|
||||
release
|
||||
end
|
||||
|
||||
Route124_EventScript_RematchRoy::
|
||||
trainerbattle_rematch_double TRAINER_LILA_AND_ROY_1, Route124_Text_RoyRematchIntro, Route124_Text_RoyRematchDefeat, Route124_Text_RoyRematchNotEnoughMons
|
||||
msgbox Route124_Text_RoyPostRematch, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Declan::
|
||||
trainerbattle_single TRAINER_DECLAN, Route124_Text_DeclanIntro, Route124_Text_DeclanDefeat
|
||||
msgbox Route124_Text_DeclanPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_EventScript_Isabella::
|
||||
trainerbattle_single TRAINER_ISABELLA, Route124_Text_IsabellaIntro, Route124_Text_IsabellaDefeat
|
||||
msgbox Route124_Text_IsabellaPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route124_Text_HuntersHouse:
|
||||
.string "HUNTER'S HOUSE$"
|
||||
|
Reference in New Issue
Block a user