;----------------------------------------------------------------------
;Normal Move: Random Selection
[Statedef 10000]
type = S
ctrl = 0
anim = 8017
velset = 0,0

[State 30100, FF Fanfare]
type = PlaySnd
trigger1 = Time = 0
trigger1 = Var(55) != 3
trigger1 = Var(57) != 1
trigger1 = Var(57) != 3
value = 10000, 5
volume = 155
channel = 7

[State 30100, FF Fanfare]
type = StopSnd
trigger1 = Time = 109
trigger2 = Time = 39
trigger2 = Var(55) = 6
trigger3 = RoundState = 3
channel = 7

[State 30550, Metal Gear Noise]
type = Null
trigger1 = Time > 108
trigger2 = Var(55) = 6
trigger2 = Time = 39
channel = 5

[state 5150, Invisible]
type = DestroySelf
trigger1 = Var(35) = 777
trigger2 = IsHelper

[State 10000, Win]
type = ChangeState
trigger1 = RoundState = 3
value = 180

[State 10000, RemoveExplod]
type = RemoveExplod
trigger1 = 1
ID = 20001

[State 10000, Secret Move Var Set]
type = VarSet
trigger1 = Time = 0
v = 5
value = random

[State 10000, Go to Random Haxor Select]
type = ChangeState
trigger1 = Var(56) = 1
trigger1 = Var(1) = 0
trigger2 = Var(1) = 0
trigger2 = Var(56) = 42
value = 10003

[State 10000, Flame Mammoth]
type = ChangeState
triggerall = NumHelper(27028) = 0
triggerall = Var(5)%100 = [80, 84]
trigger1 = Time = 110
trigger2 = Time = 40
trigger2 = Var(55) = 6
value = 17028

[State 10000, Bullshit]
type = ChangeState
trigger1 = Var(55) = 3
trigger2 = Var(57) = 3
value = 10004

[State 10000, Streamlined Random Select]
type = ChangeState
trigger1 = Time = 110
trigger2 = Var(55) = 6
trigger2 = Time = 40
value = 7000+(random%20)
;----------------------------------------------------------------------
;Haxor Random Select
[Statedef 10003]
type = S
ctrl = 0
anim = 8017
velset = 0,0

[State 10003, FF Fanfare]
type = PlaySnd
trigger1 = Time = 0
value = 10000, 5
volume = 155
channel = 7

[State 10003, FF Fanfare]
type = StopSnd
trigger1 = Time = 109
trigger2 = RoundState = 3
channel = 7

[State 10003, Streamlined Haxor Select]
type = ChangeState
triggerall = Time = 110
trigger1 = Var(57) = 5
trigger1 = Var(50) = 0
trigger2 = Var(50) = 1
trigger2 = (random%100) < 10
value = 50200

[State 10003, Streamlined Haxor Select]
type = ChangeState
trigger1 = Time = 110
value = 50000+(random%9)
;----------------------------------------------------------------------
;BullShit
[Statedef 10004]
type = S
ctrl = 0
anim = 8017
velset = 0,0

[State 30100, FF Fanfare]
type = PlaySnd
trigger1 = Time = 0
value = 10000, 5
volume = 155
channel = 7

[State 30100, FF Fanfare]
type = StopSnd
trigger1 = Time = 109
trigger2 = RoundState = 3
channel = 7

[State 10004, 777]
type = ChangeState
triggerall = Var(57) != 1
triggerall = Var(57) != 3
trigger1 = Time > 110
trigger1 = (random%20) = 0
value = 7017

[State 10004, Team Move]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 1
trigger2 = (random%20) = 10
value = 7015

[State 10004, Communist Murder]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 2
trigger2 = (random%20) = 11
trigger3 = (random%20) = 19
value = 7016

[State 10004, Macduff]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 3
trigger2 = (random%20) = 12
value = 7019

[State 10004, Proton Cannon]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 4
trigger2 = (random%20) = 13
value = 7010

[State 10004, Teleport]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 5
trigger2 = (random%20) = 14
value = 7003

[State 10004, Yellow Devil]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 6
trigger2 = (random%20) = 15
value = 7001

[State 10004, Shao Mario]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 7
trigger2 = (random%20) = 16
value = 7011

[State 10004, Jealousy 2.0]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 8
trigger2 = (random%20) = 17
value = 7012

[State 10004, Kloak]
type = ChangeState
triggerall = Time > 110
trigger1 = (random%20) = 9
trigger2 = (random%20) = 18
value = 7009
;----------------------------------------------------------------------
;Doom Move Selection
[Statedef 10001]
type = S
ctrl = 0
anim = 8017
velset = 0,0

[State 30100, FF Fanfare]
type = PlaySnd
trigger1 = Time = 0
value = 10000, 5
volume = 155
channel = 7

[State 30100, FF Fanfare]
type = StopSnd
trigger1 = Time = 109
trigger2 = RoundState = 3
channel = 7

