import from github
This commit is contained in:
49
data/maps/SeafloorCavern_Entrance/map.json
Normal file
49
data/maps/SeafloorCavern_Entrance/map.json
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"id": "MAP_SEAFLOOR_CAVERN_ENTRANCE",
|
||||
"name": "SeafloorCavern_Entrance",
|
||||
"layout": "LAYOUT_SEAFLOOR_CAVERN_ENTRANCE",
|
||||
"music": "MUS_MT_CHIMNEY",
|
||||
"region_map_section": "MAPSEC_SEAFLOOR_CAVERN",
|
||||
"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_AQUA_MEMBER_M",
|
||||
"x": 10,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "SeafloorCavern_Entrance_EventScript_Grunt",
|
||||
"flag": "FLAG_HIDE_SEAFLOOR_CAVERN_ENTRANCE_AQUA_GRUNT"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 10,
|
||||
"y": 18,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_UNDERWATER_ROUTE128",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 1,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_SEAFLOOR_CAVERN_ROOM1",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
88
data/maps/SeafloorCavern_Entrance/scripts.inc
Normal file
88
data/maps/SeafloorCavern_Entrance/scripts.inc
Normal file
@ -0,0 +1,88 @@
|
||||
.set LOCALID_GRUNT, 1
|
||||
|
||||
SeafloorCavern_Entrance_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_RESUME, SeafloorCavern_Entrance_OnResume
|
||||
.byte 0
|
||||
|
||||
SeafloorCavern_Entrance_OnResume:
|
||||
setdivewarp MAP_UNDERWATER_SEAFLOOR_CAVERN, 6, 5
|
||||
setescapewarp MAP_UNDERWATER_SEAFLOOR_CAVERN, 6, 5
|
||||
end
|
||||
|
||||
SeafloorCavern_Entrance_EventScript_Grunt::
|
||||
lockall
|
||||
goto_if_eq VAR_HAS_TALKED_TO_SEAFLOOR_CAVERN_ENTRANCE_GRUNT, 1, SeafloorCavern_Entrance_EventScript_GruntSpeechShort
|
||||
waitse
|
||||
playse SE_PIN
|
||||
applymovement LOCALID_GRUNT, Common_Movement_ExclamationMark
|
||||
waitmovement 0
|
||||
applymovement LOCALID_GRUNT, Common_Movement_Delay48
|
||||
waitmovement 0
|
||||
delay 20
|
||||
call_if_eq VAR_FACING, DIR_WEST, SeafloorCavern_Entrance_EventScript_GruntFacePlayerWest
|
||||
call_if_eq VAR_FACING, DIR_EAST, SeafloorCavern_Entrance_EventScript_GruntFacePlayerEast
|
||||
call_if_eq VAR_FACING, DIR_NORTH, SeafloorCavern_Entrance_EventScript_GruntFacePlayerNorth
|
||||
delay 30
|
||||
setvar VAR_HAS_TALKED_TO_SEAFLOOR_CAVERN_ENTRANCE_GRUNT, 1
|
||||
copyobjectxytoperm LOCALID_GRUNT
|
||||
msgbox SeafloorCavern_Entrance_Text_HearMagmaNearMossdeep, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_GRUNT, Common_Movement_WalkInPlaceFasterUp
|
||||
waitmovement 0
|
||||
releaseall
|
||||
end
|
||||
|
||||
SeafloorCavern_Entrance_EventScript_GruntSpeechShort::
|
||||
call_if_eq VAR_FACING, DIR_WEST, SeafloorCavern_Entrance_EventScript_GruntFacePlayerWest
|
||||
call_if_eq VAR_FACING, DIR_EAST, SeafloorCavern_Entrance_EventScript_GruntFacePlayerEast
|
||||
call_if_eq VAR_FACING, DIR_NORTH, SeafloorCavern_Entrance_EventScript_GruntFacePlayerNorth
|
||||
msgbox SeafloorCavern_Entrance_Text_HearMagmaNearMossdeepShort, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_GRUNT, Common_Movement_WalkInPlaceFasterUp
|
||||
waitmovement 0
|
||||
releaseall
|
||||
end
|
||||
|
||||
SeafloorCavern_Entrance_EventScript_GruntFacePlayerEast::
|
||||
applymovement LOCALID_GRUNT, Common_Movement_WalkInPlaceFasterLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SeafloorCavern_Entrance_EventScript_GruntFacePlayerWest::
|
||||
applymovement LOCALID_GRUNT, Common_Movement_WalkInPlaceFasterRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SeafloorCavern_Entrance_EventScript_GruntFacePlayerNorth::
|
||||
applymovement LOCALID_GRUNT, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
SeafloorCavern_Entrance_Text_HearMagmaNearMossdeep:
|
||||
.string "Hey!\n"
|
||||
.string "I remember your face!\p"
|
||||
.string "If you're here, it must mean that\n"
|
||||
.string "you're about to mess with us again!\p"
|
||||
.string "A punk like you, do you really think\n"
|
||||
.string "you can take on TEAM AQUA?\p"
|
||||
.string "I'd say you're too early by about\n"
|
||||
.string "a trillion years!\p"
|
||||
.string "You're a perfect fit for the likes of\n"
|
||||
.string "TEAM MAGMA!\p"
|
||||
.string "Speaking of TEAM MAGMA, I hear they\n"
|
||||
.string "were spotted near MOSSDEEP.\p"
|
||||
.string "That bunch of goons, they sure don't\n"
|
||||
.string "look good near the sea!$"
|
||||
|
||||
SeafloorCavern_Entrance_Text_HearMagmaNearMossdeepShort:
|
||||
.string "A punk like you, do you really think\n"
|
||||
.string "you can take on TEAM AQUA?\p"
|
||||
.string "I'd say you're too early by about\n"
|
||||
.string "a trillion years!\p"
|
||||
.string "You're a perfect fit for the likes of\n"
|
||||
.string "TEAM MAGMA!\p"
|
||||
.string "Speaking of TEAM MAGMA, I hear they\n"
|
||||
.string "were spotted near MOSSDEEP.\p"
|
||||
.string "That bunch of goons, they sure don't\n"
|
||||
.string "look good near the sea!$"
|
||||
|
Reference in New Issue
Block a user