;===============================================================================
;	Option File for "KaLen"
;===============================================================================


; Initialize (at the start of the round)
[Statedef 5900]
type			= S

[State 5900, Clear Vars] ; 整数型変数初期化
type		= VarRangeSet
trigger1	= roundsexisted = 0
value		= 0
first		= 0
last		= 9


[State 5900, Clear Fvars] ; 浮動小数点変数初期化
type		= VarRangeSet
trigger1	= roundsexisted = 0
fvalue		= 0
first		= 0
last		= 9


;-------------------------------------------------------------------------------
; ここから
;-------------------------------------------------------------------------------

; 空中ダッシュ可能回数
[State 5900, Air Dash Num Set]
type		= VarSet
trigger1	= Time = 0
var(10)		= 1

; 壁コン
[State 5900, Wall Combo]
type		= VarSet
trigger1	= Time = 0
var(22)		= 1		; 0:OFF, 1:ON

; ノックバック倍率
[State 5900, Knock Back]
type		= VarSet
trigger1	= Time = 0
fvar(5)		= 0.5



; １コン中最大取得可能星数
[State 5900, Max Get Stars]
type		= VarSet
trigger1	= Time = 0
var(11)		= 3


; 七星ゲージ位置調整
[State 5900, Stars Gage Setup X]
type		= VarSet
trigger1	= Time = 0
fvar(10)	= 60.0		; X座標

[State 5900, Stars Gage Setup Y]
type		= VarSet
trigger1	= Time = 0
fvar(11)	= 60.0		; Y座標


; 初期取得星数
[State 5900, Start Star Num]
type		= VarSet
triggerall	= RoundsExisted = 0
trigger1	= Time = 0
var(50)		= 0		; 設定したい値+1に




; カニミソゲージ位置調整
[State 5900, Kanimiso Gage Setup X]
type		= VarSet
trigger1	= Time = 0
fvar(12)	= 3.0		; X座標

[State 5900, Kanimiso Gage Setup Y]
type		= VarSet
trigger1	= Time = 0
fvar(13)	= 237.0		; Y座標


; 初期カニミソゲージ量
[State 5900, Kanimiso Start]
type		= VarSet
triggerall	= RoundsExisted = 0
trigger1	= Time = 0
var(52)		= 0			; Maxは1000





; ﾄﾞｩｴ
[State 5900, Due]
type		= VarSet
triggerall	= RoundsExisted = 0
trigger1	= Time = 0
var(29)		= 0		; 0:OFF, 1:ﾄﾞｩｴ, 2:ﾍｲﾊｯ, 3:ｶｻｶｻ, 4:ﾗﾋﾟﾄﾞｩｴ


;---------------------------------------------------------------------------
;ここまで
;---------------------------------------------------------------------------
; ラウンド越え時星+1
[State 5900, Next Round Star +1]
type		= VarAdd
trigger1	= Time = 0
trigger1	= var(50) >= 1
var(50)		= -1
persistent	= 0

[State 5900, Buffer Set]
type		= VarSet
trigger1	= Time = 0
var(51)		= var(50)
persistent	= 0


[State 5900, Buffer Set]
type		= VarSet
trigger1	= Time = 0
var(53)		= var(52)
persistent	= 0




[State 5900, to 1st Round] ; Round1のイントロへ
type		= ChangeState
Trigger1	= RoundNo = 1
Trigger2	= TeamMode = Turns
Trigger2	= RoundsExisted = 0
value		= 190

[State 5900, to Intro] ;Intro
type		= ChangeState
Trigger1	= RoundNo > 1
value		= 0
