;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1


;---|AI Commands|-----------------------------------------------------------
[Command]
Name = "AI_00"
Command = a, a
Time = 0
[Command]
Name = "AI_01"
Command = a, b
Time = 0
[Command]
Name = "AI_02"
Command = a, c
Time = 0
[Command]
Name = "AI_03"
Command = a, x
Time = 0
[Command]
Name = "AI_04"
Command = a, y
Time = 0
[Command]
Name = "AI_05"
Command = a, z
Time = 0
[Command]
Name = "AI_06"
Command = a, s
Time = 0
[Command]
Name = "AI_07"
Command = b, a
Time = 0
[Command]
Name = "AI_08"
Command = b, b
Time = 0
[Command]
Name = "AI_09"
Command = b, c
Time = 0
[Command]
Name = "AI_10"
Command = b, x
Time = 0
[Command]
Name = "AI_11"
Command = b, y
Time = 0
[Command]
Name = "AI_12"
Command = b, z
Time = 0
[Command]
Name = "AI_13"
Command = b, s
Time = 0
[Command]
Name = "AI_14"
Command = c, a
Time = 0
[Command]
Name = "AI_15"
Command = c, b
Time = 0
[Command]
Name = "AI_16"
Command = c, c
Time = 0
[Command]
Name = "AI_17"
Command = c, x
Time = 0
[Command]
Name = "AI_18"
Command = c, y
Time = 0
[Command]
Name = "AI_19"
Command = c, z
Time = 0
[Command]
Name = "AI_20"
Command = c, s
Time = 0
[Command]
Name = "AI_21"
Command = x, a
Time = 0
[Command]
Name = "AI_22"
Command = x, b
Time = 0
[Command]
Name = "AI_23"
Command = x, c
Time = 0
[Command]
Name = "AI_24"
Command = x, x
Time = 0
[Command]
Name = "AI_25"
Command = x, y
Time = 0
[Command]
Name = "AI_26"
Command = x, z
Time = 0
[Command]
Name = "AI_27"
Command = x, s
Time = 0
[Command]
Name = "AI_28"
Command = y, a
Time = 0
[Command]
Name = "AI_29"
Command = y, b
Time = 0
[Command]
Name = "AI_30"
Command = y, c
Time = 0
[Command]
Name = "AI_31"
Command = y, x
Time = 0
[Command]
Name = "AI_32"
Command = y, y
Time = 0
[Command]
Name = "AI_33"
Command = y, z
Time = 0
[Command]
Name = "AI_34"
Command = y, s
Time = 0
[Command]
Name = "AI_35"
Command = s, a
Time = 0
[Command]
Name = "AI_36"
Command = s, b
Time = 0
[Command]
Name = "AI_37"
Command = s, c
Time = 0
[Command]
Name = "AI_38"
Command = s, x
Time = 0
[Command]
Name = "AI_39"
Command = s, y
Time = 0
[Command]
Name = "AI_40"
Command = s, z
Time = 0
[Command]
Name = "AI_41"
Command = s, s
Time = 0
[Command]
Name = "AI_42"
Command = U, U
Time = 0
[Command]
Name = "AI_43"
Command = U, F
Time = 0
[Command]
Name = "AI_44"
Command = U, D
Time = 0
[Command]
Name = "AI_45"
Command = U, B
Time = 0
[Command]
Name = "AI_46"
Command = F, U
Time = 0
[Command]
Name = "AI_47"
Command = F, F
Time = 0
[Command]
Name = "AI_48"
Command = F, D
Time = 0
[Command]
Name = "AI_49"
Command = F, B
Time = 0
[Command]
Name = "AI_50"
Command = D, U
Time = 0
[Command]
Name = "AI_51"
Command = D, F
Time = 0
[Command]
Name = "AI_52"
Command = D, D
Time = 0
[Command]
Name = "AI_53"
Command = D, B
Time = 0
[Command]
Name = "AI_54"
Command = B, U
Time = 0
[Command]
Name = "AI_55"
Command = B, F
Time = 0
[Command]
Name = "AI_56"
Command = B, D
Time = 0
[Command]
Name = "AI_57"
Command = B, B
Time = 0
[Command]
Name = "AI_58"
Command = U, a
Time = 0
[Command]
Name = "AI_59"
Command = U, b
Time = 0
[Command]
Name = "AI_60"
Command = U, c
Time = 0
[Command]
Name = "AI_61"
Command = U, x
Time = 0
[Command]
Name = "AI_62"
Command = U, y
Time = 0
[Command]
Name = "AI_63"
Command = U, z
Time = 0
[Command]
Name = "AI_64"
Command = U, s
Time = 0
[Command]
Name = "AI_65"
Command = F, a
Time = 0
[Command]
Name = "AI_66"
Command = F, b
Time = 0
[Command]
Name = "AI_67"
Command = F, c
Time = 0
[Command]
Name = "AI_68"
Command = F, x
Time = 0
[Command]
Name = "AI_69"
Command = F, y
Time = 0
[Command]
Name = "AI_70"
Command = F, z
Time = 0
[Command]
Name = "AI_71"
Command = F, s
Time = 0
[Command]
Name = "AI_72"
Command = D, a
Time = 0
[Command]
Name = "AI_73"
Command = D, b
Time = 0
[Command]
Name = "AI_74"
Command = D, c
Time = 0
[Command]
Name = "AI_75"
Command = D, x
Time = 0
[Command]
Name = "AI_76"
Command = D, y
Time = 0
[Command]
Name = "AI_77"
Command = D, z
Time = 0
[Command]
Name = "AI_78"
Command = D, s
Time = 0
[Command]
Name = "AI_79"
Command = B, a
Time = 0
[Command]
Name = "AI_80"
Command = B, b
Time = 0
[Command]
Name = "AI_81"
Command = B, c
Time = 0
[Command]
Name = "AI_82"
Command = B, x
Time = 0
[Command]
Name = "AI_83"
Command = B, y
Time = 0
[Command]
Name = "AI_84"
Command = B, z
Time = 0
[Command]
Name = "AI_85"
Command = B, s
Time = 0
[Command]
Name = "AI_86"
Command = a, U
Time = 0
[Command]
Name = "AI_87"
Command = a, F
Time = 0
[Command]
Name = "AI_88"
Command = a, B
Time = 0
[Command]
Name = "AI_89"
Command = a, D
Time = 0
[Command]
Name = "AI_90"
Command = b, U
Time = 0
[Command]
Name = "AI_91"
Command = b, F
Time = 0
[Command]
Name = "AI_92"
Command = b, B
Time = 0
[Command]
Name = "AI_93"
Command = b, D
Time = 0
[Command]
Name = "AI_94"
Command = c, U
Time = 0
[Command]
Name = "AI_95"
Command = c, F
Time = 0
[Command]
Name = "AI_96"
Command = c, B
Time = 0
[Command]
Name = "AI_97"
Command = c, D
Time = 0
[Command]
Name = "AI_98"
Command = x, U
Time = 0
[Command]
Name = "AI_99"
Command = x, F
Time = 0
[Command]
Name = "AI_100"
Command = x, B
Time = 0
[Command]
Name = "AI_101"
Command = x, D
Time = 0
[Command]
Name = "AI_102"
Command = y, U
Time = 0
[Command]
Name = "AI_103"
Command = y, F
Time = 0
[Command]
Name = "AI_104"
Command = y, B
Time = 0
[Command]
Name = "AI_105"
Command = y, D
Time = 0
[Command]
Name = "AI_106"
Command = s, U
Time = 0
[Command]
Name = "AI_107"
Command = s, F
Time = 0
[Command]
Name = "AI_108"
Command = s, B
Time = 0
[Command]
Name = "AI_109"
Command = s, D
Time = 0


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



