import from github

This commit is contained in:
2022-05-19 17:14:13 +00:00
parent 5247c34f50
commit ab32b30591
12612 changed files with 1905035 additions and 83 deletions

287
data/maps/Route112/map.json Normal file
View File

@ -0,0 +1,287 @@
{
"id": "MAP_ROUTE112",
"name": "Route112",
"layout": "LAYOUT_ROUTE112",
"music": "MUS_ROUTE110",
"region_map_section": "MAPSEC_ROUTE_112",
"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": -60,
"map": "MAP_ROUTE113"
},
{
"direction": "left",
"offset": 40,
"map": "MAP_LAVARIDGE_TOWN"
},
{
"direction": "right",
"offset": -20,
"map": "MAP_ROUTE111"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_MAGMA_MEMBER_M",
"x": 26,
"y": 30,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route112_EventScript_MagmaGrunts",
"flag": "FLAG_HIDE_ROUTE_112_TEAM_MAGMA"
},
{
"graphics_id": "OBJ_EVENT_GFX_HIKER",
"x": 24,
"y": 34,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT_AND_RIGHT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route112_EventScript_Brice",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_CAMPER",
"x": 29,
"y": 49,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route112_EventScript_Larry",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_PICNICKER",
"x": 22,
"y": 46,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_ROTATE_COUNTERCLOCKWISE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route112_EventScript_Carol",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_HIKER",
"x": 15,
"y": 40,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP_AND_RIGHT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route112_EventScript_Trent",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAGMA_MEMBER_M",
"x": 27,
"y": 30,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route112_EventScript_MagmaGrunts",
"flag": "FLAG_HIDE_ROUTE_112_TEAM_MAGMA"
},
{
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
"x": 27,
"y": 6,
"elevation": 0,
"movement_type": "MOVEMENT_TYPE_BERRY_TREE_GROWTH",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "BERRY_TREE_ROUTE_112_RAWST_2",
"script": "BerryTreeScript",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
"x": 28,
"y": 6,
"elevation": 0,
"movement_type": "MOVEMENT_TYPE_BERRY_TREE_GROWTH",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "BERRY_TREE_ROUTE_112_PECHA_2",
"script": "BerryTreeScript",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
"x": 29,
"y": 6,
"elevation": 0,
"movement_type": "MOVEMENT_TYPE_BERRY_TREE_GROWTH",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "BERRY_TREE_ROUTE_112_PECHA_1",
"script": "BerryTreeScript",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
"x": 30,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_BERRY_TREE_GROWTH",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "BERRY_TREE_ROUTE_112_RAWST_1",
"script": "BerryTreeScript",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_HIKER",
"x": 8,
"y": 50,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WALK_DOWN_AND_UP",
"movement_range_x": 0,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route112_EventScript_Hiker",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 14,
"y": 43,
"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": "Route112_EventScript_ItemNugget",
"flag": "FLAG_ITEM_ROUTE_112_NUGGET"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_5",
"x": 31,
"y": 7,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route112_EventScript_Bryant",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_2",
"x": 31,
"y": 11,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP_AND_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route112_EventScript_Shayla",
"flag": "0"
}
],
"warp_events": [
{
"x": 28,
"y": 27,
"elevation": 0,
"dest_map": "MAP_ROUTE112_CABLE_CAR_STATION",
"dest_warp_id": 0
},
{
"x": 29,
"y": 27,
"elevation": 0,
"dest_map": "MAP_ROUTE112_CABLE_CAR_STATION",
"dest_warp_id": 1
},
{
"x": 6,
"y": 46,
"elevation": 3,
"dest_map": "MAP_JAGGED_PASS",
"dest_warp_id": 0
},
{
"x": 7,
"y": 46,
"elevation": 3,
"dest_map": "MAP_JAGGED_PASS",
"dest_warp_id": 1
},
{
"x": 11,
"y": 36,
"elevation": 0,
"dest_map": "MAP_FIERY_PATH",
"dest_warp_id": 0
},
{
"x": 22,
"y": 10,
"elevation": 0,
"dest_map": "MAP_FIERY_PATH",
"dest_warp_id": 1
}
],
"coord_events": [],
"bg_events": [
{
"type": "sign",
"x": 19,
"y": 44,
"elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route112_EventScript_MtChimneySign"
},
{
"type": "sign",
"x": 22,
"y": 37,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route112_EventScript_MtChimneyCableCarSign"
},
{
"type": "sign",
"x": 4,
"y": 49,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route112_EventScript_RouteSignLavaridge"
}
]
}

View File

