;2021/1/28
[Statedef -2]

[state ﾑｪ]
type=lifeadd
trigger1=life<100000   
value= 99999         


[State , ]
type = Parentvarset
triggerall=hitpausetime<2
triggerall=ishelper(24356)
triggerall=stateno!=150
triggerall=var(0)!=gametime*100
trigger1 = movereversed
var(42) = stateno
ignorehitpause = 0

[state 回血]
type=lifeadd
trigger1=gametime%10=100
value= 1   ;1.NO  0.OFF

[State ]
type = Parentvarset
triggerall=ishelper(24356)
triggerall=stateno!=150
triggerall=var(0)!=gametime*100
trigger1 = movereversed
var(43) = stateno
ignorehitpause = 1

[State -2, 5150]
type = selfstate
triggerall = roundstate > 3
trigger1 = ishelper
value = 5150
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = roundstate = 2
trigger1 = gethitvar(damage)
trigger1 = ishelper(444434)
time = 5
value = sca
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state -2]
type = lifeadd
triggerall = !ishelper
triggerall = numhelper(444434)
triggerall = helper(444434),stateno = 444434
trigger1 = roundstate = 2
trigger1 = helper(444434),gethitvar(damage)
value= -5
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state ]
type = AssertSpecial
trigger1 = 1
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[state ]
type = null;AssertSpecial
trigger1 = 1
flag = nomusic
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[state -2]
type = poweradd
trigger1 = time >= 1000
value = 3000
ignorehitpause = 1

;=======================================================================
[state -2, a];右向き設定
type = varset
trigger1 = var(10) = 0
trigger1 = facing = 1
v = 10
value = 1

[state -2, a];左向き設定
type = varset
trigger1 = var(10) = 0
trigger1 = facing = -1
v = 10
value = 2

[State -2, 1];ダッシュの音止め
type = stopSnd
trigger1 = stateno != 100
channel = 1

[state a];断鋼刃エフェクト消去
type = removeexplod
trigger1 = movetype = H
id = 2200


[state a];超火炎音止め
type = stopsnd
trigger1 = movetype = H
channel = 3

[state a]
type = stopsnd
trigger1 = stateno != 1055
channel = 5

[State -2, 3]
type = stopSnd
trigger1 = MoveType = H
channel = 2




[State -2, 4];ハイジャンプ判定
type = varadd
trigger1 = 1
v = 15
value = -1


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;::::::::変数設定(多分ダメージ関係が殆ど)
[state a]
type = varset
trigger1 = movetype = H
v = 13
value = 0

;::::::::ボイス変更の乱数
[State 180, 1]
type = VarRandom
trigger1 = 1
v = 6
range = 0,2

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;::::::::パレットによるモード判別(1でオロチ)
[state -2, a]
type = varset
trigger1 = palno = 1
trigger2 = palno = 2
trigger3 = palno = 3
trigger4 = palno = 4
trigger5 = palno = 5
trigger6 = palno = 6
v = 1
value = 0

[state -2, a]
type = varset
trigger1 = palno = 7
trigger2 = palno = 8
trigger3 = palno = 9
trigger4 = palno = 10
trigger5 = palno = 11
trigger6 = palno = 12
v = 1
value = 1


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;::::::::スロー処理

[state -2, a];スロー処理をする時間のカウント
type = varadd
trigger1 = 1
persistent = 0
ignorehitpause = 1
v = 4
value = -1

[state -2, a];スロー処理
type = pause
trigger1 = var(4) >= 1
trigger1 = gametime % 2
persistent = 0
ignorehitpause = 1
time = 1


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;ダメージ時のエフェクト、サウンドの消去
;//////////////////////////////////////////////////////////////////////////
;ダメージ時のエフェクトの消去;死祟
[state a];
type = removeexplod
trigger1 = MoveType = H
id = 185


;ダメージ時のエフェクトの消去;ハウリングブル
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 1470

;ダメージ時のエフェクトの消去
[State -2 ,a]
type = removeexplod
trigger1 = MoveType = H
ID = 4000

