34 lines
2.8 KiB
Plaintext
34 lines
2.8 KiB
Plaintext
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:<storage.get(boolean,thirdperson)>=true
|
|
:then
|
|
@camera.activatethirdperson
|
|
:else
|
|
@camera.deactivatethirdperson
|
|
:endif
|
|
|
|
:if:<storage.get(integer,factory_streak)>>6
|
|
:then
|
|
@storage.set(integer,get_bp,<math.floor(<storage.get(integer,factory_streak)>*1.125+<storage.get(integer,factory_class)>)>)
|
|
@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~<storage.get(integer,get_bp)>BP for defeating <storage.get(integer,factory_streak)> trainers.)
|
|
@player.addbp(<storage.get(integer,get_bp)>)
|
|
@text.show(<player.name> got <storage.get(integer,get_bp)> BP!*You now have <player.bp> BP.)
|
|
:endif
|
|
|
|
:if:<storage.get(integer,factory_streak)>><register.value(battlefactory_endless_<storage.get(integer,factory_level)>_best)>
|
|
:then
|
|
@register.change(battlefactory_endless_<storage.get(integer,factory_level)>_best,<storage.get(integer,factory_streak)>)
|
|
@text.show(Congratulations!~You beat your high score.*Your new high score is~<storage.get(integer,factory_streak)> win(s).)
|
|
:endif
|
|
|
|
@script.start(frontier\battlefactory\endless\clearup)
|
|
|
|
:endscript |