bf8b09b1b6
* Emptied out item_ball_scripts Added GetObjectEventTrainerRangeFromTemplate Added Common_EventScript_FindItem * Replaced trainer_sight_or_berry_tree_id with item constant Replaced scripts with Common_EventScript_FindItem * Renamed to GetItemBallIdAndAmountFromTemplate Moved to item_ball.c * Updated ObjectEventTemplate * Updated inc files to support plural item names * Refactored CopyItemNameHandlePlural to handle all items * Change failsafe in GetItemBallIdFromTemplate to be ITEM_NONE + 1 instead of ITEMS_COUNT * Converted spaces to tabs https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415663 https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415525 https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415409 https://github.com/rh-hideout/pokeemerald-expansion/pull/3942\#discussion_r1446415130 * Added warning on object_event macro to prevent silent failure Reverted global.fieldmap to original state, per feedback --------- Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
455 lines
12 KiB
JSON
455 lines
12 KiB
JSON
{
|
|
"id": "MAP_ROUTE115",
|
|
"name": "Route115",
|
|
"layout": "LAYOUT_ROUTE115",
|
|
"music": "MUS_ROUTE104",
|
|
"region_map_section": "MAPSEC_ROUTE_115",
|
|
"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": [
|
|
{
|
|
"map": "MAP_RUSTBORO_CITY",
|
|
"offset": 0,
|
|
"direction": "down"
|
|
},
|
|
{
|
|
"map": "MAP_ROUTE114",
|
|
"offset": -40,
|
|
"direction": "right"
|
|
}
|
|
],
|
|
"object_events": [
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_WOMAN_2",
|
|
"x": 18,
|
|
"y": 68,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND",
|
|
"movement_range_x": 1,
|
|
"movement_range_y": 1,
|
|
"trainer_type": "TRAINER_TYPE_NONE",
|
|
"trainer_sight_or_berry_tree_id": "0",
|
|
"script": "Route115_EventScript_Woman",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_EXPERT_M",
|
|
"x": 5,
|
|
"y": 15,
|
|
"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": "6",
|
|
"script": "Route115_EventScript_Timothy",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BLACK_BELT",
|
|
"x": 27,
|
|
"y": 53,
|
|
"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": "4",
|
|
"script": "Route115_EventScript_Nob",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
|
|
"x": 12,
|
|
"y": 5,
|
|
"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_115_KELPSY_1",
|
|
"script": "BerryTreeScript",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
|
|
"x": 13,
|
|
"y": 5,
|
|
"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_115_KELPSY_2",
|
|
"script": "BerryTreeScript",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
|
|
"x": 14,
|
|
"y": 5,
|
|
"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_115_KELPSY_3",
|
|
"script": "BerryTreeScript",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_GIRL_3",
|
|
"x": 15,
|
|
"y": 50,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_DOWN",
|
|
"movement_range_x": 0,
|
|
"movement_range_y": 0,
|
|
"trainer_type": "TRAINER_TYPE_NORMAL",
|
|
"trainer_sight_or_berry_tree_id": "3",
|
|
"script": "Route115_EventScript_Cyndy",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BLACK_BELT",
|
|
"x": 19,
|
|
"y": 15,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_WALK_LEFT_AND_RIGHT",
|
|
"movement_range_x": 5,
|
|
"movement_range_y": 0,
|
|
"trainer_type": "TRAINER_TYPE_NORMAL",
|
|
"trainer_sight_or_berry_tree_id": "2",
|
|
"script": "Route115_EventScript_Koichi",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_MANIAC",
|
|
"x": 24,
|
|
"y": 62,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
|
|
"movement_range_x": 0,
|
|
"movement_range_y": 0,
|
|
"trainer_type": "TRAINER_TYPE_NORMAL",
|
|
"trainer_sight_or_berry_tree_id": "4",
|
|
"script": "Route115_EventScript_Hector",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 20,
|
|
"y": 60,
|
|
"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": "ITEM_SUPER_POTION",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_SUPER_POTION"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 18,
|
|
"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": "ITEM_TM_FOCUS_PUNCH",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_TM_FOCUS_PUNCH"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 23,
|
|
"y": 29,
|
|
"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": "ITEM_IRON",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_IRON"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
|
|
"x": 31,
|
|
"y": 64,
|
|
"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_115_BLUK_1",
|
|
"script": "BerryTreeScript",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BERRY_TREE",
|
|
"x": 31,
|
|
"y": 65,
|
|
"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_115_BLUK_2",
|
|
"script": "BerryTreeScript",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_BREAKABLE_ROCK",
|
|
"x": 29,
|
|
"y": 50,
|
|
"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": "EventScript_RockSmash",
|
|
"flag": "FLAG_TEMP_11"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 31,
|
|
"y": 56,
|
|
"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": "ITEM_GREAT_BALL",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_GREAT_BALL"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_RUNNING_TRIATHLETE_F",
|
|
"x": 10,
|
|
"y": 15,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_DOWN_RIGHT_UP_LEFT",
|
|
"movement_range_x": 3,
|
|
"movement_range_y": 3,
|
|
"trainer_type": "TRAINER_TYPE_NORMAL",
|
|
"trainer_sight_or_berry_tree_id": "2",
|
|
"script": "Route115_EventScript_Kyra",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_NINJA_BOY",
|
|
"x": 11,
|
|
"y": 12,
|
|
"elevation": 3,
|
|
"movement_type": "MOVEMENT_TYPE_TREE_DISGUISE",
|
|
"movement_range_x": 1,
|
|
"movement_range_y": 1,
|
|
"trainer_type": "TRAINER_TYPE_NORMAL",
|
|
"trainer_sight_or_berry_tree_id": "3",
|
|
"script": "Route115_EventScript_Jaiden",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_GIRL_3",
|
|
"x": 15,
|
|
"y": 7,
|
|
"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": "Route115_EventScript_Helene",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_LASS",
|
|
"x": 10,
|
|
"y": 7,
|
|
"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": "4",
|
|
"script": "Route115_EventScript_Alix",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_LASS",
|
|
"x": 28,
|
|
"y": 62,
|
|
"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": "Route115_EventScript_Marlene",
|
|
"flag": "0"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 26,
|
|
"y": 67,
|
|
"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": "ITEM_PP_UP",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_PP_UP"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 12,
|
|
"y": 14,
|
|
"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": "ITEM_HEAL_POWDER",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_ROUTE_115_HEAL_POWDER"
|
|
}
|
|
],
|
|
"warp_events": [
|
|
{
|
|
"x": 27,
|
|
"y": 37,
|
|
"elevation": 0,
|
|
"dest_map": "MAP_METEOR_FALLS_1F_1R",
|
|
"dest_warp_id": "1"
|
|
},
|
|
{
|
|
"x": 21,
|
|
"y": 6,
|
|
"elevation": 0,
|
|
"dest_map": "MAP_TERRA_CAVE_ENTRANCE",
|
|
"dest_warp_id": "0"
|
|
},
|
|
{
|
|
"x": 36,
|
|
"y": 10,
|
|
"elevation": 0,
|
|
"dest_map": "MAP_TERRA_CAVE_ENTRANCE",
|
|
"dest_warp_id": "0"
|
|
}
|
|
],
|
|
"coord_events": [],
|
|
"bg_events": [
|
|
{
|
|
"type": "secret_base",
|
|
"x": 32,
|
|
"y": 6,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE4_2"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 21,
|
|
"y": 18,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE3_2"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 16,
|
|
"y": 64,
|
|
"elevation": 0,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "Route115_EventScript_RouteSignRustboro"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 25,
|
|
"y": 38,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "Route115_EventScript_MeteorFallsSign"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 8,
|
|
"y": 30,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_YELLOW_CAVE2_3"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 32,
|
|
"y": 39,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE1_2"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 26,
|
|
"y": 15,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE2_2"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 23,
|
|
"y": 8,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE1_3"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 32,
|
|
"y": 46,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE2_3"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 7,
|
|
"y": 20,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_TREE2_4"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 8,
|
|
"y": 20,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_TREE3_3"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 25,
|
|
"y": 24,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_BROWN_CAVE3_3"
|
|
},
|
|
{
|
|
"type": "secret_base",
|
|
"x": 20,
|
|
"y": 53,
|
|
"elevation": 0,
|
|
"secret_base_id": "SECRET_BASE_RED_CAVE3_1"
|
|
},
|
|
{
|
|
"type": "hidden_item",
|
|
"x": 15,
|
|
"y": 49,
|
|
"elevation": 3,
|
|
"item": "ITEM_HEART_SCALE",
|
|
"flag": "FLAG_HIDDEN_ITEM_ROUTE_115_HEART_SCALE"
|
|
}
|
|
]
|
|
}
|