pokeemerald/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc

143 lines
4.4 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
EverGrandeCity_PokemonLeague_1F_MapScripts:: @ 82295D2
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonLeague_1F_OnTransition
2019-10-12 04:23:05 +02:00
map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
2017-11-10 02:21:31 +01:00
.byte 0
2019-04-05 01:28:37 +02:00
EverGrandeCity_PokemonLeague_1F_OnTransition: @ 82295DD
setrespawn HEAL_LOCATION_EVER_GRANDE_CITY_2
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_POKEMON_LEAGUE
2019-11-03 18:29:41 +01:00
call_if_unset FLAG_ENTERED_ELITE_FOUR, EverGrandeCity_PokemonLeague_1F_EventScript_GuardsBlockDoor
2017-11-10 02:21:31 +01:00
end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_GuardsBlockDoor:: @ 82295ED
2017-11-10 02:21:31 +01:00
setobjectxyperm 3, 9, 2
setobjectxyperm 4, 10, 2
return
2019-11-03 18:29:41 +01:00
@ VAR_0x800B is the Nurse's object event id
EverGrandeCity_PokemonLeague_1F_EventScript_Nurse:: @ 82295FC
2017-11-10 02:21:31 +01:00
setvar VAR_0x800B, 1
2019-08-15 05:38:42 +02:00
call Common_EventScript_PkmnCenterNurse
2017-11-10 02:21:31 +01:00
waitmessage
waitbuttonpress
release
end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_Clerk:: @ 822960A
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-08-15 05:38:42 +02:00
message gText_HowMayIServeYou
2017-11-10 02:21:31 +01:00
waitmessage
2019-11-03 18:29:41 +01:00
pokemart EverGrandeCity_PokemonLeague_1F_Pokemart
2019-08-15 05:38:42 +02:00
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
.align 2
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Pokemart: @ 8229624
2017-11-10 02:21:31 +01:00
.2byte ITEM_ULTRA_BALL
.2byte ITEM_HYPER_POTION
.2byte ITEM_MAX_POTION
.2byte ITEM_FULL_RESTORE
.2byte ITEM_FULL_HEAL
.2byte ITEM_REVIVE
.2byte ITEM_MAX_REPEL
.2byte ITEM_NONE
release
end
2019-11-03 18:29:41 +01:00
@ The door guards only check for FLAG_BADGE06_GET because Winonas badge is the only one that can be skipped
@ Its assumed the player has the remaining badges
EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard:: @ 8229636
2017-11-10 02:21:31 +01:00
lockall
2019-11-03 18:29:41 +01:00
goto_if_set FLAG_ENTERED_ELITE_FOUR, EverGrandeCity_PokemonLeague_1F_EventScript_GoForth
2018-05-19 18:02:43 +02:00
getplayerxy VAR_TEMP_0, VAR_TEMP_1
compare VAR_TEMP_0, 11
2019-11-03 18:29:41 +01:00
call_if_ge EverGrandeCity_PokemonLeague_1F_EventScript_PlayerMoveToFrontFromRight
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_0, 8
2019-11-03 18:29:41 +01:00
call_if_le EverGrandeCity_PokemonLeague_1F_EventScript_PlayerMoveToFrontFromLeft
message EverGrandeCity_PokemonLeague_1F_Text_MustHaveAllGymBadges
2017-11-10 02:21:31 +01:00
waitmessage
delay 120
2019-11-03 18:29:41 +01:00
goto_if_unset FLAG_BADGE06_GET, EverGrandeCity_PokemonLeague_1F_EventScript_NotAllBadges
2017-11-10 02:21:31 +01:00
closemessage
2019-11-03 18:29:41 +01:00
applymovement 3, EverGrandeCity_PokemonLeague_1F_Movement_LeftGuardOutOfWay
applymovement 4, EverGrandeCity_PokemonLeague_1F_Movement_RightGuardOutOfWay
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 10
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_BACHI
2019-11-03 18:29:41 +01:00
message EverGrandeCity_PokemonLeague_1F_Text_GoForth
2017-11-10 02:21:31 +01:00
waitmessage
waitfanfare
closemessage
copyobjectxytoperm 3
copyobjectxytoperm 4
2019-01-02 22:12:43 +01:00
setflag FLAG_ENTERED_ELITE_FOUR
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_PlayerMoveToFrontFromRight:: @ 8229698
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_PokemonLeague_1F_Movement_MoveToFrontFromRight
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_PlayerMoveToFrontFromLeft:: @ 82296A3
applymovement OBJ_EVENT_ID_PLAYER, EverGrandeCity_PokemonLeague_1F_Movement_MoveToFrontFromLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_NotAllBadges:: @ 82296AE
2017-11-10 02:21:31 +01:00
playse SE_HAZURE
2019-11-03 18:29:41 +01:00
msgbox EverGrandeCity_PokemonLeague_1F_Text_HaventObtainedAllBadges, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_EventScript_GoForth:: @ 82296BB
applymovement VAR_LAST_TALKED, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-03 18:29:41 +01:00
msgbox EverGrandeCity_PokemonLeague_1F_Text_GoForth, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Movement_MoveToFrontFromRight: @ 82296DA
walk_down
walk_left
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Movement_MoveToFrontFromLeft: @ 82296DE
walk_down
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Movement_LeftGuardOutOfWay: @ 82296E2
walk_left
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Movement_RightGuardOutOfWay: @ 82296E5
walk_right
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Text_MustHaveAllGymBadges: @ 82296E8
2017-11-10 02:21:31 +01:00
.string "Beyond this point, only those TRAINERS\n"
.string "who have collected all the GYM BADGES\l"
.string "are permitted to enter.\p"
.string "TRAINER, let us confirm that you have\n"
.string "all the GYM BADGES.$"
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Text_HaventObtainedAllBadges: @ 8229787
2018-12-07 16:41:08 +01:00
.string "You haven't obtained all the BADGES.\p"
.string "If you're bound for the POKéMON\n"
2017-11-10 02:21:31 +01:00
.string "LEAGUE, you must return with them.$"
2019-11-03 18:29:41 +01:00
EverGrandeCity_PokemonLeague_1F_Text_GoForth: @ 82297EF
2017-11-10 02:21:31 +01:00
.string "TRAINER! Believe in yourself and your\n"
.string "POKéMON, and go forth!$"