;-| Super Motions |--------------------------------------------------------

;-| Special Motions |------------------------------------------------------

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
Command = F, F
time = 20

[Command]
name = "BB"     ;Required (do not remove)
Command = B, B
time = 20

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
Command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
Command = /$D,a
time = 1

[Command]
name = "down_b"
Command = /$D,b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
Command = a
time = 1

[Command]
name = "b"
Command = b
time = 1

[Command]
name = "c"
Command = c
time = 1

[Command]
name = "x"
Command = x
time = 1

[Command]
name = "y"
Command = y
time = 1

[Command]
name = "z"
Command = z
time = 1

[Command]
name = "start"
Command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
Command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
Command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
Command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
Command = /$D
time = 1

;---------------------------------------------------------------------------
; 2. State entry
;===========================================================================
;毎フレチェックするアレコレ
;---------------------------------------------------------------------------
[Statedef -1]
[State -1, AI Command]
Type = VarSet
trigger1  = command = "AI_01"
trigger2  = command = "AI_02"
trigger3  = command = "AI_03"
trigger4  = command = "AI_04"
trigger5  = command = "AI_05"
Trigger6  = command = "AI_06"
Trigger7  = command = "AI_07"
Trigger8  = command = "AI_08"
Trigger9  = command = "AI_09"
Trigger10 = Command = "AI_10"
trigger11  = command = "AI_11"
trigger12  = command = "AI_12"
trigger13  = command = "AI_13"
trigger14  = command = "AI_14"
trigger15  = command = "AI_15"
Trigger16  = command = "AI_16"
Trigger17  = command = "AI_17"
Trigger18  = command = "AI_18"
Trigger19  = command = "AI_19"
Trigger20 = Command = "AI_20"
trigger21  = command = "AI_21"
trigger22  = command = "AI_22"
trigger23  = command = "AI_23"
trigger24  = command = "AI_24"
trigger25  = command = "AI_25"
Trigger26  = command = "AI_26"
Trigger27  = command = "AI_27"
Trigger28  = command = "AI_28"
Trigger29  = command = "AI_29"
Trigger30 = Command = "AI_30"
trigger31  = command = "AI_31"
trigger32  = command = "AI_32"
trigger33  = command = "AI_33"
trigger34  = command = "AI_34"
trigger35  = command = "AI_35"
Trigger36  = command = "AI_36"
Trigger37  = command = "AI_37"
Trigger38  = command = "AI_38"
Trigger39  = command = "AI_39"
Trigger40  = Command = "AI_40"
trigger41  = command = "AI_41"
trigger42  = command = "AI_42"
trigger43  = command = "AI_43"
trigger44  = command = "AI_44"
trigger45  = command = "AI_45"
Trigger46  = command = "AI_46"
Trigger47  = command = "AI_47"
Trigger48  = command = "AI_48"
Trigger49  = command = "AI_49"
Trigger50  = Command = "AI_50"
trigger51  = command = "AI_51"
trigger52  = command = "AI_52"
trigger53  = command = "AI_53"
trigger54  = command = "AI_54"
trigger55  = command = "AI_55"
Trigger56  = command = "AI_56"
Trigger57  = command = "AI_57"
Trigger58  = command = "AI_58"
Trigger59  = command = "AI_59"
Trigger60  = Command = "AI_60"
trigger61  = command = "AI_61"
trigger62  = command = "AI_62"
trigger63  = command = "AI_63"
trigger64  = command = "AI_64"
trigger65  = command = "AI_65"
Trigger66  = command = "AI_66"
Trigger67  = command = "AI_67"
Trigger68  = command = "AI_68"
Trigger69  = command = "AI_69"
Trigger70 = Command = "AI_70"
trigger71  = command = "AI_71"
trigger72  = command = "AI_72"
trigger73  = command = "AI_73"
trigger74  = command = "AI_74"
trigger75  = command = "AI_75"
Trigger76  = command = "AI_76"
Trigger77  = command = "AI_77"
Trigger78  = command = "AI_78"
Trigger79  = command = "AI_79"
Trigger80 = Command = "AI_80"
trigger81  = command = "AI_81"
trigger82  = command = "AI_82"
trigger83  = command = "AI_83"
trigger84  = command = "AI_84"
trigger85  = command = "AI_85"
Trigger86  = command = "AI_86"
Trigger87  = command = "AI_87"
Trigger88  = command = "AI_88"
Trigger89  = command = "AI_89"
Trigger90 = Command = "AI_90"
trigger91  = command = "AI_91"
trigger92  = command = "AI_92"
trigger93  = command = "AI_93"
trigger94  = command = "AI_94"
trigger95  = command = "AI_95"
Trigger96  = command = "AI_96"
Trigger97  = command = "AI_97"
Trigger98  = command = "AI_98"
Trigger99  = command = "AI_99"
Trigger100 = root,Command = "AI_100"
Trigger101  = root,Command = "AI_01"
Trigger102  = root,Command = "AI_02"
Trigger103  = root,Command = "AI_03"
Trigger104  = root,Command = "AI_04"
Trigger105  = root,Command = "AI_05"
Trigger106  = root,Command = "AI_06"
Trigger107  = root,Command = "AI_07"
Trigger108  = root,Command = "AI_08"
Trigger109  = root,Command = "AI_09"
Trigger110 = root,Command = "AI_10"
Trigger111  = root,Command = "AI_11"
Trigger112  = root,Command = "AI_12"
Trigger113  = root,Command = "AI_13"
Trigger114  = root,Command = "AI_14"
Trigger115  = root,Command = "AI_15"
Trigger116  = root,Command = "AI_16"
Trigger117  = root,Command = "AI_17"
Trigger118  = root,Command = "AI_18"
Trigger119  = root,Command = "AI_19"
Trigger120 = root,Command = "AI_20"
Trigger121  = root,Command = "AI_21"
Trigger122  = root,Command = "AI_22"
Trigger123  = root,Command = "AI_23"
Trigger124  = root,Command = "AI_24"
Trigger125  = root,Command = "AI_25"
Trigger126  = root,Command = "AI_26"
Trigger127  = root,Command = "AI_27"
Trigger128  = root,Command = "AI_28"
Trigger129  = root,Command = "AI_29"
Trigger130 = root,Command = "AI_30"
Trigger131  = root,Command = "AI_31"
Trigger132  = root,Command = "AI_32"
Trigger133  = root,Command = "AI_33"
Trigger134  = root,Command = "AI_34"
Trigger135  = root,Command = "AI_35"
Trigger136  = root,Command = "AI_36"
Trigger137  = root,Command = "AI_37"
Trigger138  = root,Command = "AI_38"
Trigger139  = root,Command = "AI_39"
Trigger140  = root,Command = "AI_40"
Trigger141  = root,Command = "AI_41"
Trigger142  = root,Command = "AI_42"
Trigger143  = root,Command = "AI_43"
Trigger144  = root,Command = "AI_44"
Trigger145  = root,Command = "AI_45"
Trigger146  = root,Command = "AI_46"
Trigger147  = root,Command = "AI_47"
Trigger148  = root,Command = "AI_48"
Trigger149  = root,Command = "AI_49"
Trigger150  = root,Command = "AI_50"
Trigger151  = root,Command = "AI_51"
Trigger152  = root,Command = "AI_52"
Trigger153  = root,Command = "AI_53"
Trigger154  = root,Command = "AI_54"
Trigger155  = root,Command = "AI_55"
Trigger156  = root,Command = "AI_56"
Trigger157  = root,Command = "AI_57"
Trigger158  = root,Command = "AI_58"
Trigger159  = root,Command = "AI_59"
Trigger160  = root,Command = "AI_60"
Trigger161  = root,Command = "AI_61"
Trigger162  = root,Command = "AI_62"
Trigger163  = root,Command = "AI_63"
Trigger164  = root,Command = "AI_64"
Trigger165  = root,Command = "AI_65"
Trigger166  = root,Command = "AI_66"
Trigger167  = root,Command = "AI_67"
Trigger168  = root,Command = "AI_68"
Trigger169  = root,Command = "AI_69"
Trigger170 = root,Command = "AI_70"
Trigger171  = root,Command = "AI_71"
Trigger172  = root,Command = "AI_72"
Trigger173  = root,Command = "AI_73"
Trigger174  = root,Command = "AI_74"
Trigger175  = root,Command = "AI_75"
Trigger176  = root,Command = "AI_76"
Trigger177  = root,Command = "AI_77"
Trigger178  = root,Command = "AI_78"
Trigger179  = root,Command = "AI_79"
Trigger180 = root,Command = "AI_80"
Trigger181  = root,Command = "AI_81"
Trigger182  = root,Command = "AI_82"
Trigger183  = root,Command = "AI_83"
Trigger184  = root,Command = "AI_84"
Trigger185  = root,Command = "AI_85"
Trigger186  = root,Command = "AI_86"
Trigger187  = root,Command = "AI_87"
Trigger188  = root,Command = "AI_88"
Trigger189  = root,Command = "AI_89"
Trigger190 = root,Command = "AI_90"
Trigger191  = root,Command = "AI_91"
Trigger192  = root,Command = "AI_92"
Trigger193  = root,Command = "AI_93"
Trigger194  = root,Command = "AI_94"
Trigger195  = root,Command = "AI_95"
Trigger196  = root,Command = "AI_96"
Trigger197  = root,Command = "AI_97"
Trigger198  = root,Command = "AI_98"
Trigger199  = root,Command = "AI_99"
Trigger200 = root,Command = "AI_100"
Trigger201 = root,Command = "AI_101"
Trigger202 = root,Command = "AI_102"
Trigger203 = root,Command = "AI_103"
Trigger204 = root,Command = "AI_104"
Trigger205 = root,Command = "AI_105"
Trigger206 = root,Command = "AI_106"
Trigger207 = root,Command = "AI_107"
Trigger208 = root,Command = "AI_108"
Trigger209 = root,Command = "AI_109"
Trigger210 = root,Command = "AI_00"
trigger211 = command = "AI_101"
trigger212 = command = "AI_102"
trigger213 = command = "AI_103"
trigger214 = command = "AI_104"
trigger215 = command = "AI_105"
Trigger216 = command = "AI_106"
Trigger217 = command = "AI_107"
Trigger218 = command = "AI_108"
Trigger219 = command = "AI_109"
Trigger220 = Command = "AI_00"
trigger221 = helper(1),var(59)>0 || helper(2),var(59)>0 || helper(3),var(59)>0 || root,var(59)>0
Trigger222 = 0 ;AI常時起動スイッチ。操作したいなら0
V = 59
Value = 1
IgnoreHitPause = 1


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

