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>
132 lines
3.1 KiB
JSON
132 lines
3.1 KiB
JSON
{
|
|
"id": "MAP_MT_PYRE_EXTERIOR",
|
|
"name": "MtPyre_Exterior",
|
|
"layout": "LAYOUT_MT_PYRE_EXTERIOR",
|
|
"music": "MUS_MT_PYRE_EXTERIOR",
|
|
"region_map_section": "MAPSEC_MT_PYRE",
|
|
"requires_flash": false,
|
|
"weather": "WEATHER_NONE",
|
|
"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": null,
|
|
"object_events": [
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 27,
|
|
"y": 15,
|
|
"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_MAX_POTION",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_MT_PYRE_EXTERIOR_MAX_POTION"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 19,
|
|
"y": 40,
|
|
"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_SKILL_SWAP",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_MT_PYRE_EXTERIOR_TM_SKILL_SWAP"
|
|
}
|
|
],
|
|
"warp_events": [
|
|
{
|
|
"x": 10,
|
|
"y": 42,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_MT_PYRE_1F",
|
|
"dest_warp_id": "1"
|
|
},
|
|
{
|
|
"x": 19,
|
|
"y": 10,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_MT_PYRE_SUMMIT",
|
|
"dest_warp_id": "1"
|
|
},
|
|
{
|
|
"x": 20,
|
|
"y": 10,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_MT_PYRE_SUMMIT",
|
|
"dest_warp_id": "1"
|
|
}
|
|
],
|
|
"coord_events": [
|
|
{
|
|
"type": "trigger",
|
|
"x": 24,
|
|
"y": 21,
|
|
"elevation": 3,
|
|
"var": "TRIGGER_RUN_IMMEDIATELY",
|
|
"var_value": "0",
|
|
"script": "MtPyre_Exterior_EventScript_FogTrigger"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 25,
|
|
"y": 21,
|
|
"elevation": 3,
|
|
"var": "TRIGGER_RUN_IMMEDIATELY",
|
|
"var_value": "0",
|
|
"script": "MtPyre_Exterior_EventScript_FogTrigger"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 22,
|
|
"y": 27,
|
|
"elevation": 3,
|
|
"var": "TRIGGER_RUN_IMMEDIATELY",
|
|
"var_value": "0",
|
|
"script": "MtPyre_Exterior_EventScript_SunTrigger"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 23,
|
|
"y": 28,
|
|
"elevation": 3,
|
|
"var": "TRIGGER_RUN_IMMEDIATELY",
|
|
"var_value": "0",
|
|
"script": "MtPyre_Exterior_EventScript_SunTrigger"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 26,
|
|
"y": 21,
|
|
"elevation": 3,
|
|
"var": "TRIGGER_RUN_IMMEDIATELY",
|
|
"var_value": "0",
|
|
"script": "MtPyre_Exterior_EventScript_FogTrigger"
|
|
}
|
|
],
|
|
"bg_events": [
|
|
{
|
|
"type": "hidden_item",
|
|
"x": 9,
|
|
"y": 8,
|
|
"elevation": 0,
|
|
"item": "ITEM_ULTRA_BALL",
|
|
"flag": "FLAG_HIDDEN_ITEM_MT_PYRE_EXTERIOR_ULTRA_BALL"
|
|
},
|
|
{
|
|
"type": "hidden_item",
|
|
"x": 16,
|
|
"y": 22,
|
|
"elevation": 0,
|
|
"item": "ITEM_MAX_ETHER",
|
|
"flag": "FLAG_HIDDEN_ITEM_MT_PYRE_EXTERIOR_MAX_ETHER"
|
|
}
|
|
]
|
|
}
|