@ -0,0 +1,145 @@
.set LOCALID_GRUNT_1, 1
.set LOCALID_GRUNT_2, 6
Route112_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route112_OnTransition
.byte 0
Route112_OnTransition:
clearflag FLAG_FORCE_MIRAGE_TOWER_VISIBLE
setvar VAR_JAGGED_PASS_ASH_WEATHER, 0
end
Route112_EventScript_MagmaGrunts::
lockall
delay 40
applymovement LOCALID_GRUNT_1, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
delay 20
msgbox Route112_Text_LeaderGoingToAwakenThing, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_1, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
applymovement LOCALID_GRUNT_2, Common_Movement_WalkInPlaceFasterLeft
waitmovement 0
delay 20
msgbox Route112_Text_YeahWeNeedMeteorite, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_2, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
applymovement LOCALID_GRUNT_1, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
delay 20
msgbox Route112_Text_OhThatsWhyCrewWentToFallarbor, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_1, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
applymovement LOCALID_GRUNT_2, Common_Movement_WalkInPlaceFasterLeft
waitmovement 0
delay 20
msgbox Route112_Text_CantLetAnyonePassUntilTheyreBack, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_2, Common_Movement_FaceOriginalDirection
waitmovement 0
releaseall
end
Route112_EventScript_MtChimneyCableCarSign::
msgbox Route112_Text_MtChimneyCableCarSign, MSGBOX_SIGN
end
Route112_EventScript_MtChimneySign::
msgbox Route112_Text_MtChimneySign, MSGBOX_SIGN
end
Route112_EventScript_RouteSignLavaridge::
msgbox Route112_Text_RouteSignLavaridge, MSGBOX_SIGN
end
Route112_EventScript_Hiker::
msgbox Route112_Text_NotEasyToGetBackToLavaridge, MSGBOX_NPC
end
Route112_EventScript_Brice::
trainerbattle_single TRAINER_BRICE, Route112_Text_BriceIntro, Route112_Text_BriceDefeat
msgbox Route112_Text_BricePostBattle, MSGBOX_AUTOCLOSE
end
Route112_EventScript_Trent::
trainerbattle_single TRAINER_TRENT_1, Route112_Text_TrentIntro, Route112_Text_TrentDefeat, Route112_EventScript_RegisterTrent
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route112_EventScript_RematchTrent
msgbox Route112_Text_TrentPostBattle, MSGBOX_DEFAULT
release
end
Route112_EventScript_RegisterTrent::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route112_Text_TrentRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_TRENT_1
release
end
Route112_EventScript_RematchTrent::
trainerbattle_rematch TRAINER_TRENT_1, Route112_Text_TrentRematchIntro, Route112_Text_TrentRematchDefeat
msgbox Route112_Text_TrentRematchPostBattle, MSGBOX_AUTOCLOSE
end
Route112_EventScript_Larry::
trainerbattle_single TRAINER_LARRY, Route112_Text_LarryIntro, Route112_Text_LarryDefeat
msgbox Route112_Text_LarryPostBattle, MSGBOX_AUTOCLOSE
end
Route112_EventScript_Carol::
trainerbattle_single TRAINER_CAROL, Route112_Text_CarolIntro, Route112_Text_CarolDefeat
msgbox Route112_Text_CarolPostBattle, MSGBOX_AUTOCLOSE
end
Route112_EventScript_Bryant::
trainerbattle_single TRAINER_BRYANT, Route112_Text_BryantIntro, Route112_Text_BryantDefeat
msgbox Route112_Text_BryantPostBattle, MSGBOX_AUTOCLOSE
end
Route112_EventScript_Shayla::
trainerbattle_single TRAINER_SHAYLA, Route112_Text_ShaylaIntro, Route112_Text_ShaylaDefeat
msgbox Route112_Text_ShaylaPostBattle, MSGBOX_AUTOCLOSE
end
Route112_Text_LeaderGoingToAwakenThing:
.string "Hey, man, is our leader really going\n"
.string "to awaken that thing?$"
Route112_Text_YeahWeNeedMeteorite:
.string "Sounds like it, yeah. But I heard\n"
.string "we need a METEORITE to do it.$"
Route112_Text_OhThatsWhyCrewWentToFallarbor:
.string "Oh, I get it now. That's why the rest\n"
.string "of the crew went out to FALLARBOR.$"
Route112_Text_CantLetAnyonePassUntilTheyreBack:
.string "You got it. And until they come back,\n"
.string "we're not to let anyone pass, right.$"
Route112_Text_NotEasyToGetBackToLavaridge:
.string "Eh, I'd like to get to MAUVILLE, but if\n"
.string "I went down these ledges, it'd be no\l"
.string "easy matter to get back to LAVARIDGE.$"
Route112_Text_MtChimneyCableCarSign:
.string "MT. CHIMNEY CABLE CAR\n"
.string "“A short walk {UP_ARROW} way!”$"
Route112_Text_MtChimneySign:
.string "MT. CHIMNEY\p"
.string "“For LAVARIDGE TOWN or the summit,\n"
.string "please take the CABLE CAR.”$"
Route112_Text_RouteSignLavaridge:
.string "ROUTE 112\n"
.string "{LEFT_ARROW} LAVARIDGE TOWN$"