[State ];芳香
type = Varset
trigger1 = ctrl
trigger1 = !Ishelper(1)
trigger1 = helper(1),var(21)=1
trigger1 = helper(1),Pos X - Pos X<60
trigger1 = helper(1),Pos X - Pos X>-60
var(23) = 1
ignorehitpause=1
[State ];芳香
type = Varset
trigger1 = ctrl
trigger1 = !Ishelper(2)
trigger1 = helper(2),var(21)=1
trigger1 = helper(2),Pos X - Pos X<60
trigger1 = helper(2),Pos X - Pos X>-60
var(23) = 2
ignorehitpause=1
[State ];芳香
type = Varset
trigger1 = ctrl
trigger1 = !Ishelper(3)
trigger1 = helper(3),var(21)=1
trigger1 = helper(3),Pos X - Pos X<60
trigger1 = helper(3),Pos X - Pos X>-60
var(23) = 3
ignorehitpause=1
[State -1];
trigger1 = !Ishelper(1)
trigger1 = ctrl
trigger1 = helper(1),var(21)=1
trigger1 = helper(1),Pos X - Pos X<60
trigger1 = helper(1),Pos X - Pos X>-60
trigger2 = !Ishelper(2)
trigger2 = ctrl
trigger2 = helper(2),var(21)=1
trigger2 = helper(2),Pos X - Pos X<60
trigger2 = helper(2),Pos X - Pos X>-60
trigger3 = !Ishelper(3)
trigger3 = ctrl
trigger3 = helper(3),var(21)=1
trigger3 = helper(3),Pos X - Pos X<60
trigger3 = helper(3),Pos X - Pos X>-60
type = ChangeState
value = 3002

