import from github
This commit is contained in:
141
data/maps/Route119_WeatherInstitute_1F/map.json
Normal file
141
data/maps/Route119_WeatherInstitute_1F/map.json
Normal file
@ -0,0 +1,141 @@
|
||||
{
|
||||
"id": "MAP_ROUTE119_WEATHER_INSTITUTE_1F",
|
||||
"name": "Route119_WeatherInstitute_1F",
|
||||
"layout": "LAYOUT_ROUTE119_WEATHER_INSTITUTE_1F",
|
||||
"music": "MUS_RUSTBORO",
|
||||
"region_map_section": "MAPSEC_ROUTE_119",
|
||||
"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_AQUA_MEMBER_M",
|
||||
"x": 15,
|
||||
"y": 3,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Grunt1",
|
||||
"flag": "FLAG_HIDE_ROUTE_119_TEAM_AQUA"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_AQUA_MEMBER_F",
|
||||
"x": 10,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "2",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Grunt4",
|
||||
"flag": "FLAG_HIDE_ROUTE_119_TEAM_AQUA"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_4",
|
||||
"x": 5,
|
||||
"y": 4,
|
||||
"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": "Route119_WeatherInstitute_1F_EventScript_InstituteWorker2",
|
||||
"flag": "FLAG_HIDE_WEATHER_INSTITUTE_1F_WORKERS"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_4",
|
||||
"x": 2,
|
||||
"y": 11,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_InstituteWorker1",
|
||||
"flag": "FLAG_HIDE_WEATHER_INSTITUTE_1F_WORKERS"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_NINJA_BOY",
|
||||
"x": 14,
|
||||
"y": 11,
|
||||
"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": "Route119_WeatherInstitute_1F_EventScript_LittleBoy",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 9,
|
||||
"y": 12,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_ROUTE119",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 12,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_ROUTE119",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 17,
|
||||
"y": 1,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_ROUTE119_WEATHER_INSTITUTE_2F",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 1,
|
||||
"y": 2,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Bed"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 1,
|
||||
"y": 3,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Bed"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 0,
|
||||
"y": 2,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Bed"
|
||||
},
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 0,
|
||||
"y": 3,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
|
||||
"script": "Route119_WeatherInstitute_1F_EventScript_Bed"
|
||||
}
|
||||
]
|
||||
}
|
135
data/maps/Route119_WeatherInstitute_1F/scripts.inc
Normal file
135
data/maps/Route119_WeatherInstitute_1F/scripts.inc
Normal file
@ -0,0 +1,135 @@
|
||||
.set LOCALID_LITTLE_BOY, 5
|
||||
|
||||
Route119_WeatherInstitute_1F_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, Route119_WeatherInstitute_1F_OnTransition
|
||||
.byte 0
|
||||
|
||||
Route119_WeatherInstitute_1F_OnTransition:
|
||||
call_if_eq VAR_WEATHER_INSTITUTE_STATE, 0, Route119_WeatherInstitute_1F_EventScript_SetLittleBoyPos
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_SetLittleBoyPos::
|
||||
setobjectxyperm LOCALID_LITTLE_BOY, 0, 5
|
||||
setobjectmovementtype LOCALID_LITTLE_BOY, MOVEMENT_TYPE_FACE_RIGHT
|
||||
return
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_LittleBoy::
|
||||
lock
|
||||
faceplayer
|
||||
special GetPlayerBigGuyGirlString
|
||||
goto_if_eq VAR_WEATHER_INSTITUTE_STATE, 0, Route119_WeatherInstitute_1F_EventScript_LittleBoyTeamAquaHere
|
||||
msgbox Route119_WeatherInstitute_1F_Text_WowYoureStrong, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_LittleBoyTeamAquaHere::
|
||||
msgbox Route119_WeatherInstitute_1F_Text_EveryoneWentUpstairs, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_InstituteWorker1::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_unset FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_1F_EventScript_StudyingRain
|
||||
setvar VAR_0x8004, 0
|
||||
call_if_set FLAG_DEFEATED_KYOGRE, Route119_WeatherInstitute_1F_EventScript_LegendaryDefeated
|
||||
call_if_set FLAG_DEFEATED_GROUDON, Route119_WeatherInstitute_1F_EventScript_LegendaryDefeated
|
||||
goto_if_eq VAR_0x8004, 2, Route119_WeatherInstitute_1F_EventScript_StudyingRain @ Both defeated
|
||||
msgbox Route119_WeatherInstitute_1F_Text_NoticingAbnormalWeather, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_LegendaryDefeated::
|
||||
addvar VAR_0x8004, 1
|
||||
return
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_StudyingRain::
|
||||
msgbox Route119_WeatherInstitute_1F_Text_ProfStudyingRain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_InstituteWorker2::
|
||||
msgbox Route119_WeatherInstitute_1F_Text_WhatWereAquasUpTo, MSGBOX_NPC
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_Bed::
|
||||
lockall
|
||||
msgbox Route119_WeatherInstitute_1F_Text_TakeRestInBed, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
call Common_EventScript_OutOfCenterPartyHeal
|
||||
releaseall
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_Grunt1::
|
||||
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_1, Route119_WeatherInstitute_1F_Text_Grunt1Intro, Route119_WeatherInstitute_1F_Text_Grunt1Defeat
|
||||
msgbox Route119_WeatherInstitute_1F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_EventScript_Grunt4::
|
||||
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_4, Route119_WeatherInstitute_1F_Text_Grunt4Intro, Route119_WeatherInstitute_1F_Text_Grunt4Defeat
|
||||
msgbox Route119_WeatherInstitute_1F_Text_Grunt4PostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt1Intro:
|
||||
.string "The BOSS got interested in\n"
|
||||
.string "the research they have going here,\l"
|
||||
.string "so he sent us out.\p"
|
||||
.string "You quit meddling!$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt1Defeat:
|
||||
.string "Blast it…\n"
|
||||
.string "Blasted by a kid…$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt1PostBattle:
|
||||
.string "Our BOSS knows everything.\p"
|
||||
.string "But I'm just a GRUNT. What would I know\n"
|
||||
.string "about what he's thinking?$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt4Intro:
|
||||
.string "Huh?\n"
|
||||
.string "What's a kid doing here?$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt4Defeat:
|
||||
.string "Huh?\n"
|
||||
.string "I lost?!$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_Grunt4PostBattle:
|
||||
.string "Oh, no…\n"
|
||||
.string "I'll catch an earful for losing to a kid…\p"
|
||||
.string "I should just take a nap in the bed…$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_EveryoneWentUpstairs:
|
||||
.string "While I was sleeping, everyone went\n"
|
||||
.string "upstairs!$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_WowYoureStrong:
|
||||
.string "Wow, you're really strong!\p"
|
||||
.string "I wish I could be a POKéMON TRAINER\n"
|
||||
.string "like you!$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_ProfStudyingRain:
|
||||
.string "The PROFESSOR loves rain.\n"
|
||||
.string "That's a fact.\p"
|
||||
.string "But if it keeps raining, people will be in\n"
|
||||
.string "trouble. That's another fact.\p"
|
||||
.string "And thus, the PROFESSOR is studying\n"
|
||||
.string "if the rain can be put to good use.$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_NoticingAbnormalWeather:
|
||||
.string "On the 2nd floor of the INSTITUTE,\n"
|
||||
.string "we study the weather patterns over\l"
|
||||
.string "the HOENN region.\p"
|
||||
.string "We've been noticing temporary and\n"
|
||||
.string "isolated cases of droughts and\l"
|
||||
.string "heavy rain lately…$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_WhatWereAquasUpTo:
|
||||
.string "Hello!\n"
|
||||
.string "We've been saved by your actions!\p"
|
||||
.string "What I don't understand is what on\n"
|
||||
.string "earth the AQUAS were up to.$"
|
||||
|
||||
Route119_WeatherInstitute_1F_Text_TakeRestInBed:
|
||||
.string "There's a bed…\n"
|
||||
.string "Let's take a rest.$"
|
||||
|
Reference in New Issue
Block a user