demovv is Offline
Contact demovv:
Use a variable, and add 1 to it every time your character teleport.
;----------------------------------------------------------------------------
[StateDef 700]
type = S
movetype = H
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 9999
poweradd = -250
sprpriority = 2
[State 0, Helper]
type = Helper
trigger1 =time=3
helpertype = normal ;player
name =""
ID =701
stateno =701
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal =1
supermovetime = 0
pausemovetime = 0
[State 0, Explod]
type = Explod
trigger1 =time=0|time=10
anim = 1251
ID = 1251
pos = 0,10
postype = p1
scale = 1,1
sprpriority = 9
ownpal = 1
ignorehitpause = 1
trans = add
[State 0, PosAdd]
type = PosAdd
trigger1 =time=10
x = -20+random%30000
y = -50
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
;value2 = S,NA
[State 700, end]
type = ChangeState
trigger1 = time=10
value = 50
ctrl = 1
;----------------------------------------------------------------------------
[StateDef 701]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 6011
sprpriority = 2
[State 0, AssertSpecial]
type = AssertSpecial
trigger1 =1
ignorehitpause = 1
flag = noshadow
[State 0, VelSet]
type = VelSet
trigger1 = time>1
y = 7
[State 0, PosAdd]
type = PosAdd
trigger1 = time=0
y = -70
[State 0, AngleDraw]
type = AngleDraw
trigger1 =1
value = time*20
[State 701, end]
type = ChangeState
trigger1 = pos y>0
value = 703
ctrl = 1
;----------------------------------------------------------------------------
[StateDef 703]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 6011
sprpriority = 2
[State 0, AssertSpecial]
type = AssertSpecial
trigger1 =1
ignorehitpause = 1
flag = noshadow
[State 0, AngleDraw]
type = AngleDraw
trigger1 =1
value = -10
[State 0]
type = Trans
trigger1 = time >= 50
trans = addalpha
alpha = 256-(20*(time-50)), 256
[State 0, DestroySelf]
type = DestroySelf
trigger1 = time=60
[State 200, Spark CVS]
type = Explod
trigger1 = time = 6
anim = 6005
ID = 6005
postype = P1
pos = 75,-30
facing = -1
vfacing = -1
sprpriority = 2
supermove = 1
removetime = -2
bindtime = -1
ownpal = 1
scale = .8,.8
removeongethit = 1
ontop = 1
ignorehitpause = 1
What exactly do you not understand?
Put a VarSet code in this special attack's state that sets it to 1. In state -2, put this:
Put a VarSet code in this special attack's state that sets it to 1. In state -2, put this:
[State 0, VarSet]
type = VarSet
trigger1 = roundstate != 2
v = -your value-
value = 0
Then, put "triggerall = var(-your value-) = 0" in this special attack's command.