Ok...this is very hard for me to explain. I'm coding hitsparks the "hi res" way with variables but having trouble adding hitsparks to this attack.
This is the code btw.
; Power Wave FX (Light)
[Statedef 1090]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 1090
sprpriority = 3
[State 1090, 2]
type = VelSet
trigger1 = 1
x = 3.5
y = 0
[State 1090, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
[State 1090, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0
[State 1090, 3]
type = HitDef
trigger1 = 1
attr = S,SP
animtype = Heavy
damage = 84,10
hitflag = MAF
guardflag = MA
priority = 1,Hit
pausetime = 0,5
sparkno = -1
guard.sparkno = 0
sparkxy = -1
hitsound = s1,6
guardsound = s2,1
ground.type = Low
ground.slidetime = 18
ground.hittime = 18
air.hittime = 18
guard.ctrltime = 18
ground.velocity = -8,0
guard.velocity = -8
air.velocity = -4.5, -6
airguard.velocity = -5.33,-1
air.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
yaccel= .43
getpower = 96
givepower = 24,24
envshake.time = 20
envshake.freq = 100
envshake.ampl = 4
[State 1090, Helper]
type = Helper
helpertype = normal
trigger1 = movehit = 1
name = "Hitspark"
stateno = 8020
postype = p2
bindtime = 1
ownpal = 1
sprpriority = 5
ignorehitpause = 1
persistent = 0
size.xscale = 0.4
size.yscale = 0.5
[State 1090, HitOverride]
Type = HitOverride
Trigger1 = 1
Time = -1
Value = SCA,AA,APT,AT
Stateno = 1091
ignorehitpause = 1
[State 1090 ,HitOverride]
Type = HitOverride
Trigger1 = 1
Time = -1
attr = SCA,AA,AP,AT
Stateno = 1091
[State 1090, NoHitBy]
trigger1 = 1
type = NotHitBy
value = ,NA
Time = -1
[State 1090, End]
type = ChangeState
trigger1 = time >= 100||Movecontact
value = 1091
ctrl = 1
[State 1090,6]
type = DestroySelf
trigger1 = time >= 100||Movecontact
Whats highlighted in bold is what i added to give it a hitspark, it worked but it gave me a full list of errors every time i do the attack now. If you want to see any other code or the list of errors, leave a message.
Thanks for replying. I know its a bit of a hassle but its been bothering me for 2 days now
Statedef 8020(Its the Hitspark)
; Special HITSPARKS
[Statedef 8020]
type = A
anim = 8020
velset = 0,0
sprpriority = 5
[State 8020, No Shadow]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 8020, angle]
type = AngleSet
trigger1 = !time
value = 15*(random%24)
[State 8020, scale]
type = AngleDraw
trigger1 = time<11
scale = 1+(time*.20), 1.3-(time*.12)
[State 8020, scale]
type = AngleDraw
trigger1 = time>=11
scale = 0,0
[State 8020, transparency]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256,256
[State 8020, Circle]
type = Explod
trigger1 = !time
anim = 8012
ID = 8012
postype = p1
removetime = 10
sprpriority = 4
pausemovetime = -1
supermovetime = -1
[State 8020, Circle Scale]
type = ModifyExplod
trigger1 = numexplod(8012)
ID = 8012
scale = .15+(.03*time),.15+(.03*time)
trans = addalpha
alpha = ceil(256-30.6*time),256
[State 8020, Middle]
type = Explod
trigger1 = time = 3
anim = 8022
ID = 8022
postype = p1
facing = ifelse(random<500, -1, 1)
vfacing =ifelse(random<500, -1, 1)
scale =.75,.75
sprpriority = 5
pausemovetime = -1
supermovetime = -1
[State 8020, Particles]
type = Explod
trigger1 = time<=4
trigger1 = random<(1000.0/numhelper(8000))
anim = 8021
ID = 8021
postype = p1
vel = -10+(random/50.0), -10+(random/50.0)
scale = .4 + (random/5000.0), .4 + (random/5000.0)
sprpriority = 5
pausemovetime = -1
supermovetime = -1
[State 8020, Particles Scale]
type = ModifyExplod
trigger1 = numexplod(8021)
ID = 8021
trans = addalpha
alpha = 256-16*time,256
[State 8020, end]
type = RemoveExplod
trigger1 = time>=16
[State 8020, end]
type = DestroySelf
trigger1 = time>=16
I don't understand what it means
(http://i.imgur.com/iiGkN.png)
Happens every time i do the attack