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

465
data/maps/Route113/map.json Normal file
View File

@ -0,0 +1,465 @@
{
"id": "MAP_ROUTE113",
"name": "Route113",
"layout": "LAYOUT_ROUTE113",
"music": "MUS_ROUTE113",
"region_map_section": "MAPSEC_ROUTE_113",
"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": "down",
"offset": 60,
"map": "MAP_ROUTE112"
},
{
"direction": "left",
"offset": 0,
"map": "MAP_FALLARBOR_TOWN"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_ROUTE111"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_NINJA_BOY",
"x": 66,
"y": 12,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT",
"movement_range_x": 1,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route113_EventScript_NinjaBoy",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_GENTLEMAN",
"x": 36,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WANDER_UP_AND_DOWN",
"movement_range_x": 0,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "Route113_EventScript_Gentleman",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_YOUNGSTER",
"x": 62,
"y": 8,
"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": "Route113_EventScript_Jaylen",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_YOUNGSTER",
"x": 21,
"y": 11,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_LEFT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route113_EventScript_Dillon",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
"x": 51,
"y": 11,
"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": "2",
"script": "Route113_EventScript_Madeline",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 53,
"y": 7,
"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": "Route113_EventScript_ItemMaxEther",
"flag": "FLAG_ITEM_ROUTE_113_MAX_ETHER"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 79,
"y": 5,
"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": "Route113_EventScript_ItemSuperRepel",
"flag": "FLAG_ITEM_ROUTE_113_SUPER_REPEL"
},
{
"graphics_id": "OBJ_EVENT_GFX_NINJA_BOY",
"x": 29,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_BURIED",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_BURIED",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route113_EventScript_Lao",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_NINJA_BOY",
"x": 71,
"y": 2,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_BURIED",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_BURIED",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route113_EventScript_Lung",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_TWIN",
"x": 45,
"y": 6,
"elevation": 3,
"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": "Route113_EventScript_Tori",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_TWIN",
"x": 46,
"y": 6,
"elevation": 3,
"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": "Route113_EventScript_Tia",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 15,
"y": 15,
"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": "Route113_EventScript_ItemHyperPotion",
"flag": "FLAG_ITEM_ROUTE_113_HYPER_POTION"
},
{
"graphics_id": "OBJ_EVENT_GFX_MANIAC",
"x": 75,
"y": 3,
"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": "4",
"script": "Route113_EventScript_Wyatt",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_CAMPER",
"x": 71,
"y": 4,
"elevation": 3,
"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": "1",
"script": "Route113_EventScript_Lawrence",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_PICNICKER",
"x": 7,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WALK_DOWN_AND_UP",
"movement_range_x": 1,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "6",
"script": "Route113_EventScript_Sophie",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_5",
"x": 7,
"y": 13,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WALK_UP_AND_DOWN",
"movement_range_x": 1,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "6",
"script": "Route113_EventScript_Coby",
"flag": "0"
}
],
"warp_events": [
{
"x": 33,
"y": 5,
"elevation": 0,
"dest_map": "MAP_ROUTE113_GLASS_WORKSHOP",
"dest_warp_id": 0
},
{
"x": 41,
"y": 12,
"elevation": 0,
"dest_map": "MAP_TERRA_CAVE_ENTRANCE",
"dest_warp_id": 0
},
{
"x": 88,
"y": 5,
"elevation": 0,
"dest_map": "MAP_TERRA_CAVE_ENTRANCE",
"dest_warp_id": 0
}
],
"coord_events": [
{
"type": "weather",
"x": 19,
"y": 11,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 19,
"y": 10,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 19,
"y": 12,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 19,
"y": 13,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 86,
"y": 9,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 85,
"y": 10,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 85,
"y": 11,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 14,
"y": 10,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 14,
"y": 11,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 14,
"y": 12,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 14,
"y": 13,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 94,
"y": 8,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 94,
"y": 9,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 94,
"y": 10,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 94,
"y": 11,
"elevation": 0,
"weather": "COORD_EVENT_WEATHER_SUNNY"
},
{
"type": "weather",
"x": 19,
"y": 14,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 87,
"y": 8,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 87,
"y": 6,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
},
{
"type": "weather",
"x": 87,
"y": 7,
"elevation": 3,
"weather": "COORD_EVENT_WEATHER_VOLCANIC_ASH"
}
],
"bg_events": [
{
"type": "sign",
"x": 85,
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route113_EventScript_RouteSign111"
},
{
"type": "sign",
"x": 12,
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route113_EventScript_RouteSignFallarbor"
},
{
"type": "sign",
"x": 58,
"y": 4,
"elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route113_EventScript_TrainerTipsRegisterKeyItems"
},
{
"type": "sign",
"x": 31,
"y": 5,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route113_EventScript_GlassWorkshopSign"
},
{
"type": "secret_base",
"x": 49,
"y": 8,
"elevation": 3,
"secret_base_id": "SECRET_BASE_RED_CAVE1_3"
},
{
"type": "hidden_item",
"x": 66,
"y": 3,
"elevation": 3,
"item": "ITEM_ETHER",
"flag": "FLAG_HIDDEN_ITEM_ROUTE_113_ETHER"
},
{
"type": "hidden_item",
"x": 22,
"y": 5,
"elevation": 3,
"item": "ITEM_TM32",
"flag": "FLAG_HIDDEN_ITEM_ROUTE_113_TM_32"
},
{
"type": "hidden_item",
"x": 73,
"y": 3,
"elevation": 3,
"item": "ITEM_NUGGET",
"flag": "FLAG_HIDDEN_ITEM_ROUTE_113_NUGGET"
}
]
}

