import from github
This commit is contained in:
85
data/maps/ShoalCave_LowTideLowerRoom/map.json
Normal file
85
data/maps/ShoalCave_LowTideLowerRoom/map.json
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"id": "MAP_SHOAL_CAVE_LOW_TIDE_LOWER_ROOM",
|
||||
"name": "ShoalCave_LowTideLowerRoom",
|
||||
"layout": "LAYOUT_SHOAL_CAVE_LOW_TIDE_LOWER_ROOM",
|
||||
"music": "MUS_MT_PYRE",
|
||||
"region_map_section": "MAPSEC_SHOAL_CAVE",
|
||||
"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_PUSHABLE_BOULDER",
|
||||
"x": 25,
|
||||
"y": 3,
|
||||
"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": "EventScript_StrengthBoulder",
|
||||
"flag": "FLAG_TEMP_11"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BLACK_BELT",
|
||||
"x": 11,
|
||||
"y": 4,
|
||||
"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": "ShoalCave_LowTideLowerRoom_EventScript_BlackBelt",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 7,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SHOAL_CAVE_LOW_TIDE_INNER_ROOM",
|
||||
"dest_warp_id": 3
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SHOAL_CAVE_LOW_TIDE_INNER_ROOM",
|
||||
"dest_warp_id": 4
|
||||
},
|
||||
{
|
||||
"x": 19,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SHOAL_CAVE_LOW_TIDE_INNER_ROOM",
|
||||
"dest_warp_id": 5
|
||||
},
|
||||
{
|
||||
"x": 28,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SHOAL_CAVE_LOW_TIDE_ICE_ROOM",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 18,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4"
|
||||
}
|
||||
]
|
||||
}
|
58
data/maps/ShoalCave_LowTideLowerRoom/scripts.inc
Normal file
58
data/maps/ShoalCave_LowTideLowerRoom/scripts.inc
Normal file
@ -0,0 +1,58 @@
|
||||
ShoalCave_LowTideLowerRoom_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideLowerRoom_OnLoad
|
||||
.byte 0
|
||||
|
||||
ShoalCave_LowTideLowerRoom_OnLoad:
|
||||
call ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles
|
||||
end
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles::
|
||||
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd
|
||||
setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Large, TRUE
|
||||
return
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd::
|
||||
return
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4::
|
||||
lockall
|
||||
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt
|
||||
giveitem ITEM_SHOAL_SALT
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Small, FALSE
|
||||
special DrawWholeMapView
|
||||
setflag FLAG_RECEIVED_SHOAL_SALT_4
|
||||
releaseall
|
||||
end
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt::
|
||||
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
|
||||
releaseall
|
||||
end
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_BlackBelt::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand
|
||||
msgbox ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus, MSGBOX_DEFAULT
|
||||
giveitem ITEM_FOCUS_BAND
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_FOCUS_BAND
|
||||
release
|
||||
end
|
||||
|
||||
ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand::
|
||||
msgbox ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus:
|
||||
.string "The penetrating cold around these\n"
|
||||
.string "parts is an impediment to training.\p"
|
||||
.string "But with focus, one can overcome!\p"
|
||||
.string "With this FOCUS BAND, buckle down and\n"
|
||||
.string "withstand the cold!$"
|
||||
|
||||
ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus:
|
||||
.string "Everything starts with focus!$"
|
||||
|
Reference in New Issue
Block a user