version=2 @text.show(OK. You'll be returning~to the lobby now.) @screen.fadeout @Player.warp(frontier\battlefactory\main.dat,4,0.1,3,0) @camera.reset @level.update @screen.fadein @player.turnto(0) :if:=true :then @camera.activatethirdperson :else @camera.deactivatethirdperson :endif :if:>6 :then @storage.set(integer,get_bp,/5)>) @text.show(You've done well to~defeat at least 7 trainers.*Your record will be recorded,~and you may add to it by~challenging the factory again.*Allow me to present you with~BP for defeating trainers.) @player.addbp() @text.show( got BP!*You now have BP.) :endif :if:>_best)> :then @register.change(battlefactory_endless__best,) @text.show(Congratulations!~You beat your high score.*Your new high score is~ win(s).) :endif @script.start(frontier\battlefactory\endless\clearup) :endscript