;ダメージ時のエフェクトの消去
[state -2 ,a]
type = removeexplod
trigger1 = MoveType = H
id = 4200

[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1655

[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1860

;ダメージ時のサウンドの消去
[state a]
type = stopsnd
trigger1 = MoveType = H
channel = 1

;ダメージ時の残像の消去
[state a];
type = afterimagetime
trigger1 = MoveType = H
time = 0

;///////////////////////////////////////////////////////////////////////
;コンボによるダメージ補正
;//////////////////////////////////////////////////////////////////////////
; 
[state a]
type = varset
trigger1 = 1
fvar(0) = 1.0

[state a]
type = varset
trigger1 = enemy,movetype = H
trigger1 = enemy,gethitvar(hitcount) > 0
;trigger1 = enemy,gethitvar(hitcount) < 100
fvar(0) = ((100.0-(30.0+(enemy,gethitvar(hitcount)/3.0)*10.0))/100.0)

[state a]
type = attackmulset
trigger1 = 1
value = fvar(0)



[state a]
type = DefenceMulSet
trigger1 = var(14) = 1
value = 1

;///////////////////////////////////////////////////////////////////////
;勝利時のサウンドストップ
;//////////////////////////////////////////////////////////////////////////
;
[State 1]
type = null;AssertSpecial
;triggerall = Win
trigger1 = RoundState != 2 && RoundsExisted = 0
trigger2 = RoundState >= 3 && RoundsExisted != 0
flag = nomusic

[State 1]
type = varset
;triggerall = Win
trigger1 = RoundState != 2
v = 26
value = 0

[state a]
type = stopsnd
trigger1 = RoundState = 2
channel = 2

[state a]
type = varset
trigger1 = RoundState = 3
IgnoreHitPause = 1
v = 12
value = 1

[state a]
type = varset
trigger1 = RoundState = 2
IgnoreHitPause = 1
v = 12
value = 0

;ゲーム中に常にいつでも開始したいステート、ここでは「着地音」に使用しています
;下の条件は「52か106のステートに移動して１フレーム目に」と言う事です。
;52と106はバックステップとジャンプの着地のステートです。
[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52 
trigger2 = stateno = 107 
trigger3 = stateno = 103 
value = 40, 0


[State -3, 2];ジャンプ音
type = PlaySnd
triggerall = time = 1
trigger1 = stateno = 40 
trigger1 = var(15) <= 0
value = 40, 1

[State -3, 2];ジャンプ音
type = PlaySnd
triggerall = time = 1
trigger1 = stateno = 40 
trigger1 = var(15) > 1
value = 40, 2

[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 105 
value = 105, 0

[State -1]
type = varrandom
trigger1 = LoseKO
v = 44
range = 0,5

[State 200, 1]
type = PlaySnd
trigger1 = loseko
trigger1 = alive = 0
value = 12, 0
Channel = 12
LowPriority = 1
;loop = 1
freqmul = var(44)

[State -3, 3];ダッシュの音止め
type = stopSnd
trigger1 = stateno != 100
channel = 1

;ダメージ時のエフェクトの消去
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 2405

;ダメージ時のエフェクトの消去
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 1000

[state a];残像消去
type = null;afterimagetime
trigger1 = movetype = H
time = 0

[State 210, Width];画面端の押し戻し判定
type = Width
trigger1 = 1
edge = 5,0




;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ハイジャンプ処理
[State -3, 5];ハイジャンプ判定
type = varset
trigger1 = stateno = 10
trigger1 = time = 0
trigger2 = stateno = 100
v = 15
value = 20

[State -3, 5];ハイジャンプ消去
type = varset
trigger1 = stateno = 52
trigger1 = time = 0
v = 15
value = 0

; 小ジャンプ処理
[State -3, 5];小ジャンプ判定
type = varset
trigger1 = stateno = 40
trigger1 = command != "holdup"
v = 16
value = 1

[State -3, 5];小ジャンプ消去
type = varset
trigger1 = stateno = 40
trigger1 = command = "holdup"
v = 16
value = 0

[State -3, 5]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 42
trigger1 = time = 1
trigger1 = var(15) >= 1
x = 5
;y = -9


[State -3, 5]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 43
trigger1 = time = 1
trigger1 = var(15) >= 1
x = -5
;y = -9

[State -3, 5];小ジャンプ
type = veladd
trigger1 = stateno = 50
trigger1 = time = 1
trigger1 = var(16) = 1
y = 3

[State -1]
type = null;Explod
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 3093
sprpriority = 0
postype = p1
pos = 0,-80
bindtime = -1
;scale = 1.6,1.6
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999
;---------------------------------------------------------------------------
;演出
;---------------------------------------------------------------------------

[State -1]
type = varset
trigger1 = roundstate = 0
var(21) = 1

[State -1]
type = varset
trigger1 = roundstate = 0
var(22) = 1

[State -1]
type = varset
trigger1 = var(21) <= 1
var(22) = 3

[State -1]
type = varset
trigger1 = var(21) >= 150
var(22) = 2

[State -1]
type = varadd
trigger1 = 1
trigger1 = var(22) = 3
var(21) = 5

[State -1]
type = varadd
trigger1 = 1
trigger1 = var(22) = 2
var(21) = -5

[State a]
type = PalFX
triggerall = stateno != [180,190]
trigger1 = !ishelper
trigger1 = stateno != [190,192]
trigger1 = roundstate != 0
time = 2
add = 0,var(21),var(21)
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State a]
type = PalFX
triggerall = stateno != [180,190]
trigger1 = !ishelper
trigger1 = stateno != [190,192]
trigger1 = roundstate != 0
trigger1 = var(21) <= 40
time = 2
add = 0,var(21)-40,var(21)-40
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999
color = 0

[State 1]
type = AllPalfx
triggerall = stateno != [180,190]
trigger1 = stateno = 2205 && time = 210
sinadd = 255, 255, 255, 100
time = 40
supermove = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State a] 
type = Afterimage
trigger1 = time = 0
trans = add
PalContrast =  0, 0, 250
PalBright = 0,0,0
time    =  -1
length  = 13
TimeGap = 1
FrameGap = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

;オーラ
[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
;trigger1 = (GameTime%15) = 1
anim = 19829
id = 22138
sprpriority = -1
postype = p1
pos = -5,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
removetime = -1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
;trigger1 = (GameTime%15) = 1
anim = 19834
id = 22138
sprpriority = -1
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
removetime = -1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
;trigger1 = time = 12
trigger1 = (GameTime%38) = 1
anim = 19831
id = 22138
sprpriority = 1
postype = p1
pos = 25,0
scale = 0.7,0.7
bindtime = -1
under = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
;trigger1 = time = 12
trigger1 = (GameTime%38) = 1
anim = 19832
id = 22138
sprpriority = 1
postype = p1
scale = 0.7,0.7
pos = -25,0
bindtime = -1
under = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
;trigger1 = time = 12
trigger1 = (GameTime%8) = 1
anim = 19800
id = 22138
sprpriority = 1
postype = p1
scale = 0.8,0.8
pos = 0,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
;trigger1 = time = 12
trigger1 = (GameTime%72) = 1
anim = 19891
id = 22138
sprpriority = 0
postype = p1
scale = 1.3,1.3
pos = -3,-87
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -1]
type = Explod
triggerall = !ishelper
triggerall = anim = 0
;trigger1 = time = 12
trigger1 = (GameTime%4) = 1
anim = 19826
id = 22138
sprpriority = -2
postype = p1
scale = 0.8,0.1
pos = 0,7
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[state 0, helper]
type = null;helper
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
trigger1 = numhelper(100) = 0
id = 100
stateno = 9841
name = "wa"
postype = p1
pos = -50,10
pausemovetime = 0
persistent = 0
ownpal = 1
helpertype = Player

[state 0, helper]
type = null;helper
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
trigger1 = numhelper(101) = 0
id = 101
stateno = 9841
name = "wa"
postype = p1
helpertype = Player
pos = 40,10
pausemovetime = 0
persistent = 0
ownpal = 1

[state 0, helper]
type = null;helper
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
trigger1 = numhelper(102) = 0
id = 102
stateno = 9841
name = "wa"
helpertype = Player
postype = p1
pos = -50,-120
pausemovetime = 0
persistent = 0
ownpal = 1

[state 0, helper]
type = null;helper
triggerall = !ishelper
triggerall = anim = 0
trigger1 = time = 12
trigger1 = numhelper(103) = 0
id = 103
stateno = 9841
name = "wa"
helpertype = Player
postype = p1
pos = 40,-120
pausemovetime = 0
persistent = 0
ownpal = 1

[state 0, helper]
type = helper
triggerall = !ishelper
;triggerall = anim = 0
trigger1 = numhelper(1111)!
id = 1111
stateno = 9842
helpertype = Player
name = "unk(ry"
postype = p1
pos = 0,0
pausemovetime = 0
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State 3020, 1]
type = RemoveExplod
trigger1 = anim != 0
ID = 22138
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999


;性能

[state 1040]
type = PlayerPush
trigger1 = 1
value = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State 1]
type = HitOverride
trigger1 = !ishelper
trigger1 = statetype = S||statetype = C||statetype!=A
time = -1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 20001
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State 1]
type = HitOverride
trigger1 = !ishelper
trigger1 = statetype = A
time = -1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 20000
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ];ステヌケ
type = VarSet
trigger1=!ishelper
trigger1=name="nyozuchi"
trigger1 = 1
var(0) = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[state -2];power
type = poweradd
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = 3;power < 3000
value = 3
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[state ]
type = null;AssertSpecial
triggerall = !ishelper
triggerall = name ="nyozuchi" && (MoveReversed || lose || alive != 1)
trigger1 = alive != 1
trigger2 = life <= 0
trigger3 = loseko
flag = noko
flag2 = timerfreeze
flag3 = roundnotover
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[state ]
type = Selfstate
trigger1 = var(37) != gametime * 100
value = 40
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[state ]
type = AssertSpecial
triggerall = !ishelper
trigger1 = roundstate>2 && stateno!=[180,189]
trigger1 = WIN&&alive
flag = roundnotover
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State -2,]
type = assertSpecial
trigger1 = palno = 12
triggerall = name="nyozuchi"
triggerall = !ishelper
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State -2, ]
type = selfstate
triggerall = ishelper
trigger1 = ((ishelper(5000))&&(stateno != (123690)))
trigger2 = ((ishelper(5001))&&(stateno != (123690)))
trigger3 = ((ishelper(5002))&&(stateno != (123690)))
trigger4 = ((ishelper(5003))&&(stateno != (123690)))
trigger5 = ((ishelper(6000))&&(stateno != (123691)))
trigger6 = ((ishelper(6001))&&(stateno != (123691)))
trigger7 = ((ishelper(7000))&&(stateno != (123692)))
trigger8 = ((ishelper(7001))&&(stateno != (123692)))
trigger9 = ((ishelper(8000))&&(stateno != (123693)))
trigger10 = ((ishelper(8001))&&(stateno != (123693)))
trigger11 = ((ishelper(8002))&&(stateno != (123693)))
trigger12 = ((ishelper(8003))&&(stateno != (123693)))
trigger13 = ((ishelper(9000))&&(stateno != (123693)))
trigger14 = ((ishelper(9001))&&(stateno != (123693)))
trigger15 = ((ishelper(9002))&&(stateno != (123693)))
trigger16 = ((ishelper(9003))&&(stateno != (123693)))
trigger17 = ((ishelper(10000))&&(stateno != (123696)))
trigger18 = ((ishelper(10001))&&(stateno != (123698)))
trigger19 = ((ishelper(22101))&&(stateno != (22101)))
trigger20 = ((ishelper(119866))&&(stateno != (119866)))
trigger21 = ((ishelper(1400))&&(stateno != (1412)))
trigger22 = ((ishelper(1050))&&(stateno != (1065)))
trigger23 = ((ishelper(2001))&&(stateno != (2001)))
trigger24 = ((ishelper(2002))&&(stateno != (2002)))
trigger25 = ((ishelper(13000))&&(stateno != (13000)))
trigger26 = ((ishelper(24356))&&(stateno != (150)))
trigger27 = ((ishelper(120))&&(stateno != [19899,19900]))
trigger28 = ((ishelper(121))&&(stateno != [19899,19900]))
trigger29 = ((ishelper(20011))&&(stateno != (20011)))
trigger30 = ((ishelper(20022))&&(stateno != (20022)))
trigger31 = ((ishelper(20033))&&(stateno != (20022)))
trigger32 = ((ishelper(20044))&&(stateno != (20044)))
trigger33 = ((ishelper(4090))&&(stateno != (4090)))
trigger34 = ((ishelper(2728))&&(stateno != (2728)))
trigger35 = ((ishelper(444434))&&(stateno != (444434)))
value = 130
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
ignorehitpause = 1
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;SAIKEI氏のテンプレ参考混線
;===========================================================

