import from github
This commit is contained in:
71
data/maps/SouthernIsland_Exterior/map.json
Normal file
71
data/maps/SouthernIsland_Exterior/map.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"id": "MAP_SOUTHERN_ISLAND_EXTERIOR",
|
||||
"name": "SouthernIsland_Exterior",
|
||||
"layout": "LAYOUT_SOUTHERN_ISLAND_EXTERIOR",
|
||||
"music": "MUS_ABANDONED_SHIP",
|
||||
"region_map_section": "MAPSEC_SOUTHERN_ISLAND",
|
||||
"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_SAILOR",
|
||||
"x": 13,
|
||||
"y": 23,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "SouthernIsland_Exterior_EventScript_Sailor",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SS_TIDAL",
|
||||
"x": 13,
|
||||
"y": 25,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "0x0",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 14,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SOUTHERN_ISLAND_INTERIOR",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 15,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SOUTHERN_ISLAND_INTERIOR",
|
||||
"dest_warp_id": 1
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 16,
|
||||
"y": 7,
|
||||
"elevation": 3,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "SouthernIsland_Exterior_EventScript_Sign"
|
||||
}
|
||||
]
|
||||
}
|
57
data/maps/SouthernIsland_Exterior/scripts.inc
Normal file
57
data/maps/SouthernIsland_Exterior/scripts.inc
Normal file
@ -0,0 +1,57 @@
|
||||
.set LOCALID_SAILOR, 1
|
||||
.set LOCALID_SS_TIDAL, 2
|
||||
|
||||
SouthernIsland_Exterior_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, SouthernIsland_Exterior_OnTransition
|
||||
.byte 0
|
||||
|
||||
SouthernIsland_Exterior_OnTransition:
|
||||
setflag FLAG_LANDMARK_SOUTHERN_ISLAND
|
||||
end
|
||||
|
||||
SouthernIsland_Exterior_EventScript_Sailor::
|
||||
lock
|
||||
faceplayer
|
||||
msgbox EventTicket_Text_SouthernIslandSailBack, MSGBOX_YESNO
|
||||
goto_if_eq VAR_RESULT, NO, SouthernIsland_Exterior_EventScript_AsYouLike
|
||||
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
delay 30
|
||||
hideobjectat LOCALID_SAILOR, MAP_SOUTHERN_ISLAND_EXTERIOR
|
||||
setvar VAR_0x8004, LOCALID_SS_TIDAL
|
||||
call Common_EventScript_FerryDepartIsland
|
||||
warp MAP_LILYCOVE_CITY_HARBOR, 8, 11
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
SouthernIsland_Exterior_EventScript_AsYouLike::
|
||||
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Ferry_EventScript_DepartIslandSouth::
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Ferry_EventScript_DepartIslandBoardSouth
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Ferry_EventScript_DepartIslandWest::
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Ferry_EventScript_DepartIslandBoardWest
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Ferry_EventScript_DepartIslandBoardSouth:
|
||||
walk_down
|
||||
step_end
|
||||
|
||||
Ferry_EventScript_DepartIslandBoardWest:
|
||||
walk_left
|
||||
walk_in_place_faster_down
|
||||
step_end
|
||||
|
||||
SouthernIsland_Exterior_EventScript_Sign::
|
||||
msgbox SouthernIsland_Exterior_Text_Sign, MSGBOX_SIGN
|
||||
end
|
||||
|
Reference in New Issue
Block a user