[State 0, 4] ;A Winner is Slot Machine!
type = ChangeState
trigger1 = RoundState = 3
value = 180

[State 10000, RemoveExplod]
type = RemoveExplod
trigger1 = 1
ID = 20001

[State 10001, Yellow Devil Lite]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 0
value = 20600

[State 10001, Kloak: Kaboom]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 1
value = 20601

[State 10001, Necky Rush]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 2
value = 20602

[State 10001, Kloak: Banana]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 3
value = 20603

[State 10001, Team Badass I: LifeSword1]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 4
value = 20604

[State 10001, Macduff]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 5
value = 20605

[State 10001, Team Badass II: Air Hockey]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 6
value = 20606

[State 10001, Team Badass III: KingMan.EXE]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 7
value = 20607

[State 10001, Kloak: Bomberman]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 8
value = 20608

[State 10001, Team Badass II: Shao Mario]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 9
value = 20609

[State 10001, Flame Mammoth]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 10
value = 17028

[State 10001, Coin]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 11
value = 7000

[State 10001, Stone Prision]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 12
value = 17013

[State 10001, Token Use of Communist Murder]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 13
value = 7016

[State 10001, Anti-Damage]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 14
value = 7002

[State 10001, Teleport Kick]
type = ChangeState
trigger1 = Time > 110
trigger1 = (random%20) = 15
value = 57003

[State 10001, Shao Luigi]
type = ChangeState
trigger1 = (random%20) = 16
trigger1 = Time > 110
value = 17011

[State 10001, 3 Card Monte]
type = ChangeState
trigger1 = (random%20) = 17
trigger1 = Time > 110
value = 7006

[State 10001, Shao Mario]
type = ChangeState
trigger1 = (random%20) = 18
trigger1 = Time > 110
value = 7011

[State 10001, Excalipur]
type = ChangeState
trigger1 = (random%20) = 19
trigger1 = Time > 110
value = 20400
;----------------------------------------------------------------------
;Guranteed 777
[Statedef 10002]
type = S
ctrl = 0
anim = 8017
velset = 0,0

[State 30100, FF Fanfare]
type = PlaySnd
trigger1 = Time = 0
value = 10000, 5
volume = 155
channel = 7

[State 30100, FF Fanfare]
type = StopSnd
trigger1 = Time = 109
channel = 7

[State 0, 4] ;A Winner is Slot Machine!
type = ChangeState
trigger1 = Time = 110
value = 7017
;----------------------------------------------------------------------
;Kloak
[Statedef 40000]
type = S
ctrl = 0
anim = 10020
velset = 0,0

[State 40000, Clear]
type = LifeAdd
trigger1 = Time = 0
value = 1000

[State 40000, Clear]
type = VarSet
trigger1 = 1
v = 30
value = 0

[State 39999, Throw State]
type = ChangeState
trigger1 = Root, Var(55) = 10
value = 39997

[State 40000, Dead Stop]
type = PosSet
trigger1 = Time = 0
trigger1 = PrevStateno = 39999
y = Parent, Pos Y - 70

[State 40000, ???]
type = DisplayToClipboard
trigger1 = 1
text = "SOW SOW SOW"

[State 40000, Turn Compensation]
type = Turn
trigger1 = Time = 0
trigger1 = P2Dist X < 0

[State 40000, Clear]
type = VarSet
trigger1 = Time = 0
v = 47
value = 0

[State 40000, Random]
type = VarSet
trigger1 = Time = 0
v = 47
value = (random%35)+1

[State 40000, Random]
type = VarSet
trigger1 = Time = 1
v = 47
value = (random%35)+1

[State 40000, Repetition Check]
type = VarSet
trigger1 = Time = 1
trigger1 = Var(47) = Var(56)
v = 47
value = ifelse(Var(56) != 35, Var(47)+1, Var(47)-1)

[State 40000, Repetition Check]
type = VarSet
trigger1 = Time = 2
trigger1 = Var(47) = Var(57)
v = 47
value = Var(47)+1

[State 40000, Repetition Check]
type = VarSet
trigger1 = Time = 3
trigger1 = Var(56) = 34
trigger1 = Var(57) = 35
v = 47
value = (random%33)+1

[State 40000, Repetition Check]
type = VarSet
trigger1 = Time = 4
trigger1 = Var(47) = 36
v = 47
value = (random%33)+1

[State 40000, Clear]
type = VarSet
trigger1 = Time = 5
trigger1 = Var(47) = 18
trigger1 = Parent, Var(53) = 1
v = 47
value = 1

[State 40000, Done]
type = ChangeState
trigger1 = Var(58) != 0
trigger2 = Var(56) = 18
trigger3 = Var(57) = 18
trigger4 = RoundState = 3
value = 39998

[State 40000, ChangeState]
type = ChangeState
trigger1 = Time = 30
value = 40000+Var(47)