
;==================================================================================;
;[Configuracion De Voz,Modo De Paleta, PalFX, Etc...)]======================================;
;==================================================================================;

[statedef 5901]
type = s

;==================================================================================;

[State 0, RemapPal] ;PURPLE
type = RemapPal
trigger1 = palno = 3
source = 0,41
dest = 0,127

[State 0, RemapPal] ;WHITE
type = RemapPal
trigger1 = palno = 4
source = 0,41
dest = 0,59

[State 0, RemapPal] ;RED
type = RemapPal
trigger1 = palno = 5
source = 0,41
dest = 0,44

[State 0, RemapPal] ;GOLDEN
type = RemapPal
trigger1 = palno = 6
source = 0,41
dest = 0,63

[State 0, RemapPal] ;12P
type = RemapPal
trigger1 = palno = 12
source = 0,41
dest = 0,43

;other
[State 0, RemapPal] ;PURPLE
type = RemapPal
trigger1 = palno = 3
source = 0,51
dest = 0,127

[State 0, RemapPal] ;WHITE
type = RemapPal
trigger1 = palno = 4
source = 0,51
dest = 0,59

[State 0, RemapPal] ;RED
type = RemapPal
trigger1 = palno = 5
source = 0,51
dest = 0,44

[State 0, RemapPal] ;GOLDEN
type = RemapPal
trigger1 = palno = 6
source = 0,51
dest = 0,63

[State 0, RemapPal] ;12P
type = RemapPal
trigger1 = palno = 12
source = 0,51
dest = 0,43

;
[State 0, RemapPal] ;PURPLE
type = RemapPal
trigger1 = palno = 3
source = 0,130
dest = 0,127

[State 0, RemapPal] ;WHITE
type = RemapPal
trigger1 = palno = 4
source = 0,130
dest = 0,59

[State 0, RemapPal] ;RED
type = RemapPal
trigger1 = palno = 5
source = 0,130
dest = 0,44

[State 0, RemapPal] ;GOLDEN
type = RemapPal
trigger1 = palno = 6
source = 0,130
dest = 0,63

[State 0, RemapPal] ;12P
type = RemapPal
trigger1 = palno = 12
source = 0,130
dest = 0,43
;ignorehitpause =
;persistent =
; All of the player sprites that use
; the source palette will be drawn
; using the dest palette instead.
; The source and dest palettes must
; exist within the player's sprites,
; and both must be of the same color
; depth. Note that the dest palette
; number refers to an unmapped palette
; e.g. if you map (1,1) -> (1,6), and
; then you map (2,2) -> (1,1), the result
; is that (2,2) will be mapped to palette
; (1,1) from the original sprite file,
; not (1,6).


[state - motivated];Variable De Modo De Paleta
type = varset
trigger1 = palno = 1 || palno = 2 || palno = 3
fvar(1) = 1
;Normal Orochi

[state - motivated];Variable De Modo De Paleta
type = varset
trigger1 = palno = 4 || palno = 5 || palno = 6
fvar(1) = 1
;Fake Orochi

;==================================================================================;

[state - motivated];Variable De Voz
type = varset
trigger1 = 1
fvar(2) = 0
;fvar(2) = 0 = KOF 97 Voz
;fvar(2) = 1 = KOF All Stars Voz

;==================================================================================;

[state - motivated];Variable De PalFX(Valor Red/Rojo)
type = varset
trigger1 = 1
var(30) = ifelse(palno = 1,133,ifelse(palno = 2,5,ifelse(palno = 3,75,ifelse(palno = 4,126,ifelse(palno = 5,250,ifelse(palno = 6,158,0))))))

[state - motivated];Variable De PalFX(Valor Blue/Azul)
type = varset
trigger1 = 1
var(31) = ifelse(palno = 1,98,ifelse(palno = 2,105,ifelse(palno = 3,0,ifelse(palno = 4,126,ifelse(palno = 5,0,ifelse(palno = 6,116,0))))))

