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>
289 lines
7.5 KiB
JSON
289 lines
7.5 KiB
JSON
{
|
|
"id": "MAP_NEW_MAUVILLE_INSIDE",
|
|
"name": "NewMauville_Inside",
|
|
"layout": "LAYOUT_NEW_MAUVILLE_INSIDE",
|
|
"music": "MUS_MT_PYRE",
|
|
"region_map_section": "MAPSEC_NEW_MAUVILLE",
|
|
"requires_flash": false,
|
|
"weather": "WEATHER_NONE",
|
|
"map_type": "MAP_TYPE_UNDERGROUND",
|
|
"allow_cycling": true,
|
|
"allow_escaping": true,
|
|
"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": 32,
|
|
"y": 25,
|
|
"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_ULTRA_BALL",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_NEW_MAUVILLE_ULTRA_BALL"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 16,
|
|
"y": 22,
|
|
"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_ESCAPE_ROPE",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_NEW_MAUVILLE_ESCAPE_ROPE"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 39,
|
|
"y": 4,
|
|
"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_THUNDER_STONE",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_NEW_MAUVILLE_THUNDER_STONE"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 17,
|
|
"y": 10,
|
|
"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_FULL_HEAL",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_NEW_MAUVILLE_FULL_HEAL"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 2,
|
|
"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_PARALYZE_HEAL",
|
|
"script": "Common_EventScript_FindItem",
|
|
"flag": "FLAG_ITEM_NEW_MAUVILLE_PARALYZE_HEAL"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 25,
|
|
"y": 18,
|
|
"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": "NewMauville_Inside_EventScript_Voltorb1",
|
|
"flag": "FLAG_HIDE_NEW_MAUVILLE_VOLTORB_1"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 6,
|
|
"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": "0",
|
|
"script": "NewMauville_Inside_EventScript_Voltorb2",
|
|
"flag": "FLAG_HIDE_NEW_MAUVILLE_VOLTORB_2"
|
|
},
|
|
{
|
|
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
|
"x": 13,
|
|
"y": 10,
|
|
"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": "NewMauville_Inside_EventScript_Voltorb3",
|
|
"flag": "FLAG_HIDE_NEW_MAUVILLE_VOLTORB_3"
|
|
}
|
|
],
|
|
"warp_events": [
|
|
{
|
|
"x": 32,
|
|
"y": 33,
|
|
"elevation": 3,
|
|
"dest_map": "MAP_NEW_MAUVILLE_ENTRANCE",
|
|
"dest_warp_id": "1"
|
|
}
|
|
],
|
|
"coord_events": [
|
|
{
|
|
"type": "trigger",
|
|
"x": 30,
|
|
"y": 38,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_1",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_BlueButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 18,
|
|
"y": 36,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_2",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_GreenButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 4,
|
|
"y": 26,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_1",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_BlueButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 16,
|
|
"y": 22,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_1",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_BlueButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 25,
|
|
"y": 18,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_2",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_GreenButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 2,
|
|
"y": 11,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_2",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_GreenButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 6,
|
|
"y": 11,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_1",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_BlueButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 13,
|
|
"y": 10,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_1",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_BlueButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 17,
|
|
"y": 10,
|
|
"elevation": 3,
|
|
"var": "VAR_TEMP_2",
|
|
"var_value": "0",
|
|
"script": "NewMauville_Inside_EventScript_GreenButton"
|
|
},
|
|
{
|
|
"type": "trigger",
|
|
"x": 33,
|
|
"y": 6,
|
|
"elevation": 3,
|
|
"var": "VAR_NEW_MAUVILLE_STATE",
|
|
"var_value": "1",
|
|
"script": "NewMauville_Inside_EventScript_RedButton"
|
|
}
|
|
],
|
|
"bg_events": [
|
|
{
|
|
"type": "sign",
|
|
"x": 32,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 32,
|
|
"y": 3,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 32,
|
|
"y": 2,
|
|
"elevation": 0,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 33,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 34,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 35,
|
|
"y": 4,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 35,
|
|
"y": 3,
|
|
"elevation": 3,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
},
|
|
{
|
|
"type": "sign",
|
|
"x": 35,
|
|
"y": 2,
|
|
"elevation": 0,
|
|
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
|
"script": "NewMauville_Inside_EventScript_Generator"
|
|
}
|
|
]
|
|
}
|