;-------------------------------------------------------------------------------
;
;------------------------------------------------
;[１]
;　　　 　　 ,. . .,
;　　　　,;ﾞ´　_、 ﾞ;
;　　　　:;ﾞ　 ,_ﾉ` .;ﾞ　
;　　　　ゞ..,　　,.:;ﾞ　
;　　　　　　ﾞ´ﾞﾞ
;-----------------------------------------------
;[２]
;　　　 　　 ,. . .,
;　　　　,;ﾞ´　_、 ﾞ; 　　　　珈琲はｸﾘｰﾌﾟと角砂糖六個入り…
;　　　　:;ﾞ　 ,_ﾉ` .;ﾞ　ζ 
;　　　　ゞ..,　　,.:;ﾞ　［￣］'E
;　　　　　　ﾞ´ﾞﾞ 　　 ￣
;-----------------------------------------------
;[３]
;　　　 　　 ,. . .,　　　毛玉はこれが通ってモンだ…
;　　　　,;ﾞ´　_、 ﾞ; 　　　
;　　　　:;ﾞ　 , ﾉ` .;ﾞ　 ｽﾞｽﾞ…
;　　　　ゞ..,［￣］'E
;　　　　　　ﾞ￣
;-----------------------------------------------
;[４]
;　　　誰だﾌﾞﾗｯｸ入れた奴ｧ!?
;　　　　　　　　　　　　　　。： ｡ﾟ．・ﾟ・：　・
;　　　 　　 ,. . .,　　　　｡∵∴｡・∴∵・｡
;　　　　,;ﾞ´　_、 ﾞ; .．‥∴： ：*｡∵‥
;　　　　:;ﾞ ；　,3`.i…÷≒※*∴‥¨∵。
;　　　　ゞ..,　　,.:;ﾞ　 ∵｡・：：｡・∴・ﾟ．：
;　　　　　　ﾞ´ﾞﾞ 　　 　ﾟ・：｡*：．・：*｡ﾟ：ﾟ・
;
;=====================================================================
;AA仕込んで「;」でコメントアウトしなくてもエラー出ないんだね。
;でも万が一があるので「;」を消したりしたら駄目だよ！毛玉との約束だッ!!
;=====================================================================


;↓↓↓以下不具合防止関連もあるので、数値弄ったりしないでね↓↓↓



[statedef -2]

[State -2]
type = assertspecial
triggerall = !ishelper
trigger1 = 1
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State -2]
type = screenbound
triggerall = !ishelper
trigger1 = 1
value = 1
movecamera = 1,0

[State -2]
type = screenbound
triggerall = ishelper
trigger1 = 1
value = 1
movecamera = 0,0

[State -2];上昇
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command = "holdup"
trigger1 = Roundstate = 2
y = -2.5

[State -2];下降
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command = "holddown"
trigger1 = Roundstate = 2
y = 2.5

[State -2]
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command = "holdfwd"
trigger1 = Roundstate = 2
x = const(velocity.walk.fwd.x)

[State -2]
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command = "holdback"
trigger1 = Roundstate = 2
x = const(velocity.walk.back.x)

[State -2]
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command != "holddown" && command != "holdup"
trigger2 = roundstate != 2
y = 0

[State -2]
type = VelSet
triggerall = !ishelper
triggerall = Var(59) = 0
trigger1 = command != "holdfwd" && command != "holdback"
trigger2 = roundstate != 2
x = 0

[State -2];地面に潜ってはいけない
type = PosSet
triggerall = !ishelper
trigger1 = Pos Y >= 0
y = 0

[State -2];飛びすぎもよくない
type = PosSet
triggerall = !ishelper
trigger1 = ScreenPos Y <= 0
y = -170

;===============================================================================
[state -2]
type = Nothitby
value=SCA,AA,AT,AP
trigger1 = !ishelper
time = -1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = HitOverride
trigger1 = !ishelper
time = -1
attr = SCA,NA,SA,HA,NT,ST,HT,NP,SP,HP,AA,AT,AP
stateno = stateno
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = Helper
triggerall = NumHelper(10000) = 0
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = enemy,life != 0
stateno = 155
name = "migawari"
helpertype = player
ID = 10000
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = Helper
triggerall = !ishelper
triggerall = alive
triggerall = roundstate >= 2
triggerall = NumHelper(30000) = 0
trigger1 = var(19) = 1
trigger1 = palno = 8 || palno = 9 || palno = 10
;trigger2 = palno = 10
helpertype = player
name = "Gravity"
ID = 30000
stateno = 150
supermovetime = 999999999999
pausemovetime = 999999999999
ignorehitpause = 1