[State -1];
type = CtrlSet
trigger1 = stateno=191
trigger2 = stateno=3003
trigger3 = stateno=1080
value = 0


;-------------------------------------ちょーひっさつ

[State -1];
triggerall = root,Command = "x"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
trigger1 = (numhelper(1)+numhelper(2)+numhelper(3))=1
type = ChangeState
value = 1080

[State -1];
triggerall = root,Command = "x"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
trigger1 = (numhelper(1)+numhelper(2)+numhelper(3))=2
type = ChangeState
value = 3000

[State -1];
triggerall = root,Command = "y"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
type = ChangeState
value = 3500

[State -1];
triggerall = root,Command = "z"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
type = ChangeState
value = 211

;-------------------------------------上攻撃
[State -1];
triggerall = root,Command = "a"
triggerall = root,Command = "holdup"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1040

[State -1];エコロジー
triggerall = root,Command = "b"
triggerall = root,Command = "holdup"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=1041
trigger2 = animelemtime(4)>0
type = ChangeState
value = 195

[State -1];
triggerall = root,Command = "c"
triggerall = root,Command = "holdup"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=1041
trigger2 = animelemtime(4)>0
trigger3 = stateno=196
trigger3 = var(58)>20
type = ChangeState
value = 900

;-------------------------------------しゃがみ攻撃

