version=2 @Text.Show(Welcome to the Battle Tower!*I oversee trainers' individual~challenges.*This is the~Endless Mode.~If you would like to enter~the tower, you must have~only 3 Pokémon to battle with.*Also, you have to save~your game before entering.*Would you like to~challenge the Tower?) @Options.Show(Yes,No) :when:Yes @player.save @sound.play(Save) @text.show(~saved the game.) @storage.set(boolean,thirdperson,) :if:>3 :then @Text.Show(Please remove -3)> Pokémon~from your party.) @Screen.StorageSystem :else :if:<3 @text.show(Please add )> Pokémon~to your party.) @screen.storagesystem :endif :endif :if:=false :then @register.register(battletower_endless_50_class,INT,0) @register.register(battletower_endless_50_best,INT,0) @register.register(battletower_endless_100_class,INT,0) @register.register(battletower_endless_100_best,INT,0) @register.register(frontier_battletower_endless_values_created) :endif @storage.set(integer,tower_streak,0) :if:=3 =3 :then @text.show(Which challenge do~you want to start?) @options.show(Lv. 50,Lv. 100,Cancel) :when:Lv. 50 @storage.set(integer,tower_level,50) @storage.set(integer,tower_class,) :when:Lv. 100 @storage.set(integer,tower_level,100) @storage.set(integer,tower_class,) :when:Cancel @Text.Show(Well, come back and see~us again when you have*prepared yourself for~the challenge.) :endscript :endwhen @pokemon.heal @storage.set(integer,level_0,) @storage.set(integer,level_1,) @storage.set(integer,level_2,) @Pokemon.changelevel(0,) @Pokemon.changelevel(1,) @Pokemon.changelevel(2,) @pokemon.calcstats(0) @pokemon.calcstats(1) @pokemon.calcstats(2) @pokemon.heal @Text.Show(Well, now you are~prepared.) @script.start(frontier\battletower\endless\intro_walk) :else :if:>3 >3 @Text.Show(It seems you have~too many Pokémon.*Please return when you are~prepared to use exactly~3 Pokémon.) :else @Text.Show(It seems you have~too few Pokémon.*Please return when you are~prepared to use exactly~3 Pokémon.) :endif :endif :when:No @Text.Show(Well, come back and see~us again when you have*prepared yourself for~the challenge.) :endwhen :end