import from github
This commit is contained in:
95
data/maps/FallarborTown_PokemonCenter_1F/map.json
Normal file
95
data/maps/FallarborTown_PokemonCenter_1F/map.json
Normal file
@ -0,0 +1,95 @@
|
||||
{
|
||||
"id": "MAP_FALLARBOR_TOWN_POKEMON_CENTER_1F",
|
||||
"name": "FallarborTown_PokemonCenter_1F",
|
||||
"layout": "LAYOUT_POKEMON_CENTER_1F",
|
||||
"music": "MUS_POKE_CENTER",
|
||||
"region_map_section": "MAPSEC_FALLARBOR_TOWN",
|
||||
"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_NURSE",
|
||||
"x": 7,
|
||||
"y": 2,
|
||||
"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": "FallarborTown_PokemonCenter_1F_EventScript_Nurse",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_GIRL_3",
|
||||
"x": 10,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"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": "FallarborTown_PokemonCenter_1F_EventScript_Girl",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_EXPERT_M",
|
||||
"x": 2,
|
||||
"y": 3,
|
||||
"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": "FallarborTown_PokemonCenter_1F_EventScript_ExpertM",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_2",
|
||||
"x": 10,
|
||||
"y": 2,
|
||||
"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": "FallarborTown_PokemonCenter_1F_EventScript_Lanette",
|
||||
"flag": "FLAG_HIDE_FALLORBOR_POKEMON_CENTER_LANETTE"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 7,
|
||||
"y": 8,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_FALLARBOR_TOWN",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 8,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_FALLARBOR_TOWN",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 6,
|
||||
"elevation": 4,
|
||||
"dest_map": "MAP_FALLARBOR_TOWN_POKEMON_CENTER_2F",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
114
data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
Normal file
114
data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
Normal file
@ -0,0 +1,114 @@
|
||||
.set LOCALID_NURSE, 1
|
||||
.set LOCALID_LANETTE, 4
|
||||
|
||||
FallarborTown_PokemonCenter_1F_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_PokemonCenter_1F_OnTransition
|
||||
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
|
||||
.byte 0
|
||||
|
||||
FallarborTown_PokemonCenter_1F_OnTransition:
|
||||
setrespawn HEAL_LOCATION_FALLARBOR_TOWN
|
||||
call Common_EventScript_UpdateBrineyLocation
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_Nurse::
|
||||
setvar VAR_0x800B, LOCALID_NURSE
|
||||
call Common_EventScript_PkmnCenterNurse
|
||||
waitmessage
|
||||
waitbuttonpress
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_Girl::
|
||||
msgbox FallarborTown_PokemonCenter_1F_Text_FossilManiacEdgeOfTown, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_ExpertM::
|
||||
msgbox FallarborTown_PokemonCenter_1F_Text_PlantHardyTrees, MSGBOX_NPC
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_Lanette::
|
||||
lock
|
||||
faceplayer
|
||||
msgbox FallarborTown_PokemonCenter_1F_Text_LanetteGreeting, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
switch VAR_FACING
|
||||
case DIR_NORTH, FallarborTown_PokemonCenter_1F_EventScript_LanetteExitNorth
|
||||
case DIR_WEST, FallarborTown_PokemonCenter_1F_EventScript_LanetteExitWest
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_LanetteExitNorth::
|
||||
applymovement LOCALID_LANETTE, FallarborTown_PokemonCenter_1F_Movement_LanetteExitNorth
|
||||
waitmovement 0
|
||||
goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_LanetteExitWest::
|
||||
applymovement LOCALID_LANETTE, FallarborTown_PokemonCenter_1F_Movement_LanetteExitWest
|
||||
waitmovement 0
|
||||
goto FallarborTown_PokemonCenter_1F_EventScript_LanetteExited
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_EventScript_LanetteExited::
|
||||
playse SE_SLIDING_DOOR
|
||||
removeobject LOCALID_LANETTE
|
||||
clearflag FLAG_HIDE_LANETTES_HOUSE_LANETTE
|
||||
release
|
||||
end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_Movement_LanetteExitNorth:
|
||||
walk_right
|
||||
walk_down
|
||||
walk_down
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
delay_8
|
||||
step_end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_Movement_LanetteExitWest:
|
||||
walk_down
|
||||
walk_down
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
delay_8
|
||||
step_end
|
||||
|
||||
FallarborTown_PokemonCenter_1F_Text_LanetteGreeting:
|
||||
.string "Oh, hello.\n"
|
||||
.string "You are?\p"
|
||||
.string "Okay, your name's {PLAYER}{KUN}.\n"
|
||||
.string "I can see that you're a TRAINER.\p"
|
||||
.string "So that means you use the POKéMON\n"
|
||||
.string "Storage System I developed.\p"
|
||||
.string "How I arrived at that conclusion is\n"
|
||||
.string "a simple deductive process.\p"
|
||||
.string "You spoke to me because you wanted\n"
|
||||
.string "to access something on this PC.\p"
|
||||
.string "Oh, I'm sorry. I'm LANETTE.\p"
|
||||
.string "Honestly, I'm glad to meet you--it's\n"
|
||||
.string "great you're using the Storage System.\p"
|
||||
.string "If you could, please visit me at home.\n"
|
||||
.string "My house is on ROUTE 114.$"
|
||||
|
||||
FallarborTown_PokemonCenter_1F_Text_FossilManiacEdgeOfTown:
|
||||
.string "I wonder what POKéMON looked like\n"
|
||||
.string "long, long ago?\p"
|
||||
.string "Maybe the FOSSIL MANIAC at the edge\n"
|
||||
.string "of town will know.$"
|
||||
|
||||
FallarborTown_PokemonCenter_1F_Text_PlantHardyTrees:
|
||||
.string "In the fields of FALLARBOR, we plant\n"
|
||||
.string "seedlings of hardy trees that thrive\l"
|
||||
.string "even in volcanic ash.$"
|
||||
|
Reference in New Issue
Block a user