import from github
This commit is contained in:
197
data/maps/Route128/map.json
Normal file
197
data/maps/Route128/map.json
Normal file
@ -0,0 +1,197 @@
|
||||
{
|
||||
"id": "MAP_ROUTE128",
|
||||
"name": "Route128",
|
||||
"layout": "LAYOUT_ROUTE128",
|
||||
"music": "MUS_ROUTE120",
|
||||
"region_map_section": "MAPSEC_ROUTE_128",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_SUNNY",
|
||||
"map_type": "MAP_TYPE_OCEAN_ROUTE",
|
||||
"allow_cycling": true,
|
||||
"allow_escaping": false,
|
||||
"allow_running": true,
|
||||
"show_map_name": true,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": [
|
||||
{
|
||||
"direction": "up",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE127"
|
||||
},
|
||||
{
|
||||
"direction": "down",
|
||||
"offset": 0,
|
||||
"map": "MAP_ROUTE129"
|
||||
},
|
||||
{
|
||||
"direction": "right",
|
||||
"offset": -40,
|
||||
"map": "MAP_EVER_GRANDE_CITY"
|
||||
},
|
||||
{
|
||||
"direction": "dive",
|
||||
"offset": 0,
|
||||
"map": "MAP_UNDERWATER_ROUTE128"
|
||||
}
|
||||
],
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 35,
|
||||
"y": 33,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_RIGHT_UP_LEFT_DOWN",
|
||||
"movement_range_x": 5,
|
||||
"movement_range_y": 5,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route128_EventScript_Isaiah",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 78,
|
||||
"y": 24,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_RIGHT_AND_LEFT",
|
||||
"movement_range_x": 5,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "7",
|
||||
"script": "Route128_EventScript_Katelyn",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_STEVEN",
|
||||
"x": 40,
|
||||
"y": 22,
|
||||
"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": "0x0",
|
||||
"flag": "FLAG_HIDE_ROUTE_128_STEVEN"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ARCHIE",
|
||||
"x": 37,
|
||||
"y": 22,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "0x0",
|
||||
"flag": "FLAG_HIDE_ROUTE_128_ARCHIE"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAXIE",
|
||||
"x": 38,
|
||||
"y": 21,
|
||||
"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": "0x0",
|
||||
"flag": "FLAG_HIDE_ROUTE_128_MAXIE"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_FISHERMAN",
|
||||
"x": 63,
|
||||
"y": 28,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "Route128_EventScript_Wayne",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
|
||||
"x": 47,
|
||||
"y": 9,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_RIGHT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route128_EventScript_Ruben",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
|
||||
"x": 24,
|
||||
"y": 8,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "Route128_EventScript_Alexa",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
|
||||
"x": 101,
|
||||
"y": 29,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_UP_AND_DOWN",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 3,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "4",
|
||||
"script": "Route128_EventScript_Carlee",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
|
||||
"x": 101,
|
||||
"y": 22,
|
||||
"elevation": 1,
|
||||
"movement_type": "MOVEMENT_TYPE_WALK_DOWN_AND_UP",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 3,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "4",
|
||||
"script": "Route128_EventScript_Harrison",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 49,
|
||||
"y": 9,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_HEART_SCALE",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_1"
|
||||
},
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 57,
|
||||
"y": 21,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_HEART_SCALE",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_2"
|
||||
},
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 31,
|
||||
"y": 33,
|
||||
"elevation": 3,
|
||||
"item": "ITEM_HEART_SCALE",
|
||||
"flag": "FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_3"
|
||||
}
|
||||
]
|
||||
}
|
306
data/maps/Route128/scripts.inc
Normal file
306
data/maps/Route128/scripts.inc
Normal file
@ -0,0 +1,306 @@
|
||||
.set LOCALID_STEVEN, 3
|
||||
.set LOCALID_ARCHIE, 4
|
||||
.set LOCALID_MAXIE, 5
|
||||
|
||||
Route128_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, Route128_OnTransition
|
||||
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route128_OnFrame
|
||||
.byte 0
|
||||
|
||||
Route128_OnTransition:
|
||||
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
|
||||
end
|
||||
|
||||
Route128_OnFrame:
|
||||
map_script_2 VAR_ROUTE128_STATE, 1, Route128_EventScript_KyogreAwakenedScene
|
||||
.2byte 0
|
||||
|
||||
Route128_EventScript_KyogreAwakenedScene::
|
||||
lockall
|
||||
delay 20
|
||||
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieLookAround
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_ArchieWhatHappened, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieBackUp
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_ArchieIOnlyWanted, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_MAXIE, Route128_Movement_MaxieApproachArchie
|
||||
waitmovement 0
|
||||
applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFasterUp
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_MaxieDoYouUnderstandNow, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_MAXIE, Route128_Movement_MaxieApproachPlayer
|
||||
waitmovement 0
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_MaxieResposibilityFallsToArchieAndMe, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieRunLeft
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft
|
||||
applymovement LOCALID_MAXIE, Route128_Movement_MaxieWalkLeft
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_MaxieThisDefiesBelief, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
delay 40
|
||||
applymovement LOCALID_MAXIE, Route128_Movement_MaxieExit
|
||||
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieExit
|
||||
waitmovement 0
|
||||
removeobject LOCALID_MAXIE
|
||||
removeobject LOCALID_ARCHIE
|
||||
delay 100
|
||||
setfieldeffectargument 0, 1
|
||||
dofieldeffect FLDEFF_NPCFLY_OUT
|
||||
waitfieldeffect FLDEFF_NPCFLY_OUT
|
||||
addobject LOCALID_STEVEN
|
||||
applymovement LOCALID_STEVEN, Route128_Movement_StevenApproachPlayer
|
||||
waitmovement 0
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_StevenWhatIsHappening, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_STEVEN, Route128_Movement_StevenWalkUp
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_StevenWholeWorldWillDrown, MSGBOX_DEFAULT
|
||||
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_StevenImGoingToSootopolis, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
delay 50
|
||||
setfieldeffectargument 0, 1
|
||||
dofieldeffect FLDEFF_NPCFLY_OUT
|
||||
delay 15
|
||||
removeobject LOCALID_STEVEN
|
||||
waitfieldeffect FLDEFF_NPCFLY_OUT
|
||||
clearflag FLAG_HIDE_MAP_NAME_POPUP
|
||||
setvar VAR_ROUTE128_STATE, 2
|
||||
releaseall
|
||||
end
|
||||
|
||||
Route128_Movement_Unused1:
|
||||
walk_fast_left
|
||||
step_end
|
||||
|
||||
Route128_Movement_Unused2:
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
Route128_Movement_StevenWalkUp:
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
Route128_Movement_StevenApproachPlayer:
|
||||
walk_fast_left
|
||||
step_end
|
||||
|
||||
Route128_Movement_ArchieLookAround:
|
||||
walk_fast_down
|
||||
walk_in_place_faster_left
|
||||
delay_16
|
||||
walk_in_place_faster_right
|
||||
delay_16
|
||||
delay_16
|
||||
walk_in_place_faster_down
|
||||
step_end
|
||||
|
||||
Route128_Movement_ArchieBackUp:
|
||||
lock_facing_direction
|
||||
walk_slow_up
|
||||
delay_16
|
||||
unlock_facing_direction
|
||||
step_end
|
||||
|
||||
Route128_Movement_ArchieRunLeft:
|
||||
walk_fast_left
|
||||
walk_fast_left
|
||||
walk_fast_left
|
||||
walk_in_place_faster_right
|
||||
step_end
|
||||
|
||||
Route128_Movement_ArchieExit:
|
||||
delay_16
|
||||
delay_16
|
||||
walk_fast_up
|
||||
walk_fast_left
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
step_end
|
||||
|
||||
Route128_Movement_MaxieWalkLeft:
|
||||
walk_left
|
||||
walk_left
|
||||
delay_8
|
||||
delay_4
|
||||
step_end
|
||||
|
||||
Route128_Movement_MaxieApproachArchie:
|
||||
walk_left
|
||||
walk_in_place_faster_down
|
||||
step_end
|
||||
|
||||
Route128_Movement_MaxieExit:
|
||||
walk_fast_left
|
||||
walk_fast_left
|
||||
walk_fast_left
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
walk_fast_up
|
||||
step_end
|
||||
|
||||
Route128_Movement_MaxieApproachPlayer:
|
||||
walk_right
|
||||
walk_in_place_faster_down
|
||||
step_end
|
||||
|
||||
Route128_EventScript_Isaiah::
|
||||
trainerbattle_single TRAINER_ISAIAH_1, Route128_Text_IsaiahIntro, Route128_Text_IsaiahDefeat, Route128_EventScript_RegisterIsaiah
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route128_EventScript_RematchIsaiah
|
||||
msgbox Route128_Text_IsaiahPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route128_EventScript_RegisterIsaiah::
|
||||
special PlayerFaceTrainerAfterBattle
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_IsaiahRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_ISAIAH_1
|
||||
release
|
||||
end
|
||||
|
||||
Route128_EventScript_RematchIsaiah::
|
||||
trainerbattle_rematch TRAINER_ISAIAH_1, Route128_Text_IsaiahRematchIntro, Route128_Text_IsaiahRematchDefeat
|
||||
msgbox Route128_Text_IsaiahPostRematch, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Katelyn::
|
||||
trainerbattle_single TRAINER_KATELYN_1, Route128_Text_KatelynIntro, Route128_Text_KatelynDefeat, Route128_EventScript_RegisterKatelyn
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, Route128_EventScript_RematchKatelyn
|
||||
msgbox Route128_Text_KatelynPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route128_EventScript_RegisterKatelyn::
|
||||
special PlayerFaceTrainerAfterBattle
|
||||
waitmovement 0
|
||||
msgbox Route128_Text_KatelynRegister, MSGBOX_DEFAULT
|
||||
register_matchcall TRAINER_KATELYN_1
|
||||
release
|
||||
end
|
||||
|
||||
Route128_EventScript_RematchKatelyn::
|
||||
trainerbattle_rematch TRAINER_KATELYN_1, Route128_Text_KatelynRematchIntro, Route128_Text_KatelynRematchDefeat
|
||||
msgbox Route128_Text_KatelynPostRematch, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Alexa::
|
||||
trainerbattle_single TRAINER_ALEXA, Route128_Text_AlexaIntro, Route128_Text_AlexaDefeat
|
||||
msgbox Route128_Text_AlexaPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Ruben::
|
||||
trainerbattle_single TRAINER_RUBEN, Route128_Text_RubenIntro, Route128_Text_RubenDefeat
|
||||
msgbox Route128_Text_RubenPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Wayne::
|
||||
trainerbattle_single TRAINER_WAYNE, Route128_Text_WayneIntro, Route128_Text_WayneDefeat
|
||||
msgbox Route128_Text_WaynePostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Harrison::
|
||||
trainerbattle_single TRAINER_HARRISON, Route128_Text_HarrisonIntro, Route128_Text_HarrisonDefeat
|
||||
msgbox Route128_Text_HarrisonPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_EventScript_Carlee::
|
||||
trainerbattle_single TRAINER_CARLEE, Route128_Text_CarleeIntro, Route128_Text_CarleeDefeat
|
||||
msgbox Route128_Text_CarleePostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route128_Text_ArchieWhatHappened:
|
||||
.string "ARCHIE: What happened…\n"
|
||||
.string "What is this wretched scene…\p"
|
||||
.string "Did I…make a horrible mistake?$"
|
||||
|
||||
Route128_Text_ArchieIOnlyWanted:
|
||||
.string "I…\n"
|
||||
.string "I only wanted…$"
|
||||
|
||||
Route128_Text_MaxieDoYouUnderstandNow:
|
||||
.string "MAXIE: Do you understand now,\n"
|
||||
.string "ARCHIE?\p"
|
||||
.string "Do you finally see how disastrous\n"
|
||||
.string "your dream turned out to be?\p"
|
||||
.string "We have to hurry! We have to do\n"
|
||||
.string "something before the situation goes\l"
|
||||
.string "completely out of control!$"
|
||||
|
||||
Route128_Text_MaxieResposibilityFallsToArchieAndMe:
|
||||
.string "MAXIE: {PLAYER}, don't say anything.\p"
|
||||
.string "I know that I have no right to be\n"
|
||||
.string "critical of ARCHIE…\p"
|
||||
.string "But the way things are now, I doubt\n"
|
||||
.string "that we humans will be capable of\l"
|
||||
.string "doing anything about it.\p"
|
||||
.string "But neither can we stand by and\n"
|
||||
.string "just watch helplessly.\p"
|
||||
.string "The responsibility for putting an end\n"
|
||||
.string "to this falls to ARCHIE and me…$"
|
||||
|
||||
Route128_Text_MaxieThisDefiesBelief:
|
||||
.string "MAXIE: This defies belief…\p"
|
||||
.string "Those super-ancient POKéMON…\p"
|
||||
.string "Their power is unbelievable.\n"
|
||||
.string "They've upset the balance of nature…$"
|
||||
|
||||
Route128_Text_StevenWhatIsHappening:
|
||||
.string "STEVEN: {PLAYER}{KUN}!\n"
|
||||
.string "What is happening?$"
|
||||
|
||||
Route128_Text_StevenWholeWorldWillDrown:
|
||||
.string "This is terrible…\p"
|
||||
.string "After the scorching heat wave ended,\n"
|
||||
.string "this deluge began.\p"
|
||||
.string "If this doesn't stop, all of HOENN…\n"
|
||||
.string "No, the whole world will drown.\p"
|
||||
.string "This huge rain cloud is spreading\n"
|
||||
.string "from above SOOTOPOLIS…\p"
|
||||
.string "What in the world is taking place there?\p"
|
||||
.string "There's no point arguing here…\n"
|
||||
.string "SOOTOPOLIS might provide answers…$"
|
||||
|
||||
Route128_Text_StevenImGoingToSootopolis:
|
||||
.string "{PLAYER}{KUN}…\n"
|
||||
.string "I don't know what you intend to do,\l"
|
||||
.string "but don't do anything reckless.\p"
|
||||
.string "Okay.\n"
|
||||
.string "I'm going to SOOTOPOLIS.$"
|
||||
|
Reference in New Issue
Block a user