import from github
This commit is contained in:
75
data/maps/Route114_FossilManiacsTunnel/map.json
Normal file
75
data/maps/Route114_FossilManiacsTunnel/map.json
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"id": "MAP_ROUTE114_FOSSIL_MANIACS_TUNNEL",
|
||||
"name": "Route114_FossilManiacsTunnel",
|
||||
"layout": "LAYOUT_ROUTE114_FOSSIL_MANIACS_TUNNEL",
|
||||
"music": "MUS_FALLARBOR",
|
||||
"region_map_section": "MAPSEC_ROUTE_114",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_INDOOR",
|
||||
"allow_cycling": false,
|
||||
"allow_escaping": false,
|
||||
"allow_running": false,
|
||||
"show_map_name": false,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MANIAC",
|
||||
"x": 5,
|
||||
"y": 3,
|
||||
"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": "Route114_FossilManiacsTunnel_EventScript_FossilManiac",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 6,
|
||||
"y": 25,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_ROUTE114_FOSSIL_MANIACS_HOUSE",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 7,
|
||||
"y": 25,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_ROUTE114_FOSSIL_MANIACS_HOUSE",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 2,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_DESERT_UNDERPASS",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 5,
|
||||
"y": 4,
|
||||
"elevation": 3,
|
||||
"var": "VAR_FOSSIL_MANIAC_STATE",
|
||||
"var_value": "1",
|
||||
"script": "Route114_FossilManiacsTunnel_EventScript_ManiacMentionCaveIn"
|
||||
},
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 6,
|
||||
"y": 4,
|
||||
"elevation": 3,
|
||||
"var": "VAR_FOSSIL_MANIAC_STATE",
|
||||
"var_value": "1",
|
||||
"script": "Route114_FossilManiacsTunnel_EventScript_ManiacMentionCaveIn"
|
||||
}
|
||||
],
|
||||
"bg_events": []
|
||||
}
|
93
data/maps/Route114_FossilManiacsTunnel/scripts.inc
Normal file
93
data/maps/Route114_FossilManiacsTunnel/scripts.inc
Normal file
@ -0,0 +1,93 @@
|
||||
.set LOCALID_FOSSIL_MANIAC, 1
|
||||
|
||||
Route114_FossilManiacsTunnel_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, Route114_FossilManiacsTunnel_OnTransition
|
||||
map_script MAP_SCRIPT_ON_LOAD, Route114_FossilManiacsTunnel_OnLoad
|
||||
.byte 0
|
||||
|
||||
Route114_FossilManiacsTunnel_OnTransition:
|
||||
call_if_set FLAG_SYS_GAME_CLEAR, Route114_FossilManiacsTunnel_EventScript_MoveFossilManiac
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_MoveFossilManiac::
|
||||
setobjectxyperm LOCALID_FOSSIL_MANIAC, 6, 5
|
||||
setobjectmovementtype LOCALID_FOSSIL_MANIAC, MOVEMENT_TYPE_FACE_DOWN
|
||||
return
|
||||
|
||||
Route114_FossilManiacsTunnel_OnLoad:
|
||||
call_if_unset FLAG_SYS_GAME_CLEAR, Route114_FossilManiacsTunnel_EventScript_CloseDesertUnderpass
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_CloseDesertUnderpass::
|
||||
setmetatile 6, 1, METATILE_Fallarbor_RedRockWall, TRUE
|
||||
setmetatile 6, 2, METATILE_Fallarbor_RedRockWall, TRUE
|
||||
return
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_ManiacMentionCaveIn::
|
||||
lockall
|
||||
applymovement LOCALID_FOSSIL_MANIAC, Common_Movement_WalkInPlaceFasterUp
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
msgbox Route114_FossilManiacsTunnel_Text_NotSafeThatWay, MSGBOX_DEFAULT
|
||||
setvar VAR_FOSSIL_MANIAC_STATE, 2
|
||||
releaseall
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_FossilManiac::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_REVIVED_FOSSIL_MON, Route114_FossilManiacsTunnel_EventScript_PlayerRevivedFossil
|
||||
checkitem ITEM_ROOT_FOSSIL
|
||||
goto_if_eq VAR_RESULT, TRUE, Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil
|
||||
checkitem ITEM_CLAW_FOSSIL
|
||||
goto_if_eq VAR_RESULT, TRUE, Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil
|
||||
msgbox Route114_FossilManiacsTunnel_Text_LookInDesertForFossils, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_PlayerHasFossil::
|
||||
msgbox Route114_FossilManiacsTunnel_Text_DevonCorpRevivingFossils, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_EventScript_PlayerRevivedFossil::
|
||||
msgbox Route114_FossilManiacsTunnel_Text_FossilsAreWonderful, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route114_FossilManiacsTunnel_Text_LookInDesertForFossils:
|
||||
.string "I'm the FOSSIL MANIAC…\n"
|
||||
.string "I'm a nice guy who loves FOSSILS…\p"
|
||||
.string "Do you want a FOSSIL?\p"
|
||||
.string "But the FOSSILS around these parts all\n"
|
||||
.string "belong to me… None for you…\p"
|
||||
.string "If you can't bear to go without\n"
|
||||
.string "a FOSSIL, look in a desert where there\l"
|
||||
.string "are boulders and sand that may hide\l"
|
||||
.string "FOSSILS…$"
|
||||
|
||||
Route114_FossilManiacsTunnel_Text_DevonCorpRevivingFossils:
|
||||
.string "You found a FOSSIL, didn't you?\n"
|
||||
.string "That's so nice… It's so dreamy…\p"
|
||||
.string "What are you going to do with that\n"
|
||||
.string "FOSSIL?\p"
|
||||
.string "From what I've heard, DEVON is doing\n"
|
||||
.string "research on reviving POKéMON from\l"
|
||||
.string "FOSSILS…\p"
|
||||
.string "I love my FOSSILS, so I would never\n"
|
||||
.string "do anything like that…$"
|
||||
|
||||
Route114_FossilManiacsTunnel_Text_FossilsAreWonderful:
|
||||
.string "FOSSILS are so… Wonderful…\n"
|
||||
.string "It's so dreamy…$"
|
||||
|
||||
Route114_FossilManiacsTunnel_Text_NotSafeThatWay:
|
||||
.string "Oh…\n"
|
||||
.string "It's not safe that way…\p"
|
||||
.string "I was digging away, you see…\n"
|
||||
.string "When the whole wall collapsed…\p"
|
||||
.string "I think there's a giant cavern\n"
|
||||
.string "underneath now…\p"
|
||||
.string "But I've left it alone because I don't\n"
|
||||
.string "think there are any FOSSILS there…$"
|
||||
|
Reference in New Issue
Block a user