;---------------------------------------------------------------------------
;Dust Helper
[StateDef 10040]
type = S
movetype = I
physics = N
velset = 0,0
ctrl = 0
anim = 9000

[State 10040, PosSet]
type = PosSet
trigger1 = 1
y = 0

[State 10040, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 10040, Jump Dust Base]
type = Explod
triggerall = Root, StateNo = 50 || Root, StateNo = 105 || (Root, StateNo = [200,1052]) || (Root, StateNo = [3000,3050])
triggerall = NumExplod(10040) = 0
triggerall = Root, Pos Y < 0
trigger1 = Time = 0
anim = 10040
ID = 10040
pos = 0,0
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 1]
type = Explod
triggerall = Root, StateNo = 50 
triggerall = Root, Vel X = 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = Time = 1
anim = 10041
ID = 10041
pos = 0,-20
vel = 0,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 2]
type = Explod
triggerall = Root, StateNo = 50 
triggerall = Root, Vel X = 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = Time = 1
anim = 10041
ID = 10041
pos = 0,-40
vel = 0,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 3]
type = Explod
triggerall = Root, StateNo = 50 || (Root, StateNo = [200,1052]) || (Root, StateNo = [3000,3050])
triggerall = Root, Vel X > 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = !Time
anim = 10041
ID = 10041
pos = 10,-40
vel = 1.5,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 4]
type = Explod
triggerall = Root, StateNo = 50 || (Root, StateNo = [200,1052]) || (Root, StateNo = [3000,3050])
triggerall = Root, Vel X > 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = !Time
anim = 10041
ID = 10041
pos = 5,-20
vel = 1.5,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 5]
type = Explod
triggerall = Root, StateNo = 50 || (Root, StateNo = [200,1052]) || (Root, StateNo = [3000,3050])
triggerall = Root, Vel X < 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = Time = 1
anim = 10041
ID = 10041
pos = -10,-40
vel = -1.5,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Jump Dust 6]
type = Explod
triggerall = Root, StateNo = 50 || (Root, StateNo = [200,1052]) || (Root, StateNo = [3000,3050])
triggerall = Root, Vel X < 0
triggerall = Root, Pos Y < 0
triggerall = NumExplod(10041) < 2
trigger1 = Time = 1
anim = 10041
ID = 10041
pos = -5,-20
vel = -1.5,-1.5
scale = 0.5,0.5
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Landing Dust 1]
type = Explod
triggerall = Root,StateNo = 52 || (Root, StateNo = 101 || Root, Stateno = 106) || Root, Anim = 3011
triggerall = NumExplod(10052) = 0
triggerall = Root, Pos Y = 0
trigger1 = Time = 0
anim = 10052
ID = 10052
pos = 0,0
scale = 0.5, 0.5
postype = p1
removetime = -2
sprpriority = 1
ownpal = 1

[State 10040, Landing Dust 2]
type = Explod
triggerall = Root,StateNo = 52 || (Root, StateNo = 101 || Root, Stateno = 106) || Root, Anim = 3011
triggerall = NumExplod(10053) = 0
triggerall = Root, Pos Y = 0
trigger1 = Time = 0
anim = 10053
ID = 10053
pos = 0,0
scale = 0.5, 0.5
postype = p1
removetime = -2
sprpriority = 0
ownpal = 1

[State 10040, Dash Dust 1]
type = Explod
triggerall = Root,StateNo = 100
triggerall = NumExplod(10100) = 0
trigger1 = Time = 0
anim = 10100
ID = 10100
pos = -20,0
scale = 0.7,0.7
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, Dash Dust 2]
type = Explod
triggerall = Root,StateNo = 101
triggerall = NumExplod(10101) = 0
trigger1 = Time = 0
anim = 10100
ID = 10100
pos = 0,0
scale = 0.7,0.7
postype = p1
removetime = -2
sprpriority = 3
ownpal = 1

[State 10040, DestroySelf]
type = DestroySelf
trigger1 = Time = 1