version=2 @storage.clear :if:=True @Text.show(You can take the elevator to return to the lobby!) :end :endif @storage.set(integer,time,)>-) :if:50000 @text.show(Congratulations on compl-~...~...~...~...*You took WAAAAY too long~to complete the tower!*No way am I rewarding~that sloppy performance!*Go back and try~it again!) :end :endif :if:1> @text.show(....*....*....*You completed the challenge~before you even started?*Unlikely!*Next time try to~complete the challenge without~cheating!) @script.start(quest\tower\unregister) @screen.fadeout @player.warp(14,0,10) @player.turnto(2) @player.move(0) @screen.fadein @storage.clear :end :endif :if:=true @storage.set(string,challenge,Single) @storage.set(string,chall,sing) @storage.set(integer,firstscore,483) @storage.set(integer,prizeone,471) @storage.set(integer,scoremax,570) @storage.set(integer,prizemax,21) @storage.set(integer,scorereg,1020) @storage.set(integer,prizereg,65) :endif :if:=true @storage.set(string,challenge,Double) @storage.set(string,chall,doub) @storage.set(integer,firstscore,487) @storage.set(integer,prizeone,481) @storage.set(integer,scoremax,570) @storage.set(integer,prizemax,64) @storage.set(integer,scorereg,1020) @storage.set(integer,prizereg,63) :endif :if:=true @storage.set(string,challenge,Knockout) @storage.set(string,chall,knock) @storage.set(integer,firstscore,731) @storage.set(integer,prizeone,478) @storage.set(integer,scoremax,810) @storage.set(integer,prizemax,40) @storage.set(integer,scorereg,1500) @storage.set(integer,prizereg,39) :endif :if:=true @storage.set(string,challenge,Mixed) @storage.set(string,chall,mix) @storage.set(integer,firstscore,649) @storage.set(integer,prizeone,477) @storage.set(integer,scoremax,720) @storage.set(integer,prizemax,502) @storage.set(integer,scorereg,1320) @storage.set(integer,prizereg,62) :endif :if:>Rec)> @storage.set(integer,firstscore,Rec)>) :endif :if:=true @text.show(Congratulations on completing the tower!) :if:FirstTime)>=False @Text.show(As a reward for your~first time completing~the Trainer Tower~ Challenge~I would like to give~you this TM!) @item.give(,1) @register.register(TTowerFirstTime) :endif @text.show(Now, let's take a look~at your time!*...*...*Your completion time for~the Trainer Tower~ Challenge~is seconds.) :if:> @Text.show(AMAZING!*Congratulations,~you just set a new record!) @register.register(TTowerRecordHolder) :if:=True =True =True =True @Text.show(This means you now hold the records in all four challenges!*As a special reward I would like you to have this rare Pokémon from the Galar Region!) :if:=true :if:=1 @pokemon.add({"Pokemon"[885]}{"Level"[10]}{"CatchBall"[5]}{"CatchMethod"[Reward from]}{"isShiny"[1]}) :else @pokemon.add({"Pokemon"[885]}{"Level"[10]}{"CatchBall"[5]}{"CatchMethod"[Reward from]}{"isShiny"[0]}) :endif :else :if:=1 @pokemon.addtostorage({"Pokemon"[885]}{"Level"[10]}{"CatchBall"[5]}{"CatchMethod"[Reward from]}{"isShiny"[1]}) :else @pokemon.addtostorage({"Pokemon"[885]}{"Level"[10]}{"CatchBall"[5]}{"CatchMethod"[Reward from]}{"isShiny"[0]}) :endif :endif :else @text.show(As a reward for your amazing time please take these items.) @item.give(,3) :endif :else :if:> @text.show(WOW!*That's a very good rime!*As a reward please take this.) @item.give(,1) :else :if:> @text.show(That's a good time!*As a reward please take this.) @item.give(,1) :else @text.show(That's a decent time,~I look forward to seeing~you improve!) :endif :endif :endif :if:Rec)>> @register.change(TrTRec,) @Text.show(I have updated the rankboard in the lobby with your new time!) :endif @text.show(You can take the elevator to return to the lobby!) @register.register(TTowerCompletewPrize) :endif @storage.clear :end