import from github
This commit is contained in:
35
data/maps/SkyPillar_2F/map.json
Normal file
35
data/maps/SkyPillar_2F/map.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"id": "MAP_SKY_PILLAR_2F",
|
||||
"name": "SkyPillar_2F",
|
||||
"layout": "LAYOUT_SKY_PILLAR_2F",
|
||||
"music": "MUS_MT_CHIMNEY",
|
||||
"region_map_section": "MAPSEC_SKY_PILLAR",
|
||||
"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": [],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 10,
|
||||
"y": 1,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SKY_PILLAR_1F",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 1,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SKY_PILLAR_3F",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
20
data/maps/SkyPillar_2F/scripts.inc
Normal file
20
data/maps/SkyPillar_2F/scripts.inc
Normal file
@ -0,0 +1,20 @@
|
||||
SkyPillar_2F_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, SkyPillar_2F_OnTransition
|
||||
map_script MAP_SCRIPT_ON_RESUME, SkyPillar_2F_SetHoleWarp
|
||||
.byte 0
|
||||
|
||||
SkyPillar_2F_OnTransition:
|
||||
call_if_lt VAR_SKY_PILLAR_STATE, 2, SkyPillar_2F_EventScript_CleanFloor
|
||||
copyvar VAR_ICE_STEP_COUNT, 1
|
||||
end
|
||||
|
||||
SkyPillar_2F_EventScript_CleanFloor::
|
||||
setmaplayoutindex LAYOUT_SKY_PILLAR_2F_CLEAN
|
||||
return
|
||||
|
||||
SkyPillar_2F_SetHoleWarp:
|
||||
setstepcallback STEP_CB_CRACKED_FLOOR
|
||||
setholewarp MAP_SKY_PILLAR_1F
|
||||
end
|
||||
|
Reference in New Issue
Block a user