P3D-Legacy/P3D/Content/Data/Scripts/frontier/battletower/challenge/lostbattle.dat

38 lines
2.0 KiB
Plaintext

version=2
@text.show(You lost the battle.~You'll be returning~to the lobby now.)
@camera.reset
@camera.deactivatethirdperson
@screen.fadeout
@Player.warp(frontier\battletower\main.dat,10,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_class)>>0
:then
@register.change(battletower_challenge_<storage.get(integer,tower_level)>_class,<system.int(<storage.get(integer,tower_class)>-1)>)
:endif
@register.change(battletower_challenge_<storage.get(integer,tower_level)>_previous_streak,0)
@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
@text.show(...~........*All done! Please come~see us again!)
@storage.clear
:endscript