P3D-Legacy/P3D/Content/Data/Scripts/diamonddive/bigup.dat

58 lines
3.1 KiB
Plaintext

version=2
@player.preventmovement
@storage.set(integer,pokenum,0)
:if:<pokemon.hasattack(0,127)>=true
@storage.set(integer,pokenum,0)
:else
:if:<pokemon.hasattack(1,127)>=true
@storage.set(integer,pokenum,1)
:else
:if:<pokemon.hasattack(2,127)>=true
@storage.set(integer,pokenum,2)
:else
:if:<pokemon.hasattack(3,127)>=true
@storage.set(integer,pokenum,3)
:else
:if:<pokemon.hasattack(4,127)>=true
@storage.set(integer,pokenum,4)
:else
:if:<pokemon.hasattack(5,127)>=true
@storage.set(integer,pokenum,5)
:endif
:endif
:endif
:endif
:endif
:endif
:if:<pokemon.hasnickname(<storage.get(integer,pokenum)>)>=False
@text.show(<pokemon.nickname(<storage.get(integer,pokenum)>)> used~Waterfall.)
:else
@text.show(<pokemon.name(<storage.get(integer,pokenum)>)> used~Waterfall.)
:endif
@pokemon.cry(<pokemon.number(<storage.get(integer,pokenum)>)>)
@player.setmovement(0,1,0)
@player.move(3)
@player.resetmovement
@player.warp(diamonddive\underwater\4.dat,~,~-5,~,0)
@level.update
@player.setmovement(0,1,0)
@player.move(5)
@player.resetmovement
@player.warp(diamonddive\underwater\3.dat,~,~-5,~,0)
@level.update
@player.setmovement(0,1,0)
@player.move(5)
@player.resetmovement
@player.warp(diamonddive\underwater\2.dat,~,~-5,~,0)
@level.update
@player.setmovement(0,1,0)
@player.move(5)
@player.resetmovement
@player.warp(diamonddive\underwater\1.dat,~,~-5,~,0)
@level.update
@player.setmovement(0,1,0)
@player.move(2)
@player.resetmovement
@player.move(2)
@player.allowmovement
:end