import from github
This commit is contained in:
140
data/maps/Route108/map.json
Normal file
140
data/maps/Route108/map.json
Normal file
@ -0,0 +1,140 @@
|
||||
{
|
||||
"id": "MAP_ROUTE108",
|
||||
"name": "Route108",
|
||||
"layout": "LAYOUT_ROUTE108",
|
||||
"music": "MUS_ROUTE104",
|
||||
"region_map_section": "MAPSEC_ROUTE_108",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_SUNNY",
|
||||
"map_type": "MAP_TYPE_ROUTE",
|
||||
"allow_cycling": true,
|
||||
"allow_escaping": false,
|
||||
"allow_running": true,
|
||||
"show_map_name": true,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": [
|
||||
{
|
||||
"direction": "left",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE107"
|
||||
},
|
||||
{
|
||||
"direction": "right",
|
||||
"offset": -40,
|
||||
"map": "MAP_ROUTE109"
|
||||
}
|
||||
],
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 52,
|
||||
"y": 13,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_UP_LEFT_DOWN_RIGHT",
|
||||
"movement_range_x": 3,
|
||||
"movement_range_y": 3,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route108_EventScript_Jerome",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 35,
|
||||
"y": 12,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route108_EventScript_Tara",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 13,
|
||||
"y": 13,
|
||||
"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": "Route108_EventScript_Matthew",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 8,
|
||||
"y": 7,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_UP_AND_RIGHT",
|
||||
"movement_range_x": 6,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route108_EventScript_Missy",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
|
||||
"x": 41,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "1",
|
||||
"script": "Route108_EventScript_Carolina",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SAILOR",
|
||||
"x": 43,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "1",
|
||||
"script": "Route108_EventScript_Cory",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 42,
|
||||
"y": 4,
|
||||
"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": "Route108_EventScript_ItemStarPiece",
|
||||
"flag": "FLAG_ITEM_ROUTE_108_STAR_PIECE"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 29,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_ABANDONED_SHIP_DECK",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 38,
|
||||
"y": 14,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_RARE_CANDY",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_108_RARE_CANDY"
|
||||
}
|
||||
]
|
||||
}
|
49
data/maps/Route108/scripts.inc
Normal file
49
data/maps/Route108/scripts.inc
Normal file
@ -0,0 +1,49 @@
|
||||
Route108_MapScripts::
|
||||
.byte 0
|
||||
|
||||
Route108_EventScript_Jerome::
|
||||
trainerbattle_single TRAINER_JEROME, Route108_Text_JeromeIntro, Route108_Text_JeromeDefeated
|
||||
msgbox Route108_Text_JeromePostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route108_EventScript_Matthew::
|
||||
trainerbattle_single TRAINER_MATTHEW, Route108_Text_MatthewIntro, Route108_Text_MatthewDefeated
|
||||
msgbox Route108_Text_MatthewPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route108_EventScript_Tara::
|
||||
trainerbattle_single TRAINER_TARA, Route108_Text_TaraIntro, Route108_Text_TaraDefeated
|
||||
msgbox Route108_Text_TaraPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route108_EventScript_Missy::
|
||||
trainerbattle_single TRAINER_MISSY, Route108_Text_MissyIntro, Route108_Text_MissyDefeated
|
||||
msgbox Route108_Text_MissyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route108_EventScript_Carolina::
|
||||
trainerbattle_single TRAINER_CAROLINA, Route108_Text_CarolinaIntro, Route108_Text_CarolinaDefeated
|
||||
msgbox Route108_Text_CarolinaPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route108_EventScript_Cory::
|
||||
trainerbattle_single TRAINER_CORY_1, Route108_Text_CoryIntro, Route108_Text_CoryDefeated, Route108_EventScript_CoryRegisterMatchCallAfterBattle
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route108_EventScript_CoryRematch
|
||||
msgbox Route108_Text_CoryPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route108_EventScript_CoryRegisterMatchCallAfterBattle::
|
||||
special PlayerFaceTrainerAfterBattle
|
||||
waitmovement 0
|
||||
msgbox Route108_Text_CoryRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_CORY_1
|
||||
release
|
||||
end
|
||||
|
||||
Route108_EventScript_CoryRematch::
|
||||
trainerbattle_rematch TRAINER_CORY_1, Route108_Text_CoryRematchIntro, Route108_Text_CoryRematchDefeated
|
||||
msgbox Route108_Text_CoryRematchPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
Reference in New Issue
Block a user