[state - motivated];Variable De PalFX(Valor Green/Verde)
type = varset
trigger1 = 1
var(32) = ifelse(palno = 1,154,ifelse(palno = 2,255,ifelse(palno = 3,150,ifelse(palno = 4,126,ifelse(palno = 5,0,ifelse(palno = 6,0,0))))))

;==================================================================================;

[state - motivated]
type = changestate
trigger1 = prevstateno = 5900 && !time
value = 5900

;==================================================================================;
;[Configuracion De Voz,Modo De Paleta, PalFX, Etc...)]======================================;
;==================================================================================;


;MUSIC
[Statedef 9999]
type = S
movetype = I
ctrl = 0
velset = 0,0
poweradd = 0
sprpriority = -2

[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = enemy,time%2
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = gametime
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = !time
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = gametime%2
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = enemy,gametime
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = !ishelper
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = enemy,gametime%2
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = 1
flag = nomusic
ignorehitpause = 256
persistent = 256
[state - motivated]
type = assertspecial
triggerall =  roundno!=1
trigger1 = ishelper
flag = nomusic
ignorehitpause = 256
persistent = 256

[State -3]
type = assertspecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State -3]
type = assertspecial
triggerall =  roundno!=1
trigger1 = ishelper
flag = nomusic
ignorehitpause = 1
[State -3]
type = assertspecial
triggerall =  roundno!=1
trigger1 = gametime%2=1
flag = nomusic
ignorehitpause = 1

[State a]
type = PlaySnd
TRIGGERALL = ROUNDNO = 2
trigger1 = IsHelper
value = 69,69
channel = 19
lowpriority = 1
volume = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 2
trigger1 = IsHelper
value = 69,69
channel = 18
lowpriority = 1
volumescale = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 2
trigger1 = IsHelper
value = 69,69
channel = 17
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 2
trigger1 = IsHelper
value = 69,69
channel = 16
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1


3RD
[State a]
type = PlaySnd
TRIGGERALL = ROUNDNO = 3
trigger1 = IsHelper
value = 69,68
channel = 19
lowpriority = 1
volume = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 3
trigger1 = IsHelper
value = 69,68
channel = 18
lowpriority = 1
volumescale = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 3
trigger1 = IsHelper
value = 69,68
channel = 17
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1

[State a]
type = PlaySnd
TRIGGERALL = ROUNDNO = 4
trigger1 = IsHelper
value = 69,67
channel = 19
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 4
trigger1 = IsHelper
value = 69,67
channel = 18
lowpriority = 1
volumescale = 40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 4
trigger1 = IsHelper
value = 69,67
channel = 17
lowpriority = 1
volumescale = 40
loop = 1
ignorehitpause = 1

[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 4
trigger1 = IsHelper
value = 69,67
channel = 16
lowpriority = 1
volumescale = 100
loop = 1
ignorehitpause = 1

[State a]
type = PlaySnd
TRIGGERALL = ROUNDNO = 5
trigger1 = IsHelper
value = 69,69
channel = 19
lowpriority = 1
volume = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 5
trigger1 = IsHelper
value = 69,69
channel = 18
lowpriority = 1
volumescale = -40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 5
trigger1 = IsHelper
value = 69,69
channel = 17
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO = 5
trigger1 = IsHelper
value = 69,69
channel = 16
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1


[State a]
type = PlaySnd
TRIGGERALL = ROUNDNO >= 6
trigger1 = IsHelper
value = 69,67
channel = 19
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO >= 6
trigger1 = IsHelper
value = 69,67
channel = 18
lowpriority = 1
volumescale = 10 
loop = 1
ignorehitpause = 1
[State a];??
type = PlaySnd
TRIGGERALL = ROUNDNO >= 6
trigger1 = IsHelper
value = 69,67
channel = 17
lowpriority = 1
volume = 40
loop = 1
ignorehitpause = 1