version=2 @Text.Show(Welcome to the Battle Factory!*I oversee trainer's individual~challenges.*This is the~Challenge Mode.~If you would like to enter~the factory, you must have~only 1 Pokémon.*Also, you have to save~your game before entering.*Would you like to~challenge the Factory?) @Options.Show(Yes,No) :when:Yes @player.save @sound.play(Save) @text.show(~saved the game.) @storage.set(boolean,thirdperson,) :if:>1 :then @Text.Show(Please remove -1)> Pokémon~from your party.) @Screen.StorageSystem :endif :if:=false :then @register.register(battlefactory_challenge_50_class,INT,0) @register.register(battlefactory_challenge_50_best,INT,0) @register.register(battlefactory_challenge_50_previous_streak,INT,0) @register.register(battlefactory_challenge_100_class,INT,0) @register.register(battlefactory_challenge_100_best,INT,0) @register.register(battlefactory_challenge_100_previous_streak,INT,0) @register.register(frontier_battlefactory_challenge_values_created) :endif @storage.set(integer,factory_streak,0) @storage.set(boolean,factory_brain,false) :if:=1 =1 :then @text.show(Which challenge do~you want to start?) @options.show(Lv. 50,Lv. 100,Cancel) :when:Lv. 50 @storage.set(integer,factory_level,50) @storage.set(integer,previous_streak,) @storage.set(integer,factory_class,) :when:Lv. 100 @storage.set(integer,factory_level,100) @storage.set(integer,previous_streak,) @storage.set(integer,factory_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(string,factory_pokemonstore,) @pokemon.clear @pokemon.add(,)>) @pokemon.add(,)>) @pokemon.add(,)>) @Text.Show(Well, now you are~prepared.) @pokedex.setautodetect(0) @script.start(frontier\battlefactory\challenge\intro_walk) :else @Text.Show(It seems you have~too many Pokémon.*Please return when you are~prepared to use exactly~1 Pokémon.) :endif :when:No @Text.Show(Well, come back and see~us again when you have*prepared yourself for~the challenge.) :endwhen :end