44 lines
3.3 KiB
Plaintext
44 lines
3.3 KiB
Plaintext
version=2
|
|
|
|
@text.show(OK. You'll be returning~to the lobby now.)
|
|
@screen.fadeout
|
|
@Player.warp(frontier\battletower\main.dat,6,0.1,4,0)
|
|
@camera.reset
|
|
@level.update
|
|
@screen.fadein
|
|
@player.turnto(0)
|
|
|
|
:if:<storage.get(boolean,thirdperson)>=true
|
|
:then
|
|
@camera.activatethirdperson
|
|
:endif
|
|
|
|
:if:<storage.get(integer,tower_streak)>>6
|
|
:then
|
|
@storage.set(integer,get_bp,<math.floor(<storage.get(integer,tower_streak)>*1.1+<storage.get(integer,tower_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 tower again.*Allow me to present you with~<storage.get(integer,get_bp)>BP for defeating <storage.get(integer,tower_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,tower_streak)>><register.value(battletower_endless_<storage.get(integer,tower_level)>_best)>
|
|
:then
|
|
@register.change(battletower_endless_<storage.get(integer,tower_level)>_best,<storage.get(integer,tower_streak)>)
|
|
@text.show(Congratulations!~You beat your high score.*Your new high score is~<storage.get(integer,tower_streak)> win(s).)
|
|
:endif
|
|
|
|
@pokemon.changelevel(0,<storage.get(integer,level_0)>)
|
|
@pokemon.changelevel(1,<storage.get(integer,level_1)>)
|
|
@pokemon.changelevel(2,<storage.get(integer,level_2)>)
|
|
|
|
@pokemon.calcstats(0)
|
|
@pokemon.calcstats(1)
|
|
@pokemon.calcstats(2)
|
|
|
|
@pokemon.heal
|
|
|
|
@register.unregister(cantaddtoparty)
|
|
@text.show(...~........*All done! Please come~see us again!)
|
|
@storage.clear
|
|
|
|
:endscript |