import from github
This commit is contained in:
236
data/maps/FortreeCity/map.json
Normal file
236
data/maps/FortreeCity/map.json
Normal file
@ -0,0 +1,236 @@
|
||||
{
|
||||
"id": "MAP_FORTREE_CITY",
|
||||
"name": "FortreeCity",
|
||||
"layout": "LAYOUT_FORTREE_CITY",
|
||||
"music": "MUS_FORTREE",
|
||||
"region_map_section": "MAPSEC_FORTREE_CITY",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_SUNNY",
|
||||
"map_type": "MAP_TYPE_CITY",
|
||||
"allow_cycling": true,
|
||||
"allow_escaping": false,
|
||||
"allow_running": true,
|
||||
"show_map_name": true,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": [
|
||||
{
|
||||
"direction": "left",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE119"
|
||||
},
|
||||
{
|
||||
"direction": "right",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE120"
|
||||
}
|
||||
],
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_2",
|
||||
"x": 31,
|
||||
"y": 3,
|
||||
"elevation": 4,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_Man",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_GIRL_1",
|
||||
"x": 32,
|
||||
"y": 16,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_Girl",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
|
||||
"x": 32,
|
||||
"y": 10,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_UP_AND_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_Woman",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BOY_1",
|
||||
"x": 11,
|
||||
"y": 14,
|
||||
"elevation": 4,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_Boy",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_OLD_MAN",
|
||||
"x": 8,
|
||||
"y": 10,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_OldMan",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_GAMEBOY_KID",
|
||||
"x": 9,
|
||||
"y": 16,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_GameboyKid",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_KECLEON",
|
||||
"x": 25,
|
||||
"y": 8,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_INVISIBLE",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "FortreeCity_EventScript_Kecleon",
|
||||
"flag": "FLAG_HIDE_FORTREE_CITY_KECLEON"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 5,
|
||||
"y": 6,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_POKEMON_CENTER_1F",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 3,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_HOUSE1",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 22,
|
||||
"y": 11,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_GYM",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 14,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_MART",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 17,
|
||||
"y": 3,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_HOUSE2",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 25,
|
||||
"y": 3,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_HOUSE3",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 32,
|
||||
"y": 2,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_HOUSE4",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 12,
|
||||
"y": 13,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_HOUSE5",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 37,
|
||||
"y": 13,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_FORTREE_CITY_DECORATION_SHOP",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 6,
|
||||
"y": 9,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "FortreeCity_EventScript_CitySign"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 7,
|
||||
"y": 6,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "Common_EventScript_ShowPokemonCenterSign"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 5,
|
||||
"y": 14,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "Common_EventScript_ShowPokemartSign"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 26,
|
||||
"y": 10,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "FortreeCity_EventScript_GymSign"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 6,
|
||||
"y": 6,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "Common_EventScript_ShowPokemonCenterSign"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 6,
|
||||
"y": 14,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "Common_EventScript_ShowPokemartSign"
|
||||
}
|
||||
]
|
||||
}
|
156
data/maps/FortreeCity/scripts.inc
Normal file
156
data/maps/FortreeCity/scripts.inc
Normal file
@ -0,0 +1,156 @@
|
||||
FortreeCity_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_OnTransition
|
||||
map_script MAP_SCRIPT_ON_RESUME, FortreeCity_OnResume
|
||||
.byte 0
|
||||
|
||||
FortreeCity_OnTransition:
|
||||
setflag FLAG_VISITED_FORTREE_CITY
|
||||
end
|
||||
|
||||
FortreeCity_OnResume:
|
||||
setstepcallback STEP_CB_FORTREE_BRIDGE
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_Man::
|
||||
msgbox FortreeCity_Text_SawGiganticPokemonInSky, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_Woman::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_KECLEON_FLED_FORTREE, FortreeCity_EventScript_WomanGymAccessible
|
||||
msgbox FortreeCity_Text_SomethingBlockingGym, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_WomanGymAccessible::
|
||||
msgbox FortreeCity_Text_ThisTimeIllBeatWinona, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_Girl::
|
||||
msgbox FortreeCity_Text_TreesGrowByDrinkingRainwater, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_OldMan::
|
||||
msgbox FortreeCity_Text_EveryoneHealthyAndLively, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_Boy::
|
||||
msgbox FortreeCity_Text_BugPokemonComeThroughWindow, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_GameboyKid::
|
||||
msgbox FortreeCity_Text_PokemonThatEvolveWhenTraded, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_CitySign::
|
||||
msgbox FortreeCity_Text_CitySign, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_GymSign::
|
||||
msgbox FortreeCity_Text_GymSign, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_Kecleon::
|
||||
lock
|
||||
faceplayer
|
||||
checkitem ITEM_DEVON_SCOPE
|
||||
goto_if_eq VAR_RESULT, TRUE, FortreeCity_EventScript_AskUseDevonScope
|
||||
msgbox FortreeCity_Text_SomethingUnseeable, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_AskUseDevonScope::
|
||||
msgbox FortreeCity_Text_UnseeableUseDevonScope, MSGBOX_YESNO
|
||||
goto_if_eq VAR_RESULT, YES, FortreeCity_EventScript_UseDevonScope
|
||||
release
|
||||
end
|
||||
|
||||
FortreeCity_EventScript_UseDevonScope::
|
||||
msgbox FortreeCity_Text_UsedDevonScopePokemonFled, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement VAR_LAST_TALKED, Movement_KecleonAppears
|
||||
waitmovement 0
|
||||
waitse
|
||||
playmoncry SPECIES_KECLEON, CRY_MODE_ENCOUNTER
|
||||
delay 40
|
||||
waitmoncry
|
||||
applymovement VAR_LAST_TALKED, FortreeCity_Movement_KecleonFlee
|
||||
waitmovement 0
|
||||
removeobject VAR_LAST_TALKED
|
||||
setflag FLAG_KECLEON_FLED_FORTREE
|
||||
release
|
||||
end
|
||||
|
||||
FortreeCity_Movement_KecleonFlee:
|
||||
walk_right
|
||||
step_end
|
||||
|
||||
FortreeCity_Text_SawGiganticPokemonInSky:
|
||||
.string "No one believes me, but I saw this\n"
|
||||
.string "gigantic POKéMON in the sky.\p"
|
||||
.string "It seemed to squirm as it flew toward\n"
|
||||
.string "ROUTE 131.\p"
|
||||
.string "By the way… Sniff…\n"
|
||||
.string "Um… You, uh…smell singed.\p"
|
||||
.string "Were you at a volcano or something?$"
|
||||
|
||||
FortreeCity_Text_SomethingBlockingGym:
|
||||
.string "I want to go to the POKéMON GYM,\n"
|
||||
.string "but something's blocking the way.\p"
|
||||
.string "After all the bother I went through\n"
|
||||
.string "training on ROUTE 120…$"
|
||||
|
||||
FortreeCity_Text_ThisTimeIllBeatWinona:
|
||||
.string "I've got my pride-and-joy POKéMON\n"
|
||||
.string "with me. This time, I'll beat WINONA.$"
|
||||
|
||||
FortreeCity_Text_TreesGrowByDrinkingRainwater:
|
||||
.string "The ground absorbs rainwater, and\n"
|
||||
.string "trees grow by drinking that water…\p"
|
||||
.string "Our FORTREE CITY exists because\n"
|
||||
.string "there's both water and soil.$"
|
||||
|
||||
FortreeCity_Text_EveryoneHealthyAndLively:
|
||||
.string "The CITY consists of homes built on\n"
|
||||
.string "trees.\p"
|
||||
.string "Perhaps because of that lifestyle,\n"
|
||||
.string "everyone is healthy and lively.\p"
|
||||
.string "Why, even myself--I feel as if I've\n"
|
||||
.string "grown thirty years younger.$"
|
||||
|
||||
FortreeCity_Text_BugPokemonComeThroughWindow:
|
||||
.string "Living on top of trees is okay.\p"
|
||||
.string "But sometimes BUG POKéMON come in\n"
|
||||
.string "through windows.\l"
|
||||
.string "It can be really startling.$"
|
||||
|
||||
FortreeCity_Text_PokemonThatEvolveWhenTraded:
|
||||
.string "There are POKéMON that evolve when\n"
|
||||
.string "you trade them! That's what I heard.$"
|
||||
|
||||
FortreeCity_Text_SomethingUnseeable:
|
||||
.string "Something unseeable is in the way.$"
|
||||
|
||||
FortreeCity_Text_UnseeableUseDevonScope:
|
||||
.string "Something unseeable is in the way.\p"
|
||||
.string "Want to use the DEVON SCOPE?$"
|
||||
|
||||
FortreeCity_Text_UsedDevonScopePokemonFled:
|
||||
.string "{PLAYER} used the DEVON SCOPE.\p"
|
||||
.string "An invisible POKéMON became completely\n"
|
||||
.string "visible!\p"
|
||||
.string "The startled POKéMON fled!$"
|
||||
|
||||
FortreeCity_Text_CitySign:
|
||||
.string "FORTREE CITY\n"
|
||||
.string "“The treetop city that frolics with\l"
|
||||
.string "nature.”$"
|
||||
|
||||
FortreeCity_Text_GymSign:
|
||||
.string "FORTREE CITY POKéMON GYM\n"
|
||||
.string "LEADER: WINONA\p"
|
||||
.string "“The bird user taking flight into\n"
|
||||
.string "the world.”$"
|
||||
|
Reference in New Issue
Block a user