mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
seems to have fixed the yujirou gym fight, now need to solve the warp issue once exiting the gym
This commit is contained in:
parent
4baf396498
commit
8cf1ba9fc9
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -29,3 +29,5 @@
|
||||||
*.sn*
|
*.sn*
|
||||||
*.sa*
|
*.sa*
|
||||||
*.sg1
|
*.sg1
|
||||||
|
|
||||||
|
.vscode/*
|
||||||
|
|
|
@ -277,7 +277,7 @@ InGameTradeTextPointers:
|
||||||
dw TradeTextPointers3
|
dw TradeTextPointers3
|
||||||
dw TradeTextPointers4
|
dw TradeTextPointers4
|
||||||
dw TradeTextPointers5
|
dw TradeTextPointers5
|
||||||
dw TradeTextPointers6
|
;dw TradeTextPointers6
|
||||||
|
|
||||||
TradeTextPointers1:
|
TradeTextPointers1:
|
||||||
dw WannaTrade1Text
|
dw WannaTrade1Text
|
||||||
|
|
|
@ -5,14 +5,13 @@
|
||||||
; Commit on 30-3-23 has a somewhat stable version of the fight.
|
; Commit on 30-3-23 has a somewhat stable version of the fight.
|
||||||
|
|
||||||
ViridianPreGym_Script:
|
ViridianPreGym_Script:
|
||||||
call EnableAutoTextBoxDrawing
|
|
||||||
ld de, ViridianPreGym_ScriptPointers
|
ld de, ViridianPreGym_ScriptPointers
|
||||||
ld a, [wViridianPreGymCurScript]
|
ld a, [wViridianPreGymCurScript]
|
||||||
call ExecuteCurMapScriptInTable
|
call ExecuteCurMapScriptInTable
|
||||||
ld [wViridianPreGymCurScript], a
|
ld [wViridianPreGymCurScript], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
LoadNames:
|
.LoadNames:
|
||||||
ld hl, .CityName
|
ld hl, .CityName
|
||||||
ld de, .LeaderName
|
ld de, .LeaderName
|
||||||
jp LoadGymLeaderAndCityName
|
jp LoadGymLeaderAndCityName
|
||||||
|
@ -31,12 +30,11 @@ ViridianPreGymResetScripts:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
ViridianPreGym_ScriptPointers:
|
ViridianPreGym_ScriptPointers:
|
||||||
|
dw CheckFightingMapTrainers
|
||||||
|
dw DisplayEnemyTrainerTextAndStartBattle
|
||||||
|
dw EndTrainerBattle
|
||||||
dw ViridianGymYujirouPostBattle
|
dw ViridianGymYujirouPostBattle
|
||||||
|
|
||||||
ViridianPreGym_TextPointers:
|
|
||||||
dw YujirouText
|
|
||||||
dw YujirouRematch
|
|
||||||
|
|
||||||
ViridianGymYujirouPostBattle:
|
ViridianGymYujirouPostBattle:
|
||||||
ld a, [wIsInBattle]
|
ld a, [wIsInBattle]
|
||||||
cp $ff
|
cp $ff
|
||||||
|
@ -45,17 +43,19 @@ ViridianGymYujirouPostBattle:
|
||||||
ld [wJoyIgnore], a
|
ld [wJoyIgnore], a
|
||||||
|
|
||||||
YujirouHasBeenBeaten:
|
YujirouHasBeenBeaten:
|
||||||
;text_asm
|
|
||||||
;ld hl, YujirouAfterBattleText
|
|
||||||
;call PrintText
|
|
||||||
SetEvent EVENT_BEAT_YUJIROU
|
SetEvent EVENT_BEAT_YUJIROU
|
||||||
jp ViridianPreGymResetScripts
|
jp ViridianPreGymResetScripts
|
||||||
|
|
||||||
|
ViridianPreGym_TextPointers:
|
||||||
|
dw YujirouText
|
||||||
|
dw YujirouHasBeenBeaten
|
||||||
|
dw YujirouRematch
|
||||||
|
|
||||||
YujirouText:
|
YujirouText:
|
||||||
text_asm
|
text_asm
|
||||||
|
|
||||||
CheckEvent EVENT_BEAT_YUJIROU
|
CheckEvent EVENT_BEAT_YUJIROU
|
||||||
jr z, .YujirouBeaten
|
jr nz, .YujirouBeaten
|
||||||
|
|
||||||
ld hl, YujirouIntro
|
ld hl, YujirouIntro
|
||||||
call PrintText
|
call PrintText
|
||||||
|
@ -76,7 +76,7 @@ YujirouText:
|
||||||
ld hl, YujirouLoseText
|
ld hl, YujirouLoseText
|
||||||
ld de, YujirouWinText
|
ld de, YujirouWinText
|
||||||
call SaveEndBattleTextPointers
|
call SaveEndBattleTextPointers
|
||||||
ld a, $6
|
ld a, $3
|
||||||
ld [wViridianPreGymCurScript], a
|
ld [wViridianPreGymCurScript], a
|
||||||
ld [wCurMapScript], a
|
ld [wCurMapScript], a
|
||||||
jr .done
|
jr .done
|
||||||
|
@ -88,6 +88,8 @@ YujirouText:
|
||||||
jp TextScriptEnd
|
jp TextScriptEnd
|
||||||
; where the hell do i put SetEvent EVENT_BEAT_YUJIROU
|
; where the hell do i put SetEvent EVENT_BEAT_YUJIROU
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
YujirouIntro::
|
YujirouIntro::
|
||||||
text_far _YujirouIntro
|
text_far _YujirouIntro
|
||||||
text_end
|
text_end
|
||||||
|
|
Loading…
Reference in a new issue