import from github
This commit is contained in:
202
data/maps/VictoryRoad_1F/map.json
Normal file
202
data/maps/VictoryRoad_1F/map.json
Normal file
@ -0,0 +1,202 @@
|
||||
{
|
||||
"id": "MAP_VICTORY_ROAD_1F",
|
||||
"name": "VictoryRoad_1F",
|
||||
"layout": "LAYOUT_VICTORY_ROAD_1F",
|
||||
"music": "MUS_VICTORY_ROAD",
|
||||
"region_map_section": "MAPSEC_VICTORY_ROAD",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_UNDERGROUND",
|
||||
"allow_cycling": true,
|
||||
"allow_escaping": true,
|
||||
"allow_running": true,
|
||||
"show_map_name": true,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
|
||||
"x": 33,
|
||||
"y": 22,
|
||||
"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": "3",
|
||||
"script": "VictoryRoad_1F_EventScript_Edgar",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
|
||||
"x": 6,
|
||||
"y": 15,
|
||||
"elevation": 4,
|
||||
"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": "4",
|
||||
"script": "VictoryRoad_1F_EventScript_Hope",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
|
||||
"x": 27,
|
||||
"y": 34,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "3",
|
||||
"script": "VictoryRoad_1F_EventScript_Albert",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WALLY",
|
||||
"x": 12,
|
||||
"y": 25,
|
||||
"elevation": 4,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_EntranceWally",
|
||||
"flag": "FLAG_HIDE_VICTORY_ROAD_ENTRANCE_WALLY"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 40,
|
||||
"y": 26,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_ItemMaxElixir",
|
||||
"flag": "FLAG_ITEM_VICTORY_ROAD_1F_MAX_ELIXIR"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
|
||||
"x": 37,
|
||||
"y": 39,
|
||||
"elevation": 4,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_ItemPPUp",
|
||||
"flag": "FLAG_ITEM_VICTORY_ROAD_1F_PP_UP"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WALLY",
|
||||
"x": 31,
|
||||
"y": 9,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_ExitWally",
|
||||
"flag": "FLAG_HIDE_VICTORY_ROAD_EXIT_WALLY"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_WOMAN_5",
|
||||
"x": 29,
|
||||
"y": 17,
|
||||
"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": "2",
|
||||
"script": "VictoryRoad_1F_EventScript_Katelynn",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
|
||||
"x": 32,
|
||||
"y": 17,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NORMAL",
|
||||
"trainer_sight_or_berry_tree_id": "2",
|
||||
"script": "VictoryRoad_1F_EventScript_Quincy",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 15,
|
||||
"y": 40,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_EVER_GRANDE_CITY",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 39,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_EVER_GRANDE_CITY",
|
||||
"dest_warp_id": 3
|
||||
},
|
||||
{
|
||||
"x": 21,
|
||||
"y": 32,
|
||||
"elevation": 3,
|
||||
"dest_map": "MAP_VICTORY_ROAD_B1F",
|
||||
"dest_warp_id": 5
|
||||
},
|
||||
{
|
||||
"x": 42,
|
||||
"y": 38,
|
||||
"elevation": 4,
|
||||
"dest_map": "MAP_VICTORY_ROAD_B1F",
|
||||
"dest_warp_id": 2
|
||||
},
|
||||
{
|
||||
"x": 9,
|
||||
"y": 14,
|
||||
"elevation": 4,
|
||||
"dest_map": "MAP_VICTORY_ROAD_B1F",
|
||||
"dest_warp_id": 4
|
||||
}
|
||||
],
|
||||
"coord_events": [
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 2,
|
||||
"y": 23,
|
||||
"elevation": 4,
|
||||
"var": "VAR_VICTORY_ROAD_1F_STATE",
|
||||
"var_value": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_WallyBattleTrigger1"
|
||||
},
|
||||
{
|
||||
"type": "trigger",
|
||||
"x": 3,
|
||||
"y": 23,
|
||||
"elevation": 4,
|
||||
"var": "VAR_VICTORY_ROAD_1F_STATE",
|
||||
"var_value": "0",
|
||||
"script": "VictoryRoad_1F_EventScript_WallyBattleTrigger2"
|
||||
}
|
||||
],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "hidden_item",
|
||||
"x": 30,
|
||||
"y": 39,
|
||||
"elevation": 4,
|
||||
"item": "ITEM_ULTRA_BALL",
|
||||
"flag": "FLAG_HIDDEN_ITEM_VICTORY_ROAD_1F_ULTRA_BALL"
|
||||
}
|
||||
]
|
||||
}
|
220
data/maps/VictoryRoad_1F/scripts.inc
Normal file
220
data/maps/VictoryRoad_1F/scripts.inc
Normal file
@ -0,0 +1,220 @@
|
||||
.set LOCALID_WALLY_ENTRANCE, 4
|
||||
|
||||
VictoryRoad_1F_MapScripts::
|
||||
map_script MAP_SCRIPT_ON_TRANSITION, VictoryRoad_1F_OnTransition
|
||||
.byte 0
|
||||
|
||||
VictoryRoad_1F_OnTransition:
|
||||
call_if_eq VAR_VICTORY_ROAD_1F_STATE, 1, VictoryRoad_1F_EventScript_SetEntranceWallyPos1
|
||||
call_if_eq VAR_VICTORY_ROAD_1F_STATE, 2, VictoryRoad_1F_EventScript_SetEntranceWallyPos2
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_SetEntranceWallyPos1::
|
||||
setobjectxyperm LOCALID_WALLY_ENTRANCE, 2, 24
|
||||
setobjectmovementtype LOCALID_WALLY_ENTRANCE, MOVEMENT_TYPE_FACE_DOWN
|
||||
return
|
||||
|
||||
VictoryRoad_1F_EventScript_SetEntranceWallyPos2::
|
||||
setobjectxyperm LOCALID_WALLY_ENTRANCE, 3, 24
|
||||
setobjectmovementtype LOCALID_WALLY_ENTRANCE, MOVEMENT_TYPE_FACE_DOWN
|
||||
return
|
||||
|
||||
VictoryRoad_1F_EventScript_WallyBattleTrigger1::
|
||||
lockall
|
||||
setvar VAR_0x8008, 1
|
||||
addobject LOCALID_WALLY_ENTRANCE
|
||||
applymovement LOCALID_WALLY_ENTRANCE, VictoryRoad_1F_Movement_WallyApproachPlayer1
|
||||
waitmovement 0
|
||||
goto VictoryRoad_1F_EventScript_WallyEntranceBattle
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_WallyBattleTrigger2::
|
||||
lockall
|
||||
setvar VAR_0x8008, 2
|
||||
addobject LOCALID_WALLY_ENTRANCE
|
||||
applymovement LOCALID_WALLY_ENTRANCE, VictoryRoad_1F_Movement_WallyApproachPlayer2
|
||||
waitmovement 0
|
||||
goto VictoryRoad_1F_EventScript_WallyEntranceBattle
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_WallyEntranceBattle::
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
|
||||
waitmovement 0
|
||||
msgbox VictoryRoad_1F_Text_WallyNotGoingToLoseAnymore, MSGBOX_DEFAULT
|
||||
trainerbattle_no_intro TRAINER_WALLY_VR_1, VictoryRoad_1F_Text_WallyEntranceDefeat
|
||||
msgbox VictoryRoad_1F_Text_WallyPostEntranceBattle, MSGBOX_DEFAULT
|
||||
clearflag FLAG_HIDE_VICTORY_ROAD_ENTRANCE_WALLY
|
||||
copyobjectxytoperm LOCALID_WALLY_ENTRANCE
|
||||
setflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
|
||||
copyvar VAR_VICTORY_ROAD_1F_STATE, VAR_0x8008
|
||||
releaseall
|
||||
end
|
||||
|
||||
VictoryRoad_1F_Movement_WallyApproachPlayer1:
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
VictoryRoad_1F_Movement_WallyApproachPlayer2:
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_left
|
||||
walk_up
|
||||
step_end
|
||||
|
||||
@ This Wally appears near the entrance once his battle is triggered and remains there until the Hall of Fame is entered
|
||||
VictoryRoad_1F_EventScript_EntranceWally::
|
||||
msgbox VictoryRoad_1F_Text_WallyPostEntranceBattle, MSGBOX_NPC
|
||||
end
|
||||
|
||||
@ This Wally appears and remains at the exit after the Hall of Fame is entered
|
||||
VictoryRoad_1F_EventScript_ExitWally::
|
||||
trainerbattle_single TRAINER_WALLY_VR_2, VictoryRoad_1F_Text_WallyIntro, VictoryRoad_1F_Text_WallyDefeat
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_1F_EventScript_RematchWally
|
||||
msgbox VictoryRoad_1F_Text_WallyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_RematchWally::
|
||||
trainerbattle_rematch TRAINER_WALLY_VR_2, VictoryRoad_1F_Text_WallyIntro, VictoryRoad_1F_Text_WallyDefeat
|
||||
msgbox VictoryRoad_1F_Text_WallyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_Edgar::
|
||||
trainerbattle_single TRAINER_EDGAR, VictoryRoad_1F_Text_EdgarIntro, VictoryRoad_1F_Text_EdgarDefeat
|
||||
msgbox VictoryRoad_1F_Text_EdgarPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_Albert::
|
||||
trainerbattle_single TRAINER_ALBERT, VictoryRoad_1F_Text_AlbertIntro, VictoryRoad_1F_Text_AlbertDefeat
|
||||
msgbox VictoryRoad_1F_Text_AlbertPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_Hope::
|
||||
trainerbattle_single TRAINER_HOPE, VictoryRoad_1F_Text_HopeIntro, VictoryRoad_1F_Text_HopeDefeat
|
||||
msgbox VictoryRoad_1F_Text_HopePostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_Quincy::
|
||||
trainerbattle_single TRAINER_QUINCY, VictoryRoad_1F_Text_QuincyIntro, VictoryRoad_1F_Text_QuincyDefeat
|
||||
msgbox VictoryRoad_1F_Text_QuincyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_Katelynn::
|
||||
trainerbattle_single TRAINER_KATELYNN, VictoryRoad_1F_Text_KatelynnIntro, VictoryRoad_1F_Text_KatelynnDefeat
|
||||
msgbox VictoryRoad_1F_Text_KatelynnPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
VictoryRoad_1F_Text_WallyNotGoingToLoseAnymore:
|
||||
.string "WALLY: Hi! {PLAYER}!\p"
|
||||
.string "I bet you're surprised to see me here!\p"
|
||||
.string "I made it all the way here, and it's\n"
|
||||
.string "all thanks to you!\p"
|
||||
.string "{PLAYER}, losing to you that time\n"
|
||||
.string "made me stronger!\p"
|
||||
.string "But I'm not going to lose anymore!\p"
|
||||
.string "I'm going to win! For the POKéMON who\n"
|
||||
.string "gave me courage and strength!\p"
|
||||
.string "Okay… Here I come!$"
|
||||
|
||||
VictoryRoad_1F_Text_WallyEntranceDefeat:
|
||||
.string "Wow!\n"
|
||||
.string "{PLAYER}, you are strong, after all!$"
|
||||
|
||||
VictoryRoad_1F_Text_WallyPostEntranceBattle:
|
||||
.string "WALLY: I couldn't beat you today,\n"
|
||||
.string "{PLAYER}, but one of these days, I'll\l"
|
||||
.string "catch up to you!$"
|
||||
|
||||
VictoryRoad_1F_Text_WallyIntro:
|
||||
.string "WALLY: Hi! {PLAYER}!\p"
|
||||
.string "I've gotten stronger since that last\n"
|
||||
.string "time! I wanted to show you, {PLAYER}!\p"
|
||||
.string "Okay… Here I come!$"
|
||||
|
||||
VictoryRoad_1F_Text_WallyDefeat:
|
||||
.string "Wow!\n"
|
||||
.string "{PLAYER}, you are strong, after all!$"
|
||||
|
||||
VictoryRoad_1F_Text_WallyPostBattle:
|
||||
.string "WALLY: I couldn't beat you this time,\n"
|
||||
.string "too… But one of these days, {PLAYER},\l"
|
||||
.string "I'm going to catch up to you…\p"
|
||||
.string "And challenge the POKéMON LEAGUE!$"
|
||||
|
||||
VictoryRoad_1F_Text_EdgarIntro:
|
||||
.string "I've made it this far a couple times,\n"
|
||||
.string "but the last stretch is so long…$"
|
||||
|
||||
VictoryRoad_1F_Text_EdgarDefeat:
|
||||
.string "My dream ends here again…$"
|
||||
|
||||
VictoryRoad_1F_Text_EdgarPostBattle:
|
||||
.string "You've made it this far. Keep the\n"
|
||||
.string "momentum going and become the\l"
|
||||
.string "CHAMPION! If anyone can, it's you!$"
|
||||
|
||||
VictoryRoad_1F_Text_AlbertIntro:
|
||||
.string "I didn't come all this way to lose now.\n"
|
||||
.string "That possibility doesn't exist!$"
|
||||
|
||||
VictoryRoad_1F_Text_AlbertDefeat:
|
||||
.string "Impossible…\n"
|
||||
.string "I lost?$"
|
||||
|
||||
VictoryRoad_1F_Text_AlbertPostBattle:
|
||||
.string "I lost here…\p"
|
||||
.string "That means I lack the qualifications\n"
|
||||
.string "to become the CHAMPION…$"
|
||||
|
||||
VictoryRoad_1F_Text_HopeIntro:
|
||||
.string "This seemingly infinite and harsh road\n"
|
||||
.string "lives up to its name of VICTORY.$"
|
||||
|
||||
VictoryRoad_1F_Text_HopeDefeat:
|
||||
.string "Your battle style is fantastic…$"
|
||||
|
||||
VictoryRoad_1F_Text_HopePostBattle:
|
||||
.string "You seem to have the potential for\n"
|
||||
.string "becoming the CHAMPION.$"
|
||||
|
||||
VictoryRoad_1F_Text_QuincyIntro:
|
||||
.string "What is the VICTORY ROAD?\n"
|
||||
.string "I'll tell you if you win!$"
|
||||
|
||||
VictoryRoad_1F_Text_QuincyDefeat:
|
||||
.string "Okay!\n"
|
||||
.string "Well done!$"
|
||||
|
||||
VictoryRoad_1F_Text_QuincyPostBattle:
|
||||
.string "Getting through here safely--that's\n"
|
||||
.string "the final test for any TRAINER aiming\l"
|
||||
.string "to become the POKéMON CHAMPION.\p"
|
||||
.string "That's why it's called the VICTORY\n"
|
||||
.string "ROAD.$"
|
||||
|
||||
VictoryRoad_1F_Text_KatelynnIntro:
|
||||
.string "I have nothing to say to anyone\n"
|
||||
.string "that's come this far. Come on!$"
|
||||
|
||||
VictoryRoad_1F_Text_KatelynnDefeat:
|
||||
.string "This is a disgrace…$"
|
||||
|
||||
VictoryRoad_1F_Text_KatelynnPostBattle:
|
||||
.string "Humph, go right on ahead.\n"
|
||||
.string "See if I care.$"
|
Reference in New Issue
Block a user