[State -2]
type = assertspecial
triggerall = !ishelper
triggerall = numhelper(10000) = 1
trigger1 = movetype = H || var(20) != gametime + 12345
flag = noko
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = lifeSet
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = numhelper(10000) = 1
trigger1 = movetype = H || var(20) !=gametime + 12345
value =lifemax 
ignorehitpause = 1
supermovetime = 99999999
sausemovetime = 99999999

[State -2]
type = SelfState
triggerall = !ishelper
triggerall = Numhelper(10000) = 1
triggerall = alive
trigger1 = movetype = H || var(20) !=gametime + 12345 ||(stateno=[5150,5199])
;trigger2 = stateno = [5150,5199]
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2];耐えるんだ毛玉ッ！頑張れ！！
type = SelfState
;triggerall = Roundstate = 2
trigger1 = ishelper(1500)
trigger1 = helper(1500),stateno != 150 || helper(1500),var(20) != gametime+12345
trigger2 = ishelper(1501)
trigger2 = helper(1501),stateno != 150 || helper(1501),var(20) != gametime+12345
trigger3 = ishelper(30000)
trigger3 = helper(30000),stateno != 150 || helper(30000),var(20) != gametime+12345
value = 150
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;①効果はバツグンだッ！
;②ころしてでも うばいとる
;③現実は非常である(ﾋﾟﾁｭｰﾝ)

[State -2];ガンバレー
type = Selfstate
triggerall = ishelper(10000)
trigger1 = helper(10000),stateno != 155 || helper(10000),var(20) != gametime+12345
value = 155
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2];マケルナー
type = Selfstate
trigger1 = ishelper(289289)
trigger1 = helper(289289),stateno != 289289 || helper(289289),var(20) != gametime+12345
trigger2 = ishelper(1459)
trigger2 = helper(1459),stateno != 1459 || helper(1459),var(20) != gametime+12345
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;⑨

[State -2]
type = Lifeset
triggerall = ishelper
trigger1 = 1
value = lifemax
ignorehitpause = 1

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno <= 4
value = -(lifemax-1)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 6 || palno = 5
value = -(lifemax/2)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 7
value = -(lifemax/5)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 8
trigger2 = var(55) = 0
trigger2 = gametime%600 = 0
trigger2 = palno = 8
trigger2 = Roundno >= 3
trigger2 = Numhelper(30000) = 0
value = -100000
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 9
value = -50000
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = var(55) = 1
trigger1 = palno = 9
trigger1 = gametime%300 = 0
value = 50000
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 10
value = -20000
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2];テスト用
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = Helper(10000),GetHitVar(Damage)
trigger1 = palno = 12
value = -5
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state -2]
type = varset
triggerall = !ishelper
triggerall = palno = 8 || palno = 9
triggerall = NumEnemy > 0
trigger1 = P2movetype = H
trigger1 = movecontact = 1
var(15) = P2life
ignorehitpause = 1

[state -2]
type = varset
triggerall = palno = 8 || palno = 9
triggerall = NumEnemy > 0
triggerall = !ishelper
triggerall = alive
trigger1 = var(15) != 0
trigger1 = var(15) < p2life
trigger1 = enemy,ctrl
trigger2 = var(20) !=gametime + 12345
var(55) = 1
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(59) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(59) = 1
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(50) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(50) = 0
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(51) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(51) = 0
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(52) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(52) = 0
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(55) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(55) = 1
ignorehitpause = 1

[State -2]
type = Varset
triggerall = !ishelper
triggerall = Roundstate = 2
triggerall = palno > 6
trigger1 = var(19) != [0,1]
trigger2 = var(20) !=gametime + 12345
var(19) = 0
ignorehitpause = 1

[State -2];こころないてんし(自滅用保険)
type = Lifeset
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = (stateno!=[5110,5150])
trigger1 = life <= 10
value = 1
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state -2];ﾋﾟﾁｭﾝ用処理
type = Selfstate
triggerall = !ishelper
triggerall = (stateno!=[5110,5150])
trigger1 = Life <= 10
ignorehitpause = 1
value = 5110
pausemovetime = 99999999
supermovetime = 99999999

;[State -2]
;type = DisplayToClipboard
;triggerall = !ishelper
;trigger1 = 1
;text = "P2bodydist X = %f,P2bodydist Y = %f"
;params = P2bodydist X,P2bodydist Y

;--[-2の雑記]-------------------------------------------------------------------
;とあるキャラと対戦させるとﾋﾟﾁｭれなかったｗ
;こっちの記述不足ぽいね・・・対策はしたけど多分根本的な所は直ってないと思うｗ
;結構ひどい攻撃受けても、ﾋﾟﾁｭれるようにしたつもりだったのになー
;多分滅多に対戦することもないキャラだろうから大丈夫かな？
;-------------------------------------------------------------------------------