[State -1];小足
triggerall = root,Command = "a"
triggerall = root,Command = "holddown"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
type = ChangeState
value = 370
;ignorehitpause=1

[State -1];張り手
triggerall = root,Command = "b"
triggerall = root,Command = "holddown"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
type = ChangeState
value = 1060

[State -1];裏周り
triggerall = root,Command = "c"
triggerall = root,Command = "holddown"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
trigger3 = stateno=1061
trigger3 = anim=301
trigger3 = movecontact
type = ChangeState
value = 330

;-------------------------------------前攻撃
[State -1];回し蹴り
triggerall = root,Command = "a"
triggerall = Command = "holdfwd"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 287

[State -1];回し蹴り
triggerall = root,Command = "b"
triggerall = Command = "holdfwd"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=288
trigger2 =movecontact
type = ChangeState
value = 200

[State -1];傘たたきつけ
triggerall = root,Command = "c"
triggerall = Command = "holdfwd"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=201
trigger2 =movecontact
trigger3 = stateno=288
trigger3 =movecontact
type = ChangeState
value = 400

;-------------------------------------後ろ攻撃
[State -1];
triggerall = root,Command = "a"
triggerall = Command = "holdback"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 350

[State -1];
triggerall = root,Command = "b"
triggerall = Command = "holdback"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1100