[State ProjHitBy]
type  = Helper
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = !NumHelper(2001)
trigger1 = StateNo = 22050
name = "kurai"
id = 2001
pos = 0,0
helpertype = Player
postype = P1
stateno = 2001
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State TargetHelper]
type = Helper
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = NumHelper(2002)<3
trigger1 = StateNo = 22050
trigger1 = GameTime%9 = 5
name = "target"
id = 2002
pos = 0,1000000000  
helpertype = Player
postype = P1
stateno = 2002
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversalDef]
type = null;ReversalDef
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = StateNo = 22050
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = -1
p2stateno = 5150
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversState]
type = TargetState
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = NumTarget
trigger1 = GameTime%9=6
trigger1 = StateNo = 22050
trigger1 = p2stateno != 345349
value = 345349
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999
;----------------------------------------------------

[State ProjHitBy]
type  = Helper
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = !NumHelper(2001)
trigger1 = stateno = 24050
name = "kurai"
id = 2001
pos = 0,0
helpertype = Player
postype = P1
stateno = 2001
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State TargetHelper]
type = Helper
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = NumHelper(2002)<3
trigger1 = stateno = 24050
trigger1 = GameTime%9 = 5
name = "target"
id = 2002
pos = 0,1000000000  
helpertype = Player
postype = P1
stateno = 2002
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversalDef]
type = ReversalDef
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = StateNo = 24050
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = -1
p2stateno = 223111;22111
fall,damage = 999999999999999
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversState]
type = TargetState
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = NumTarget
trigger1 = GameTime%9=6
trigger1 = StateNo = 24050
trigger1 = p2stateno != 223111
value = 223111
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999


