;------------------------------------
;Power Guard Meter P1
;------------------------------------
[Statedef 90000]
type = s
movetype = i
physics = n
ignorehitpause = 1

[State 0, ]
type = AssertSpecial
trigger1 = 1
flag = noshadow
flag2 = invisible
ignorehitpause = 1

[State 0]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1


;---------Guard fill p1-------------
[State 0, ParentVarSet];Sets meter on full
type = ParentVarSet
trigger1 = time = 0 || root,stateno = [160,162]
trigger2 = root,var(37) > 100; keeps meter from over flowing
v = 37
value = 100
ignorehitpause = 1

[State 0, ParentVarAdd];regenerates meter by 2 point every 100 game ticks
type = ParentVarAdd
triggerall = root,var(37) != 100
triggerall = root,var(37) < 100 && root,anim != [120,152]
trigger1 = (gametime%100)=1
v = 37
value = 2
ignorehitpause = 1

[State 0, Guard Fill]
type = Explod
trigger1 = 1 && !numexplod(1002)
anim = f1002
ID = 1002
pos = 93,225;17
postype = left  ;p2,front,back,left,right
random = 0,0
removetime = -1
supermovetime = 9999999
pausemove = 9999999
scale = .5,.51
facing = -1
sprpriority = 3
ontop = 1
shadow = 0,0,0
ownpal = 0
removeongethit = 0
ignorehitpause = 1
bindtime = -1

[State 0, ModifyExplod]
type = ModifyExplod
trigger1 = numexplod(1002)
id = 1002
scale = (root,var(37))/200.0,.51
ignorehitpause = 1



;------------------------------------
;Power Guard Meter P2
;------------------------------------
[Statedef 90001]
type = s
movetype = i
physics = n
ignorehitpause = 1

[State 0, ]
type = AssertSpecial
trigger1 = 1
flag = noshadow
flag2 = invisible
ignorehitpause = 1

[State 0]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

;---------Guard fill p2-------------
[State 0, ParentVarSet];Sets meter on full
type = ParentVarSet
trigger1 = time = 0 || root,stateno = [160,162]
trigger2 = root,var(37) > 100; keeps meter from over flowing
v = 37
value = 100
ignorehitpause = 1

[State 0, ParentVarAdd];regenerates meter by 2 point every 100 game ticks
type = ParentVarAdd
triggerall = root,var(37) != 100
triggerall = root,var(37) < 100 && root,anim != [120,152]
trigger1 = (gametime%100)=1
v = 37
value = 2
ignorehitpause = 1

[State 0, Guard Fill]
type = Explod
trigger1 = 1 && !numexplod(1004)
anim = f1004
ID = 1004
pos = 228,225;17
postype = left  ;p2,front,back,left,right
random = 0,0
removetime = -1
facing = -1
supermovetime = 9999999
pausemove = 9999999
scale = .5,.51
sprpriority = 3
ontop = 1
shadow = 0,0,0
ownpal = 0
removeongethit = 0
ignorehitpause = 1
bindtime = -1

[State 0, ModifyExplod]
type = ModifyExplod
trigger1 = numexplod(1004)
id = 1004
scale = (root,var(37))/200.0,.51
ignorehitpause = 1