;-------------------------------------立ち攻撃
;---------------------------------------------------------------------------
[State -1, 投げ]
type = ChangeState
value = 800
triggerall = ishelper
triggerall = root,Command = "start"
triggerall = statetype = S
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = ctrl

[State -1];ジャブ
triggerall = root,Command = "a"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=231
trigger2 =movecontact>6
type = ChangeState
value = 230
;ignorehitpause=1
[State -1];びんた
triggerall = root,Command = "b"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=231
trigger2 = movecontact
type = ChangeState
value = 240
;ignorehitpause=1
[State -1];傘
triggerall = root,Command = "c" 
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno=231
trigger2 = movecontact
trigger3 = stateno=241
trigger3 = movecontact
type = ChangeState
value = 260
;ignorehitpause=1


[State -1];ステップ
triggerall = root,Command = "FF"
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1230-(20*facing*root,facing)
;ignorehitpause=1
[State -1];バックステップ
triggerall = root,Command = "BB" 
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1230+(20*facing*root,facing)
;ignorehitpause=1









[State ]
type = Varadd
trigger1 = ishelper
trigger1 = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = stateno=351
trigger1 = animtime=0
trigger1 = var(29)=0
var(54) = 1
ignorehitpause=1
[State ]
type = Varadd
trigger1 = ishelper
trigger1 = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = stateno=351
trigger1 = animtime=0
trigger1 = var(29)!=0
var(54) = -1
ignorehitpause=1

;-------------------------------------AI
;-------------------------------------ちょーひっさつ

[State -1];
triggerall = fvar(12)>fvar(10)*0.5
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
trigger1 = (numhelper(1)+numhelper(2)+numhelper(3))=1
type = ChangeState
value = 1080

[State -1];
triggerall = root,var(1)*helper(1),facing+root,var(2)*helper(2),facing+root,var(3)*helper(3),facing-var(0)*facing=[var(0)*facing-30,var(0)*facing+30]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
trigger1 = (numhelper(1)+numhelper(2)+numhelper(3))=2
type = ChangeState
value = 3000

[State -1];
triggerall = (root,numhelper(1)+root,numhelper(2)+root,numhelper(3))*100>random
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
type = ChangeState
value = 211

[State -1];
triggerall = fvar(12)<=fvar(10)*0.5
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = ctrl
trigger1 = power>=3000
type = ChangeState
value = 3500

[State -1];
triggerall = enemynear,movetype=A || InGuardDist
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = enemynear,HitDefAttr = SCA, AA,AT
trigger1 = statetype != A
trigger1 = ctrl
type = ChangeState
value = 1100

;-------------------------------------しゃがみ攻撃

