;---------------------------------------------------------------------------
;デモニカ 設定用Helper
;---------------------------------------------------------------------------
[Statedef 65535]
anim = 20000
ctrl = 0

[State 65535, 本体回避処理]
type = selfstate
trigger1 = !ishelper
value = IfElse(statetype != A, 0, 50)
ignorehitpause = 1
;---------------------------------------------------------------------------

;===========================================================================
;デモニカ コンフィグ設定
;---------------------------------------------------------------------------
;↓コンフィグ設定 ここから
;---------------------------------------------------------------------------

[State 65535, AIレベル]
type = VarSet
trigger1 = 1
var(1) = 50	; AIレベル設定:0〜100 (デフォルト:10[対人AI],50[並AI],100[強AI])

[State 65535, AI起動]
type = VarSet
trigger1 = 1
var(2) = 1	; 0:AI常時不使用, 1:毎回判定, 2:AI常時起動 (デフォルト:1)

[State 65535, 悪魔召喚プログラム]
type = VarSet
trigger1 = 1
var(8) = 1	; 0:悪魔召喚OFF, 1:悪魔召喚ON (デフォルト:1)
;悪魔召喚技の使用可否を設定。

[State 65535, ＥＡインジケータ]
type = VarSet
trigger1 = 1
var(9) = 1	; 0:監視OFF, 1:監視ON (デフォルト:1)
;敵Helperによる攻撃を感知する。
;ONにするとAIの防御精度が向上するが処理が若干重くなる。

[State 65535, ＨＰリカバー]
type = VarSet
trigger1 = 1
var(10) = 0	; 歩行中の毎フレームのＨＰ回復量 (デフォルト:0)

[State 65535, ＭＰリカバー]
type = VarSet
trigger1 = 1
var(11) = 4	; 歩行中の毎フレームのパワーゲージ回復量 (デフォルト:4)

[State 65535, ドッペルゲンガー]
type = VarSet
trigger1 = 1
var(20) = 4	; 0:変化なし, 1:物反, 2:魔反, 3:物反＆魔反
		; 4:物反＆召喚不可, 5:魔反＆召喚不可, 6:物反＆魔反＆召喚不可 (デフォルト:4)
;ドッペルゲンガー(9P〜12Pカラー)の性能を変化させる。
;物反・魔反は物反鏡または魔反鏡の効果を常時発動する。
;召喚不可は悪魔召喚プログラムの設定に関わらず召喚技を使用不能にする。

[State 65535, キャラクター設定]
type = VarSet
trigger1 = 1
var(21) = 5	; 0:なし, 1:ヒメネス, 2:ゼレーニン, 3:ゴア, 4:タダノヒトナリ
                ; 5:カラーで識別 (デフォルト:5)
;基本カラー(1P〜4Pカラー)にボイスとカットインを設定する。

;---------------------------------------------------------------------------
;MUGEN 1.0(新MUGEN)対応設定

[State 65535, 新MUGEN対応-1(画面幅補正)]
type = VarSet
trigger1 = 1
fvar(1) = 320.0		; WIN MUGENで使用
;fvar(1) = GameWidth	; MUGEN 1.0(新MUGEN)で使用

[State 65535, 新MUGEN対応-2(画面高さ補正)]
type = VarSet
trigger1 = 1
fvar(2) = 240.0		; WIN MUGENで使用
;fvar(2) = GameHeight	; MUGEN 1.0(新MUGEN)で使用

[State 65535, 新MUGEN対応-3(硬直時間差補正)]
type = VarSet
trigger1 = 1
var(3) = 0		; WIN MUGENで使用
;var(3) = 1		; MUGEN 1.0(新MUGEN)で使用

;---------------------------------------------------------------------------
;↑コンフィグ設定 ここまで
;===========================================================================

;---------------------------------------------------------------------------
[State 65535, 方向]
type = Turn
trigger1 = Facing != root,Facing

[State 65535, 幅]
type = width
trigger1 = 1
value = -16,-16

[State 65535, 透明・影なし]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag1 = noshadow

[State 65535, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AP,AT

[State 65535, Override]
type = HitOverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 65535
ignorehitpause = 1

[State 65535, 範囲外変数修正]
type = Null
trigger1 = var(1) < 0
trigger1 = var(1) := 0
trigger2 = var(1) > 100
trigger2 = var(1) := 100

[State 65535, 範囲外変数修正]
type = VarSet
trigger1 = var(2) < 0
trigger2 = var(2) > 2
var(2) = 1

[State 65535, 範囲外変数修正]
type = VarSet
trigger1 = var(3) < 0
trigger2 = var(3) > 1
var(3) = 0

[State 65535, 範囲外変数修正]
type = VarSet
trigger1 = var(8) < 0
trigger2 = var(8) > 1
var(8) = 1

[State 65535, 範囲外変数修正]
type = VarSet
trigger1 = var(9) < 0
trigger2 = var(9) > 1
var(9) = 1

[State 65535, 範囲外変数修正]
type = Null
trigger1 = var(20) < 0
trigger1 = var(20) := 0
trigger2 = var(20) > 6
trigger2 = var(20) := 6

[State 65535, 範囲外変数修正]
type = Null
trigger1 = var(21) < 0
trigger1 = var(21) := 0
trigger2 = var(21) > 5
trigger2 = var(21) := 5

[State 65535, プレイヤー判定]
type = VarSet
triggerall = var(2) <= 1
triggerall = Time > 1
trigger1 = command = "up" && root,command = "up"
trigger2 = command = "down" && root,command = "down"
trigger3 = command = "back" && root,command = "back"
trigger4 = command = "fwd" && root,command = "fwd"
trigger5 = command = "a" && root,command = "a"
trigger6 = command = "b" && root,command = "b"
trigger7 = command = "c" && root,command = "c"
trigger8 = command = "x" && root,command = "x"
trigger9 = command = "y" && root,command = "y"
trigger10 = command = "z" && root,command = "z"
trigger11 = command = "start" && root,command = "start"
var(59) = -1

[State 65535, AIフラグON]
type = VarSet
triggerall = var(2) = 1
triggerall = var(59) != -1
triggerall = Time > 1
trigger1 = root,command = "up"
trigger2 = root,command = "down"
trigger3 = root,command = "back"
trigger4 = root,command = "fwd"
trigger5 = root,command = "a"
trigger6 = root,command = "b"
trigger7 = root,command = "c"
trigger8 = root,command = "x"
trigger9 = root,command = "y"
trigger10 = root,command = "z"
trigger11 = root,command = "start"
var(59) = var(1)

[State 65535, 常時AIフラグON]
type = VarSet
trigger1 = var(2) = 2
var(59) = var(1)

[State 65535, AI起動]
type = ParentVarSet
trigger1 = var(2) >= 1
trigger1 = var(59) > 0
v = 59
value = var(59)

[State 65535, AI停止]
type = ParentVarSet
trigger1 = var(2) <= 1
trigger1 = var(59) < 0
trigger1 = root,var(59) = 0
v = 59
value = 0

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