View File

@ -0,0 +1,166 @@
Route113_MapScripts::
map_script MAP_SCRIPT_ON_RESUME, Route113_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, Route113_OnTransition
.byte 0
Route113_OnResume:
setstepcallback STEP_CB_ASH
end
Route113_OnTransition:
clearflag FLAG_FORCE_MIRAGE_TOWER_VISIBLE
call Route113_EventScript_CheckSetAshWeather
end
Route113_EventScript_CheckSetAshWeather::
getplayerxy VAR_TEMP_0, VAR_TEMP_1
goto_if_lt VAR_TEMP_0, 19, Route113_EventScript_DontSetAshWeather
goto_if_gt VAR_TEMP_0, 84, Route113_EventScript_DontSetAshWeather
setweather WEATHER_VOLCANIC_ASH
return
Route113_EventScript_DontSetAshWeather::
return
Route113_EventScript_Gentleman::
msgbox Route113_Text_AshCanBeFashionedIntoGlass, MSGBOX_NPC
end
Route113_EventScript_NinjaBoy::
msgbox Route113_Text_FunWalkingThroughAsh, MSGBOX_NPC
end
Route113_EventScript_RouteSign111::
msgbox Route113_Text_RouteSign111, MSGBOX_SIGN
end
Route113_EventScript_RouteSignFallarbor::
msgbox Route113_Text_RouteSignFallarbor, MSGBOX_SIGN
end
Route113_EventScript_GlassWorkshopSign::
msgbox Route113_Text_GlassWorkshopSign, MSGBOX_SIGN
end
Route113_EventScript_TrainerTipsRegisterKeyItems::
msgbox Route113_Text_TrainerTipsRegisterKeyItems, MSGBOX_SIGN
end
Route113_EventScript_Jaylen::
trainerbattle_single TRAINER_JAYLEN, Route113_Text_JaylenIntro, Route113_Text_JaylenDefeat
msgbox Route113_Text_JaylenPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Dillon::
trainerbattle_single TRAINER_DILLON, Route113_Text_DillonIntro, Route113_Text_DillonDefeat
msgbox Route113_Text_DillonPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Madeline::
trainerbattle_single TRAINER_MADELINE_1, Route113_Text_MadelineIntro, Route113_Text_MadelineDefeat, Route113_EventScript_RegisterMadeline
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchMadeline
msgbox Route113_Text_MadelinePostBattle, MSGBOX_DEFAULT
release
end
Route113_EventScript_RegisterMadeline::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route113_Text_MadelineRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_MADELINE_1
release
end
Route113_EventScript_RematchMadeline::
trainerbattle_rematch TRAINER_MADELINE_1, Route113_Text_MadelineRematchIntro, Route113_Text_MadelineRematchDefeat
msgbox Route113_Text_MadelinePostRematch, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Lao::
trainerbattle_single TRAINER_LAO_1, Route113_Text_LaoIntro, Route113_Text_LaoDefeat, Route113_EventScript_RegisterLao
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchLao
msgbox Route113_Text_LaoPostBattle, MSGBOX_DEFAULT
release
end
Route113_EventScript_RegisterLao::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route113_Text_LaoRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_LAO_1
release
end
Route113_EventScript_RematchLao::
trainerbattle_rematch TRAINER_LAO_1, Route113_Text_LaoRematchIntro, Route113_Text_LaoRematchDefeat
msgbox Route113_Text_LaoPostRematch, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Lung::
trainerbattle_single TRAINER_LUNG, Route113_Text_LungIntro, Route113_Text_LungDefeat
msgbox Route113_Text_LungPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Tori::
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_ToriIntro, Route113_Text_ToriDefeat, Route113_Text_ToriNotEnoughMons
msgbox Route113_Text_ToriPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Tia::
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_TiaIntro, Route113_Text_TiaDefeat, Route113_Text_TiaNotEnoughMons
msgbox Route113_Text_TiaPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Sophie::
trainerbattle_single TRAINER_SOPHIE, Route113_Text_SophieIntro, Route113_Text_SophieDefeat
msgbox Route113_Text_SophiePostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Coby::
trainerbattle_single TRAINER_COBY, Route113_Text_CobyIntro, Route113_Text_CobyDefeat
msgbox Route113_Text_CobyPostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Lawrence::
trainerbattle_single TRAINER_LAWRENCE, Route113_Text_LawrenceIntro, Route113_Text_LawrenceDefeat
msgbox Route113_Text_LawrencePostBattle, MSGBOX_AUTOCLOSE
end
Route113_EventScript_Wyatt::
trainerbattle_single TRAINER_WYATT, Route113_Text_WyattIntro, Route113_Text_WyattDefeat
msgbox Route113_Text_WyattPostBattle, MSGBOX_AUTOCLOSE
end
Route113_Text_AshCanBeFashionedIntoGlass:
.string "Wahahaha! Today's technology is a\n"
.string "wondrous thing!\p"
.string "Take this volcanic ash here.\n"
.string "It can be fashioned into glass.$"
Route113_Text_FunWalkingThroughAsh:
.string "It's fun walking through the volcano's\n"
.string "ashes on the ground and grass.\p"
.string "You can see where you walked--it's\n"
.string "really neat!$"
Route113_Text_RouteSign111:
.string "ROUTE 113\n"
.string "{RIGHT_ARROW} ROUTE 111$"
Route113_Text_RouteSignFallarbor:
.string "ROUTE 113\n"
.string "{LEFT_ARROW} FALLARBOR TOWN$"
Route113_Text_TrainerTipsRegisterKeyItems:
.string "TRAINER TIPS\p"
.string "You may register one of the KEY ITEMS\n"
.string "in your BAG as SELECT.\p"
.string "Simply press SELECT to use\n"
.string "the registered item conveniently.$"
Route113_Text_GlassWorkshopSign:
.string "GLASS WORKSHOP\n"
.string "“Turning Volcanic Ash into Glass Items”$"