import from github
This commit is contained in:
99
data/maps/FarawayIsland_Entrance/map.json
Normal file
99
data/maps/FarawayIsland_Entrance/map.json
Normal file
@ -0,0 +1,99 @@
|
||||
{
|
||||
"id": "MAP_FARAWAY_ISLAND_ENTRANCE",
|
||||
"name": "FarawayIsland_Entrance",
|
||||
"layout": "LAYOUT_FARAWAY_ISLAND_ENTRANCE",
|
||||
"music": "MUS_ABANDONED_SHIP",
|
||||
"region_map_section": "MAPSEC_FARAWAY_ISLAND",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_INDOOR",
|
||||
"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": 39,
|
||||
"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": "FarawayIsland_Entrance_EventScript_Sailor",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SS_TIDAL",
|
||||
"x": 13,
|
||||
"y": 41,
|
||||
"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": 22,
|
||||
"y": 7,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_FARAWAY_ISLAND_INTERIOR",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 23,
|
||||
"y": 7,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_FARAWAY_ISLAND_INTERIOR",
|
||||
"dest_warp_id": 1
|
||||
}
|
||||
],
|
||||
"coord_events": [
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 9,
|
||||
"y": 18,
|
||||
"elevation": 3,
|
||||
"var": "0",
|
||||
"var_value": "0",
|
||||
"script": "FarawayIsland_Entrance_EventScript_SetCloudsWeather"
|
||||
},
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 10,
|
||||
"y": 20,
|
||||
"elevation": 3,
|
||||
"var": "0",
|
||||
"var_value": "0",
|
||||
"script": "FarawayIsland_Entrance_EventScript_ClearWeather"
|
||||
},
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 22,
|
||||
"y": 9,
|
||||
"elevation": 3,
|
||||
"var": "0",
|
||||
"var_value": "0",
|
||||
"script": "FarawayIsland_Entrance_EventScript_SetCloudsWeather"
|
||||
}
|
||||
],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 3,
|
||||
"y": 32,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "FarawayIsland_Entrance_EventScript_Sign"
|
||||
}
|
||||
]
|
||||
}
|
48
data/maps/FarawayIsland_Entrance/scripts.inc
Normal file
48
data/maps/FarawayIsland_Entrance/scripts.inc
Normal file
@ -0,0 +1,48 @@
|
||||
.set LOCALID_SAILOR, 1
|
||||
.set LOCALID_SS_TIDAL, 2
|
||||
|
||||
FarawayIsland_Entrance_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Entrance_OnTransition
|
||||
.byte 0
|
||||
|
||||
FarawayIsland_Entrance_OnTransition:
|
||||
setflag FLAG_ARRIVED_ON_FARAWAY_ISLAND
|
||||
end
|
||||
|
||||
FarawayIsland_Entrance_EventScript_SetCloudsWeather::
|
||||
setweather WEATHER_SUNNY_CLOUDS
|
||||
doweather
|
||||
end
|
||||
|
||||
FarawayIsland_Entrance_EventScript_ClearWeather::
|
||||
setweather WEATHER_NONE
|
||||
doweather
|
||||
end
|
||||
|
||||
FarawayIsland_Entrance_EventScript_Sailor::
|
||||
lock
|
||||
faceplayer
|
||||
msgbox FarawayIsland_Entrance_Text_SailorReturn, MSGBOX_YESNO
|
||||
goto_if_eq VAR_RESULT, NO, FarawayIsland_Entrance_EventScript_AsYouLike
|
||||
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
delay 30
|
||||
hideobjectat LOCALID_SAILOR, MAP_FARAWAY_ISLAND_ENTRANCE
|
||||
setvar VAR_0x8004, LOCALID_SS_TIDAL
|
||||
call Common_EventScript_FerryDepartIsland
|
||||
warp MAP_LILYCOVE_CITY_HARBOR, 8, 11
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
FarawayIsland_Entrance_EventScript_AsYouLike::
|
||||
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FarawayIsland_Entrance_EventScript_Sign::
|
||||
msgbox FarawayIsland_Entrance_Text_Sign, MSGBOX_SIGN
|
||||
end
|
||||
|
Reference in New Issue
Block a user