;------------------------------------------------------
[Statedef -2]
;-----------------------

[State var]
type = varset
triggerall = PalNo = 11
trigger1 = 1
v = 11
value = 0     ;ここを1にかえればカラー11で
　　　　　　　;変わり身モードになる（バグります）

[State var]
type = varset
triggerall = PalNo = 11
trigger1 = Var(42) != 5
trigger1 = 1
v = 42
value = 0     ;ここを1にかえればカラー11で
　　　　　　　;音楽が鳴る

[State var]
type = varset
trigger1 = 1
v = 44
value = 0     ;ここを1にかえると
　　　　　　　;無限ジャンプ可能になる

[State -3, 音楽処理]
type = AssertSpecial
triggerall = PalNo = 11
trigger1 = Var(41) = 1
trigger1 = Var(42) = 1
trigger1 = 1
flag = nomusic

[State -2, 音楽]
type = PlaySnd
triggerall = PalNo = 11
triggerall = Life > 0
trigger1 = Var(41) = 1
trigger1 = Var(42) = 1
value = s2, 11
channel = 5
loop = 1
lowpriority = 1

[State 43]
type = ChangeState
value = 150001
triggerall = Var(43) = 1
triggerall = PalNo = 6
trigger1 = stateno != 5000
trigger1 = stateno != 5001
trigger1 = stateno != 5010
trigger1 = stateno != 5011
trigger1 = stateno != 5020
trigger1 = stateno != 5030
trigger1 = stateno != 5035
trigger1 = stateno != 5040
trigger1 = stateno != 5050
trigger1 = stateno != 5070
trigger1 = stateno != 5071
trigger1 = stateno != 5080
trigger1 = stateno != 5081
trigger1 = stateno != 5100
trigger1 = stateno != 5101
trigger1 = stateno != 5110
trigger1 = stateno != 5120
trigger1 = stateno != 5150
trigger1 = stateno != 5200
trigger1 = stateno != 5201
trigger1 = stateno != 5210
trigger1 = stateno != 0
trigger1 = stateno != 151000
trigger1 = stateno != 150000
trigger1 = stateno != 150001
trigger1 = stateno != 150003
trigger1 = stateno != 150004
trigger1 = stateno != 150005
trigger1 = stateno != 150006
trigger1 = stateno != 150007

[State -3]
type = lifeadd
triggerall = 1
trigger1 = PalNo = 6
triggerall = 1510 <= life
value = -10

[State -3]
type = LifeSet
triggerall = 1
triggerall = life <= 1510
triggerall = 1500 <= life
trigger1 = PalNo = 6
value = 1500

[State 7]
type = CtrlSet
trigger1 = var(46) = 1
trigger1 = PalNo = 7
trigger1 = RoundState = 2 
trigger1 = 1
value = 0

[State 43]
type = ChangeState
value = 160001
trigger1 = var(45) = 0
trigger1 = PalNo = 7
ctrl = 1

[State 750 , 3]
type = ChangeState
triggerall = var(46) = 1
triggerall = PalNo = 7
triggerall = stateno != 160003
trigger1 = RoundState = 3
trigger2 = RoundState = 4
value = 160003

[State 750 , 3]
type = ChangeState
trigger1 = stateno != 160001
trigger1 = stateno != 160003
trigger1 = stateno != 160000
trigger1 = stateno != 161000
trigger1 = var(46) = 1
trigger1 = PalNo = 7
value = 160000

[State 120000, 振り返る]
type = Turn
trigger1 = PalNo = 7
trigger1 = var(46) = 1
trigger1 = command != "/F"
trigger1 = command != "/DF"
trigger1 = command != "/UF"
trigger1 = p2bodydist x <= -20

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/DF"
x = 10 
y = 10 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/UF"
x = 10 
y = -10 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/DB"
x = -10 
y = 10 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/UB"
x = -10 
y = -10 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/B"
x = -10 
y = 0 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/F"
x = 10 
y = 0 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/B"
x = -10 
y = 0 

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/D"
x = 0 
y = 10

[State 1000, 移動速度]
type = VelSet
trigger1 = var(45) = 1
trigger1 = PalNo = 7
trigger1 = stateno != 160001
trigger1 = RoundState = 2 
trigger1 = command = "/U"
x = 0 
y = -10

[State 1]
type = ChangeState
value = 170041
triggerall = life = 0
triggerall = stateno != 170041
trigger1 = P2name = "MUDAI"
trigger2 = P4name = "MUDAI"
trigger3 = P2name = "MUDAI kun"
trigger4 = P4name = "MUDAI kun"

[State var]
type = varset
triggerall = life = 0
trigger1 = RoundState = 3
trigger2 = RoundState = 4
v = 40
value = 1 

[State var]
type = varset
triggerall = life = 3000
triggerall = var(40) = 1
trigger1 = RoundState = 2
v = 40
value = 2

[State -3]
type = poweradd
triggerall = 1
triggerall = var(40) = 2
trigger1 = P3name = "MUMEI"
trigger2 = P3name = "MUMEI kun"
value = 9000

[State var]
type = varset
triggerall = PalNo != 11
triggerall = PalNo != 6
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011
trigger5 = stateno = 5020
trigger6 = stateno = 5030
trigger7 = stateno = 5035
trigger8 = stateno = 5040
trigger9 = stateno = 5050
trigger10 = stateno = 5070
trigger11 = stateno = 5071
trigger12 = stateno = 5080
trigger13 = stateno = 5081
trigger14 = stateno = 5100
trigger15 = stateno = 5101
trigger16 = stateno = 5110
trigger17 = stateno = 5120
trigger18 = stateno = 5150
trigger19 = stateno = 5200
trigger20 = stateno = 5201
trigger21 = stateno = 5210
v = 43
value = 0








