Making Giovanni's Room better

I've been at this for like 2 hours, I don't care how scuffed this code is, I just wanted to make the entrance to Giovanni's room look smoother and less obvious-
This commit is contained in:
Martha Schilling 2023-12-02 22:19:48 +00:00
parent be54c19109
commit c5c521e48c
6 changed files with 45 additions and 10 deletions

View file

@ -51,6 +51,8 @@
const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_5 const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_5
const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_6 const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_6
const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_7 const EVENT_BEAT_VIRIDIAN_GYM_TRAINER_7
const_skip 3
const EVENT_GIOVANNIS_ROOM_DOOR_UNLOCKED
; Pewter City events ; Pewter City events
const_next $68 const_next $68

View file

@ -4,13 +4,14 @@ ViridianGym_Object:
def_warp_events def_warp_events
warp_event 16, 17, LAST_MAP, 5 ; front door warp_event 16, 17, LAST_MAP, 5 ; front door
warp_event 17, 17, LAST_MAP, 5 ; front door warp_event 17, 17, LAST_MAP, 5 ; front door
warp_event 4, 2, GIOVANNIS_ROOM, 1 ; stairs warp_event 2, 0, GIOVANNIS_ROOM, 1 ; stairs
warp_event 3, 0, GIOVANNIS_ROOM, 1 ; stairs
def_bg_events def_bg_events
def_object_events def_object_events
object_event 4, 3, SPRITE_GIOVANNI, STAY, DOWN, 1, OPP_GIOVANNI, 3 object_event 2, 2, SPRITE_GIOVANNI, STAY, DOWN, 1, OPP_GIOVANNI, 3
object_event 12, 7, SPRITE_COOLTRAINER_M, STAY, DOWN, 2, OPP_COOLTRAINER_M, 9 object_event 12, 7, SPRITE_COOLTRAINER_M, STAY, DOWN, 2, OPP_COOLTRAINER_M, 9
object_event 11, 11, SPRITE_HIKER, STAY, UP, 3, OPP_BLACKBELT, 13 object_event 11, 11, SPRITE_HIKER, STAY, UP, 3, OPP_BLACKBELT, 13
object_event 10, 7, SPRITE_ROCKER, STAY, DOWN, 4, OPP_TAMER, 3 object_event 10, 7, SPRITE_ROCKER, STAY, DOWN, 4, OPP_TAMER, 3

View file

@ -1 +1 @@
............@AABAAAAB..DoF:;F..@+B 55..DwEF GF..DwEF 5'F..DwEF 59..DwEF'..H J55..DF555..DF*+AAB..DGGq^..D SCG5..HIIJ3333J. ............@AABAAAAB..DnF:;F..@+B 55..DwEF GF..DwEF 5'F..DwEF 59..DwEF'..H J55..DF555..DF*+AAB..DGGq^..D SCG5..HIIJ3333J.

View file

@ -1 +1 @@
III_]KMp[qWFF^\KUUKqLRFFFPHH[L@KMLaDKQ`G,XHHHZbCEWFFFY21@AB IJ_]KLqWFF^\KUKqLRFFFPHH[L@KMLaDKQ`G,XHHHZbCEWFFFY21@AB

View file

@ -1,4 +1,5 @@
ViridianGym_Script: ViridianGym_Script:
call ViridianGymDoorCallbackScript
ld hl, .CityName ld hl, .CityName
ld de, .LeaderName ld de, .LeaderName
call LoadGymLeaderAndCityName call LoadGymLeaderAndCityName
@ -16,6 +17,22 @@ ViridianGym_Script:
.LeaderName: .LeaderName:
db "GIOVANNI@" db "GIOVANNI@"
ViridianGymDoorCallbackScript:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
CheckEvent EVENT_GIOVANNIS_ROOM_DOOR_UNLOCKED
jr z, .blockExitToNextRoom
ld a, $5
jp .setExitBlock
.blockExitToNextRoom
ld a, $24
.setExitBlock
ld [wNewTileBlockID], a
lb bc, 0, 1
predef_jump ReplaceTileBlock
ViridianGymResetScripts: ViridianGymResetScripts:
xor a xor a
ld [wJoyIgnore], a ld [wJoyIgnore], a
@ -29,6 +46,7 @@ ViridianGym_ScriptPointers:
dw EndTrainerBattle dw EndTrainerBattle
dw ViridianGymGiovanniPostBattle dw ViridianGymGiovanniPostBattle
dw ViridianGymScript4 dw ViridianGymScript4
dw ViridianGymOpenTheDoor
ViridianGymScript0: ViridianGymScript0:
ld a, [wYCoord] ld a, [wYCoord]
@ -161,6 +179,15 @@ ViridianGymReceiveTM27:
SetEvents EVENT_2ND_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_BATTLE SetEvents EVENT_2ND_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_BATTLE
jp ViridianGymResetScripts jp ViridianGymResetScripts
ViridianGymOpenTheDoor:
ld a, SFX_GO_INSIDE
call PlaySound
SetEvent EVENT_GIOVANNIS_ROOM_DOOR_UNLOCKED
ld a, $5
ld [wNewTileBlockID], a
lb bc, 0, 1
predef_jump ReplaceTileBlock
ViridianGym_TextPointers: ViridianGym_TextPointers:
dw GiovanniText dw GiovanniText
dw ViridianGymTrainerText1 dw ViridianGymTrainerText1
@ -217,6 +244,7 @@ GiovanniText:
predef HideObject predef HideObject
call UpdateSprites call UpdateSprites
call Delay3 call Delay3
call ViridianGymOpenTheDoor
call GBFadeInFromBlack call GBFadeInFromBlack
jr .done jr .done
.beforeBeat .beforeBeat

View file

@ -2,14 +2,18 @@ _GiovanniPreBattleText::
text "Fwahahaha! This is" text "Fwahahaha! This is"
line "my hideout!" line "my hideout!"
para "Once again, you" para "I planned to"
line "thwart me!" line "resurrect TEAM"
cont "ROCKET here!"
para "But once again,"
line "you thwart me."
cont "So be it! This" cont "So be it! This"
cont "time, I'm not" cont "time, I'm not"
cont "holding back!" cont "holding back!"
para "Once more, you" para "Once more, you"
line "shall face" line "shall face me,"
cont "GIOVANNI, the" cont "GIOVANNI, the"
cont "greatest trainer!" cont "greatest trainer!"
done done
@ -26,13 +30,13 @@ _ReceivedEarthBadgeText::
_GiovanniPostBattleAdviceText:: _GiovanniPostBattleAdviceText::
text "Having lost, I" text "Having lost, I"
line "cannot face my" line "cannot face my"
cont "underlings!" cont "underlings..."
cont "TEAM ROCKET is" cont "TEAM ROCKET is"
cont "finished forever!" cont "finished forever!"
para "I will dedicate my" para "I will dedicate my"
line "life to the study" line "life to the study"
cont "of #MON!" cont "of #MON."
para "Let us meet again" para "Let us meet again"
line "some day!" line "some day!"
@ -42,7 +46,7 @@ _GiovanniPostBattleAdviceText::
_GiovanniEarthBadgeInfoText:: _GiovanniEarthBadgeInfoText::
text "The EARTHBADGE" text "The EARTHBADGE"
line "is evidence of" line "is evidence of"
line "your mastery as a" cont "your mastery as a"
cont "#MON trainer!" cont "#MON trainer!"
para "With it, you can" para "With it, you can"