import from github
This commit is contained in:
138
data/maps/Route106/map.json
Normal file
138
data/maps/Route106/map.json
Normal file
@ -0,0 +1,138 @@
|
||||
{
|
||||
"id": "MAP_ROUTE106",
|
||||
"name": "Route106",
|
||||
"layout": "LAYOUT_ROUTE106",
|
||||
"music": "MUS_ROUTE104",
|
||||
"region_map_section": "MAPSEC_ROUTE_106",
|
||||
"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": "up",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE105"
|
||||
},
|
||||
{
|
||||
"direction": "down",
|
||||
"offset": 60,
|
||||
"map": "MAP_DEWFORD_TOWN"
|
||||
}
|
||||
],
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 18,
|
||||
"y": 5,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_LEFT_AND_RIGHT",
|
||||
"movement_range_x": 4,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route106_EventScript_Douglas",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 29,
|
||||
"y": 10,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route106_EventScript_Kyla",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
|
||||
"x": 51,
|
||||
"y": 14,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "4",
|
||||
"script": "Route106_EventScript_Elliot",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
|
||||
"x": 65,
|
||||
"y": 14,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route106_EventScript_Ned",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 29,
|
||||
"y": 14,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route106_EventScript_ItemProtein",
|
||||
"flag": "FLAG_ITEM_ROUTE_106_PROTEIN"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 48,
|
||||
"y": 16,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_GRANITE_CAVE_1F",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 41,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_POKE_BALL",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_106_POKE_BALL"
|
||||
},
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 53,
|
||||
"y": 12,
|
||||
"elevation": 0,
|
||||
"item": "ITEM_STARDUST",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_106_STARDUST"
|
||||
},
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 68,
|
||||
"y": 15,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_HEART_SCALE",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_106_HEART_SCALE"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 59,
|
||||
"y": 13,
|
||||
"elevation": 3,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route106_EventScript_TrainerTipsSign"
|
||||
}
|
||||
]
|
||||
}
|
48
data/maps/Route106/scripts.inc
Normal file
48
data/maps/Route106/scripts.inc
Normal file
@ -0,0 +1,48 @@
|
||||
Route106_MapScripts::
|
||||
.byte 0
|
||||
|
||||
Route106_EventScript_TrainerTipsSign::
|
||||
msgbox Route106_Text_TrainerTips, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
Route106_EventScript_Douglas::
|
||||
trainerbattle_single TRAINER_DOUGLAS, Route106_Text_DouglasIntro, Route106_Text_DouglasDefeated
|
||||
msgbox Route106_Text_DouglasPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route106_EventScript_Kyla::
|
||||
trainerbattle_single TRAINER_KYLA, Route106_Text_KylaIntro, Route106_Text_KylaDefeated
|
||||
msgbox Route106_Text_KylaPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route106_EventScript_Elliot::
|
||||
trainerbattle_single TRAINER_ELLIOT_1, Route106_Text_ElliotIntro, Route106_Text_ElliotDefeated, Route106_EventScript_ElliotRegisterMatchCallAfterBattle
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route106_EventScript_ElliotRematch
|
||||
msgbox Route106_Text_ElliotPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route106_EventScript_ElliotRegisterMatchCallAfterBattle::
|
||||
special PlayerFaceTrainerAfterBattle
|
||||
waitmovement 0
|
||||
msgbox Route106_Text_ElliotRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_ELLIOT_1
|
||||
release
|
||||
end
|
||||
|
||||
Route106_EventScript_ElliotRematch::
|
||||
trainerbattle_rematch TRAINER_ELLIOT_1, Route106_Text_ElliotRematchIntro, Route106_Text_ElliotRematchDefeated
|
||||
msgbox Route106_Text_ElliotRematchPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route106_EventScript_Ned::
|
||||
trainerbattle_single TRAINER_NED, Route106_Text_NedIntro, Route106_Text_NedDefeated
|
||||
msgbox Route106_Text_NedPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route106_Text_TrainerTips:
|
||||
.string "TRAINER TIPS\p"
|
||||
.string "Advice on catching POKéMON with a ROD:\n"
|
||||
.string "Press the A Button if you get a bite.$"
|
||||
|
Reference in New Issue
Block a user