Gym Scaling proof of concept

pokecrystal requires a very different approach to gym scaling. This is based on the phone code.

Could absolutely be revised in a myriad of ways.
This commit is contained in:
Llinos Evans 2023-11-05 12:14:20 +00:00
parent 19191608f3
commit 442b9b9956
3 changed files with 77 additions and 8 deletions

View file

@ -18,8 +18,26 @@ VioletGymFalknerScript:
waitbutton
closetext
winlosstext FalknerWinLossText, 0
; Gym Scaling code
; This is incredibly inefficient, but so is the phone code that does a similar thing, so...cope. Seethe. Mald. Sue me.
; Also, this code has a flaw in that it presumes you went through the default gym order...
loadtrainer FALKNER, FALKNER2
checkflag EVENT_BEAT_BUGSY
iftrue .okyoucanloadnow
loadtrainer FALKNER, FALKNER3
checkflag EVENT_BEAT_WHITNEY
iftrue .okyoucanloadnow
loadtrainer FALKNER, FALKNER4
checkflag EVENT_BEAT_MORTY
iftrue .okyoucanloadnow
; If nothing else has been beaten, then Falkner hasn't been fought before, so we can load this now. It's slow, though.
loadtrainer FALKNER, FALKNER1
startbattle
.okyoucanloadnow
startbattle ; Now start the battle.
reloadmapafterbattle
setevent EVENT_BEAT_FALKNER
opentext