put this before the hitdef code
[State 1000]
type = VarRandom
trigger1 = !time
v = 3
range = 0,1
then put the hitdef with the code
[State 1000] <----custom hit
type=HitDef
trigger1=Var(3)=1
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1
p2stateno = 1001 <----this state will need to have the explodes in it
[State 1000] <----regular hit
type=HitDef
trigger1=Var(3)=0
trigger1=Animelem=2
priority=3,Hit
attr=S,NA
guardflag=MA
hitflag=MAF
damage=25
animtype=Light
air.animtype=Back
fall.animtype=Back
ground.type=High
air.type=Low
getpower=10,5
givepower=11,8
pausetime=8,8
sparkno=S-1
hope this helps
MGMURROW