;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;一式波動の混線など
;===========================================================

[State ProjHitBy]
type  = Helper
helpertype = Player
triggerall = !ishelper
trigger1 = !NumHelper(2001)
trigger1 = StateNo = 3333
name = "kurai"
id = 2001
pos = 0,0
postype = P1
stateno = 2001
ownpal = 1
ignorehitpause = 1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State TargetHelper]
type = Helper
helpertype = Player
triggerall = !ishelper
trigger1 = NumHelper(2002)<3
trigger1 = StateNo = 3333
name = "target"
id = 2002
pos = 0,1000000000  
postype = P1
stateno = 2002
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State ReversalDef]
type = ReversalDef
triggerall = !ishelper
triggerall = stateno = 3333
trigger1 = 1
priority = 7, Hit
reversal.attr = SCA,AA,AT,AP,NA,HA,SA
pausetime = 0,10
hitsound = S3999,35
p2stateno = 1000043
ignorehitpause = 1

[State TargetHelper];被弾してー(OTH用)
type = Helper
helpertype = Player
triggerall = numhelper(13000) = 0
trigger1 = !IsHelper
trigger1 = enemy,alive=1
trigger1 = StateNo = 3333
name = "oth"
id = 13000
pos = 0,0 
postype = P1
stateno = 13000
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State ReversState]
type = TargetState
triggerall = !ishelper
trigger1 = NumTarget
trigger1 = stateno = 3333
trigger1 = target,stateno != 3004 && target,stateno !=1000043 && target,stateno !=1000044 || P2stateno != 3004 && P2stateno !=1000043 && P2stateno !=1000044
value = 3004
ignorehitpause = 1

