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

44 lines
2.4 KiB
Plaintext

version=2
@player.preventmovement
@player.stopmovement
@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\<system.calcint(<level.filename>-1)>.dat,~,~-5,~,0)
@level.update
@player.setmovement(0,1,0)
@player.move(2)
@player.resetmovement
@player.move(2)
@player.allowmovement
:end