[State -1];小足
triggerall = p2dist x =[0,25]
triggerall = p2dist y =[-25,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
type = ChangeState
value = 370
;ignorehitpause=1

[State -1];張り手
triggerall = p2dist x =[0,60]
triggerall = p2dist y =[-60,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = enemynear,movetype!=A && !InGuardDist
trigger1 = numtarget>0 ||random<200
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
type = ChangeState
value = 1060

[State -1];裏周り
triggerall = p2dist x<=50+fvar(10)*0.0015
triggerall = p2dist x>=-50-fvar(10)*0.0015
triggerall = enemynear,movetype=A || InGuardDist
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = enemynear,facing!=facing
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=371
trigger2 =movecontact>6
trigger3 = stateno=1061
trigger3 = anim=301
trigger3 = movecontact
type = ChangeState
value = 330

;-------------------------------------前攻撃
[State -1];裏拳
triggerall = p2dist x<=50+fvar(10)*0.0015
triggerall = p2dist x>=-50-fvar(10)*0.0015
triggerall = p2dist y =[-70,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = random<200||enemynear,movetype=A || InGuardDist
trigger1 = statetype != A
trigger1 = ctrl
type = ChangeState
value = 287

[State -1];回し蹴り
triggerall = p2dist x<=80+fvar(10)*0.0015
triggerall = p2dist x>=0
triggerall = p2dist y =[-70,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = random<200||enemynear,movetype=A || InGuardDist
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=288
trigger2 =movecontact
type = ChangeState
value = 200

[State -1];傘たたきつけ
triggerall = p2dist x<=140+fvar(10)*0.003
triggerall = p2dist x>=0
triggerall = p2dist y =[-100,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = random<200||enemynear,movetype=A || InGuardDist
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=201
trigger2 =movecontact
trigger3 = stateno=288
trigger3 =movecontact
type = ChangeState
value = 400

;-------------------------------------後ろ攻撃

[State -1];
triggerall = enemynear,movetype=A || InGuardDist
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = 100<fvar(12)
trigger1 = random<500
trigger1 = var(54)<10
trigger1 = statetype != A
trigger1 = ctrl
type = ChangeState
value = 350

;-------------------------------------上攻撃
[State -1];
triggerall = p2dist x=[-50-fvar(10)*0.02,50+fvar(10)*0.02]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = fvar(12)>fvar(10)*0.8
triggerall = enemynear,statetype=A
trigger1 = statetype != A
trigger1 = ctrl
type = ChangeState
value = 1040

[State -1];エコロジー
triggerall = root,numprojID(6113)=0
triggerall = fvar(12)>fvar(10)*0.9
triggerall = enemynear,movetype=A
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = P2dist x =[-100,200]
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=1041
trigger2 = animelemtime(4)>0
type = ChangeState
value = 195

[State -1];
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = numhelper(902)=0
triggerall = enemynear,movetype=I && !InGuardDist
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=1041
trigger2 = animelemtime(4)>0
trigger3 = stateno=196
trigger3 = var(58)>20
type = ChangeState
value = 900

;-------------------------------------立ち攻撃
;---------------------------------------------------------------------------
[State -1, 投げ]
type = ChangeState
value = 800
triggerall = ishelper
triggerall = enemynear,stateno=[120,155]
triggerall = P2Dist x =[0,40]
triggerall = P2Dist y =0
triggerall = statetype != A
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = ctrl

[State -1];ジャブ
triggerall = P2Dist x =[0,40]
triggerall = P2Dist y =[-100,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=231
trigger2 =movecontact>6
type = ChangeState
value = 230
;ignorehitpause=1
[State -1];びんた
triggerall = P2Dist x =[-20,70]
triggerall = P2Dist y =[-40,5]
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=231
trigger2 = movecontact
type = ChangeState
value = 240
;ignorehitpause=1
[State -1];傘
triggerall = P2Dist x =[20,120]
triggerall = P2Dist y =[-70,5] 
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno=231
trigger2 = movecontact
trigger3 = stateno=241
trigger3 = movecontact
type = ChangeState
value = 260
;ignorehitpause=1

[State -1];ステップ
triggerall = enemynear,movetype=A || InGuardDist
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1230-(20*facing*root,facing)
;ignorehitpause=1
[State -1];バックステップ
triggerall = enemynear,movetype=A || InGuardDist
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 1230+(20*facing*root,facing)
;ignorehitpause=1

[State -1];歩行
triggerall = roundstate=2
triggerall = p2dist x >0
triggerall = Var(59)!=0 && roundstate=2 ;AIが勝手に振るのを禁止
triggerall = p2dist x!=[-30-fvar(10)*0.01,30+fvar(10)*0.01]
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 20
;ignorehitpause=1

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

[State -1];ジャンプの無効化
triggerall = root,Command = "holdup" || root,Command = "holdup" 
triggerall = Var(59)!=1 ;AIが勝手に振るのを禁止
trigger1 = statetype = S
trigger1 = ctrl
type = ChangeState
value = 0