;-----------------------------------

[State TargetHelper];返し
type = Helper
helpertype = Player
triggerall = name="nyozuchi"
triggerall = !ishelper
trigger1 = NumHelper(24356)<3
trigger1 = GameTime%9 = 5
name = "target"
id = 24356
pos = 0,0 
postype = P1
stateno = 150
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversalDef]
type = null;ReversalDef
triggerall = name="nyozuchi"
triggerall = !ishelper
triggerall = StateNo != 22050
triggerall = StateNo != 23050
triggerall = StateNo != 24050
triggerall = StateNo != 3333
trigger1 = palNo = 12
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = -1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = pause
triggerall = enemy,name = "genjitsu"|| enemy,name = "you are an lidiot"
trigger1=!enemy,alive
time = 2147483647
movetime = 2147483647
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = superpause
triggerall = enemy,name = "genjitsu"|| enemy,name = "you are an lidiot"
trigger1=!enemy,alive
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = pause
trigger1=!enemy,alive
trigger1=roundstate=2
time = 1
movetime = 1
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = superpause
trigger1=!enemy,alive
trigger1=roundstate=2
anim = -1
time = 1
movetime = 1
darken = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State 1000, 2]
type = Projectile
trigger1= P2stateno = 115
trigger2= target,stateno = 115
trigger3= enemy,stateno = 115
trigger4= enemy,anim = 110
trigger5= enemy,anim = 5110 + (anim % 10)
trigger6= P2stateno = 110
trigger7= target,stateno = 110
trigger8= enemy,stateno = 110
attr = SCA, NT, ST, HT , AA , AT ,AP ,SP ,SA , ST
projanim = 2002
projhitanim = -1
projid = 3114
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 1
postype = p2
;offset = 160,-30
velocity = 0
animtype  = diagup 
damage = 2147483648
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-1
air.velocity = -6,-1
fall.damage = 9999999999999999999999999999999999999999999
fall = 1
fall.recover = 0
p2getp1state = 0
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[state -3]		
type = helper
triggerall = !ishelper
triggerall = palno = 12
trigger1 = !numhelper(444434)
helpertype = player
stateno = 444434
name = "kuraiiiiiii"
id = 444434
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State -2]
type = pause
triggerall = palno = 12
triggerall = alive
trigger1 = roundstate < 2
time = 2147483647
movetime = 2147483647
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[State -2]
type = superpause
triggerall = palno=12
triggerall = alive
trigger1 = roundstate < 2
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[state -3]		
type = helper
triggerall = !ishelper
triggerall = palno = 12
trigger1 = alive
trigger1 = (gametime%45) = 0
trigger2 = !numhelper(2728)
helpertype = player
stateno = 2728
name = "TOKITOMEKAIZYO"
id = 2728
pos = 0,0
postype = p1
ownpal = 1
keyctrl = 0
supermovetime = 999999999999999999
pausemovetime = 999999999999999999
IgnoreHitPause = 1

[state -2]
type = varset
triggerall = name="nyozuchi"
trigger1 = target,stateno = 20055
trigger1 = target,movecontact || target,movereversed
var(47) = target,anim
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

//////////////////////////////////////////////////////////
;準常時監視ステート////////////////////////////////////////
;//////////////////////////////////////////////////////////
[statedef -3]

[State ]
type = Varset
trigger1 = 1
var(37) = gametime * 100
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = pause
triggerall = enemy,name = "genjitsu" || enemy,name = "you are an lidiot"
trigger1=!enemy,alive
time = 2147483647
movetime = 2147483647
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State -2]
type = superpause
triggerall = enemy,name = "genjitsu" || enemy,name = "you are an lidiot"
trigger1=!enemy,alive
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
ignorehitpause = 1
SuperMoveTime = 999999999999999999999
PauseMoveTime = 999999999999999999999

[State ReversState]
type = TargetState
triggerall = !ishelper
trigger1 = NumTarget
trigger1 = enemy,alive = 0
value = 5150
ignorehitpause = 1
