sovereignx/data/maps/Route124/map.json
psf bf8b09b1b6
Item Ball refactor / Pluralize item names for giveitem and finditem (#3942)
* 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>
2024-01-14 21:35:45 +01:00

220 lines
5.9 KiB
JSON

{
"id": "MAP_ROUTE124",
"name": "Route124",
"layout": "LAYOUT_ROUTE124",
"music": "MUS_ROUTE120",
"region_map_section": "MAPSEC_ROUTE_124",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_OCEAN_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"map": "MAP_ROUTE126",
"offset": 0,
"direction": "down"
},
{
"map": "MAP_LILYCOVE_CITY",
"offset": 10,
"direction": "left"
},
{
"map": "MAP_ROUTE125",
"offset": 0,
"direction": "right"
},
{
"map": "MAP_MOSSDEEP_CITY",
"offset": 40,
"direction": "right"
},
{
"map": "MAP_UNDERWATER_ROUTE124",
"offset": 0,
"direction": "dive"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 34,
"y": 25,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
"movement_range_x": 5,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route124_EventScript_Spencer",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 61,
"y": 74,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_RIGHT",
"movement_range_x": 5,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route124_EventScript_Roland",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 49,
"y": 45,
"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": "Route124_EventScript_Jenny",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 7,
"y": 23,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
"movement_range_x": 6,
"movement_range_y": 8,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route124_EventScript_Grace",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 58,
"y": 58,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_RIGHT_AND_LEFT",
"movement_range_x": 7,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "2",
"script": "Route124_EventScript_Chad",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 28,
"y": 12,
"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_RED_SHARD",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_124_RED_SHARD"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 31,
"y": 53,
"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_BLUE_SHARD",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_124_BLUE_SHARD"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 58,
"y": 11,
"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_YELLOW_SHARD",
"script": "Common_EventScript_FindItem",
"flag": "FLAG_ITEM_ROUTE_124_YELLOW_SHARD"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 18,
"y": 44,
"elevation": 1,
"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": "Route124_EventScript_Lila",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_TUBER_M_SWIMMING",
"x": 17,
"y": 44,
"elevation": 1,
"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": "Route124_EventScript_Roy",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 7,
"y": 29,
"elevation": 1,
"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": "5",
"script": "Route124_EventScript_Declan",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 69,
"y": 74,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route124_EventScript_Isabella",
"flag": "0"
}
],
"warp_events": [
{
"x": 70,
"y": 48,
"elevation": 3,
"dest_map": "MAP_ROUTE124_DIVING_TREASURE_HUNTERS_HOUSE",
"dest_warp_id": "0"
}
],
"coord_events": [],
"bg_events": [
{
"type": "sign",
"x": 73,
"y": 48,
"elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "Route124_EventScript_HuntersHouseSign"
}
]
}