News:

MFG's Character of the Month: October 2026 Voting

Main Menu

voice coding

Started by kusu, February 22, 2011, 09:58:18 AM

Previous topic - Next topic

kusu

my ash crimson has no K.O. voice please tell me which state it is heres the code thx
[Data]
life = 1000
power = 5000
attack = 100
defence = 100
fall.defence_up = 50
liedown.time = 60
airjuggle = 15
sparkno = 2
guard.sparkno = 40
KO.echo = 0
volume = 100
IntPersistIndex = 60
FloatPersistIndex = 40

[Size]
xscale = 1
yscale = 1
ground.back = 14
ground.front = 15
air.back = 12
air.front = 12
height = 60
attack.dist = 160
proj.attack.dist = 90
proj.doscale = 0
head.pos = -5, -90
mid.pos = -5, -60
shadowoffset = 0
draw.offset = 0,0

[Velocity]
walk.fwd  = 3.2
walk.back = -3
run.fwd  = 7.1, 0
run.back = -9.9,-7.1
jump.neu = 0,-10.1
jump.back = -3.85
jump.fwd = 4
runjump.back = -4.55,-8.1
runjump.fwd = 5,-8.1

[Movement]
airjump.num = 0
airjump.height = 35
yaccel = .61
stand.friction = .85
crouch.friction = .82

;---------------------------------------------------------------------------
[Statedef 40]
type = S
physics = S
anim = 40
ctrl = 0
velset = 0,0
facep2 = IfElse((command = "longjump+"||command != "holdup"||command = "holddown++"||prevstateno = [10,12]),0,1)
sprpriority = 1

[State 40, 1]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 40, 7]
type = VelSet
trigger1 = AnimTime = 0
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)>0, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y)

[State 40, VarSet]
type = VarSet
trigger1 = command = "holdfwd+" && command != "longjump" && prevstateno != 100 && sysvar(1) != 2
sysvar(1) = 1

[State 40, VarSet]
type = VarSet
trigger1 = command = "holdback+" && command != "longjump" && prevstateno != 105 && sysvar(1) != -2
sysvar(1) = -1

[State 40, VarSet]
type = VarSet
triggerall = Time = 0 && sysvar(1) != -2
triggerall = command = "holdfwd+"
trigger1 = command = "longjump+" || prevstateno = 100
sysvar(1) = 2

[State 40, VarSet]
type = VarSet
triggerall = Time = 0 && sysvar(1) != 2
triggerall = command = "holdback+"
trigger1 = command = "longjump+" || prevstateno = 105
sysvar(1) = -2

[State 40, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 47
ctrl = 1

;-----------------------
[Statedef 47]
type    = A
physics = A
velset = 0,-11.8
;ctrl = 1
;facep2 = IfElse((command = "longjump"||command != "holdup"),0,1)

[State 47, 2] ; Play sound when jumping (long)
type = PlaySnd
triggerall = Time = 0
trigger1 = sysvar(1) != -2
trigger1 = sysvar(1) != 2
value = 40,0

[State 47, 2] ; Play sound when jumping (long)
type = PlaySnd
triggerall = Time = 0
trigger1 = sysvar(1) = -2
trigger2 = sysvar(1) = 2
value = 40,1

[State 47, 2]
type = Afterimage
triggerall = Time = 0
trigger1 = sysvar(1) = -2
trigger2 = sysvar(1) = 2
time = 2
length = 7
PalBright   =   0,  0,  0
PalContrast =  250,250,250
PalAdd      =   0,  0,  0
PalMul      =  1,1,1
FrameGap = 3

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0
trigger1 = command = "holdup"
y = const(velocity.jump.y)

[State 47, VelSet]
type = VelSet
triggerall = Time = 0
trigger1 = command != "holdup"
x = 0
y = const(velocity.jump.y)/1.3

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command = "holdup" && sysvar(1) = 1
x = const(velocity.jump.fwd.x)
[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command = "holdup" && sysvar(1) = -1
x = const(velocity.jump.back.x)

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command != "holdup" && sysvar(1) = 1
x = const(velocity.jump.fwd.x)*1.2
[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command != "holdup" && sysvar(1) = -1
x = const(velocity.jump.back.x)*1.2

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command = "holdup" && sysvar(1) = 2
x = const(velocity.runjump.fwd.x)

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command = "holdup" && sysvar(1) = -2
x = const(velocity.runjump.back.x)

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command != "holdup" && sysvar(1) = 2
x = const(velocity.runjump.fwd.x)*1.2

[State 47, VelSet]
type = VelSet
trigger1 = Time = 0 && command != "holdup" && sysvar(1) = -2
x = const(velocity.runjump.back.x)*1.2

[State 47, 10]
type = ChangeAnim
trigger1 = Time = 0 && command = "holdup"
value = IfElse(sysvar(1) != 0,IfElse(sysvar(1) <= -1,45,43),41)

[State 47, 11]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = command != "holdup"
value = IfElse(sysvar(1) != 0,IfElse(sysvar(1) <= -1,55,53),51)

[State 50, 3]
type = ChangeAnim
trigger1 = Vel y > 1
persistent = 0
value = Anim + 1

;---------------------------------------------------------------------------
; Jump Down (empty state for compatibility)
[Statedef 51]
type    = A
physics = A

[State 51, 1]
type = Null
trigger1 = 1

;---------------------------------------------------------------------------
; Jump Land
[Statedef 52]
type    = S
physics = S
ctrl = 0
velset = 0,0
;anim = 47
facep2 = IfElse(command="holddown++",0,1)

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = 47,1
freqmul = IfElse(sysvar(1)=2||sysvar(1)=-2,1.1,0.9)

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = Time = 0
value = 47

[State 40, 1]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 52, 1]
type = VelSet
trigger1 = Time = 0
y = 0

[State 52, 2]
type = PosSet
trigger1 = Time = 0
y = 0

[State 106, 4]
type = MakeDust
trigger1 = Time = 0
pos = -30,-2
spacing = 1
[State 106, 4]
type = MakeDust
trigger1 = Time = 0
pos = 22,-2
spacing = 1

[State 52, 3]
type = CtrlSet
trigger1 = Time = 1 && PrevStateNo<= 900
value = 1

[State 52, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; RUN_FWD
[Statedef 100]
type    = S
physics = S
anim = 100
sprpriority = 1

[State 100, 1]
type = VelSet
trigger1 = animelem = 3,>= 0
x = const(velocity.run.fwd.x)

[State 100, 2] ;Prevent run from canceling into walk
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 100, 3] ;Prevent from turning
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn

[State 105, 2]
type = ChangeState
trigger1 = Command = "holdup"
value = 40
ctrl = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 3,=-1 || animelem = 6 || animelem = 10
value = S100,0
volume = -100
channel = 1
freqmul = 1.4

[State 106, 4]
type = MakeDust
trigger1 = animelem = 5 || animelem = 9
pos = 12,-2
spacing = 1

[State 0, PosAdd]
type = PosAdd
trigger1 = AnimElem = 3
x = 10
persistent = 0

[State 100, 4]
type = ChangeState
trigger1 = command != "holdfwd" && time >= 7
value = 101
ctrl = 0

; RUN_Stop
[Statedef 101]
type    = S
physics = N
ctrl = 0
anim = anim+1
sprpriority = 1

[State 47, 2]
type = StopSnd
trigger1 = animelem = 1,=2
channel = 1

[State 0, VelAdd]
type = VelAdd
trigger1 = vel x > 0
x = -1.9

[State 105, 2]
type = CtrlSet
trigger1 = Time = 3
value = 1

[State 105, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; RUN_BACK
[Statedef 105]
type    = S
physics = S
velset = 0,0
ctrl = 0
anim = 105
sprpriority = 1

[State 105, 1]
type = VelSet
trigger1 = AnimElem = 2
x = const(velocity.run.back.x)
y = const(velocity.run.back.y)

[State 120, 4]
type = StateTypeSet
trigger1 = AnimElem = 2
physics = N
Statetype = A

[State 0, VelAdd]
type = VelAdd
trigger1 = AnimElem = 2,>0
x = 0.4
y = 0.8

[State 47, 2]
type = PlaySnd
trigger1 = AnimElem = 2
value = 105,0
persistent = 0

[State 105, 2]
type = ChangeState
trigger1 =Vel Y > 0 && Pos Y >= 0
value = 106
ctrl = 0

;---------------------------------------------------------------------------
; RUN_BACK2 (land)
[Statedef 106]
type    = S
physics = S
ctrl = 0
velset = 0,0
anim = anim+1

[State 106, 1]
type = VelSet
trigger1 = Time = 0
x = 0
y = 0

[State 106, 2]
type = PosSet
trigger1 = Time = 0
y = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = 47,0

[State 106, 4]
type = MakeDust
trigger1 = Time = 2
pos = -5,-2
spacing = 1

[State 106, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
[Statedef 170]
type = S
ctrl = 0
anim = 170
velset = 0,0

[State 170, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;---------------------------------------------------------------------------
[Statedef 180]
type = S
ctrl = 0

[State 180, 1]
type = ChangeState
trigger1 = Time = 0
value = 181

;---------------------------------------------------------------------------
[Statedef 181]
type = S
ctrl = 0
anim = IfElse(Random <= 700,IfElse(Random <= 350,182,182),182)
velset = 0,0

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = (animelem = 2 || (anim=180&&animelem = 8))&&anim=[180,183]
value = S180,IfElse((animelem=2),6,7)+anim-180
volume = 70
channel = 2

[State 2300, 10]
type = Helper
trigger1 = Animelem = 6 && anim = 182
ID = 184
pos = 20,-5
postype = p1
stateno = 184
name = "»ðÑæ"
facing = 1
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
[State 2300, 10]
type = Helper
trigger1 = Animelem = 6&& anim = 182
ID = 184
pos = 20,15
postype = p1
stateno = 184
name = "»ðÑæ"
facing = -1
helpertype = normal
size.xscale = 0.5
size.yscale = 0.7
keyctrl = 0
ownpal = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef 184]
type = S
movetype = A
physics = N
velset = 0
SprPriority = 7
ctrl = 0

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 7

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim != 184
value = 184
persistent = 0

[State 1502, NotHitBy]
type = HitBy
trigger1 = 1
value = SCA,Ap
time = 2

[State 0, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[state 4000,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 135,170

[State 0, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 4000,Afterimage]
type = Afterimage
trigger1 = Time = 0
time = 2
length = 7
PalBright = 0,0,0
PalContrast =175, 175, 175
PalAdd = 0, 0, 0
PalMul = 0.9,0.9,0.9
FrameGap = 1
sprpriority = 5
Trans = Add1
ownpal = 1
ontop = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 1
value = S420,6
volume = -70
freqmul = 1.5

[State 1520, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0
;--------------------------------
[Statedef 190]
type = S
ctrl = 0
anim = IfElse(Random <= 900,IfElse(Random <= 600,IfElse(Random <= 300,IfElse(Random <= 150,194,193),192),191),190)
velset = 0,0

[State 190, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0 && anim != [190,194]
value = IfElse(Random <= 900,IfElse(Random <= 600,IfElse(Random <= 300,IfElse(Random <= 150,194,193),192),191),190)

[State 190, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2&&anim=[190,191]
value = S180,11+(anim-190)
volume = 70
channel = 2
[State 0, PlaySnd]
type = PlaySnd
trigger1 = (animelem = 2&&anim=[192,194])||(animelem = 7&&anim=[192,193])
value = S180,IfElse((animelem=2),13,14)+(anim-192)

volume = 70
channel = 2

[State 190, 4] ;Change to stand state
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; Taunt
; CNS difficulty: easy
[Statedef 195]
type = S
ctrl = 0
anim = IfElse((Random <= 100),IfElse((Random <= 40),197,196),IfElse((Random <= 300),198,195))
velset = 0,0
movetype = I
physics = S
sprpriority = 2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 4&&(anim=195||anim=198)
value = S180,IfElse((anim=195),2,1)
volume = 70
channel = 2
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2&&anim=196
value = S180,3
volume = 70
channel = 2
[State 0, PlaySnd]
type = PlaySnd
trigger1 = (animelem = 2 || AnimElem = 7)&&anim=197
value = S180,IfElse((animelem = 2),4,5)
volume = 70
channel = 2

[State 0, CtrlSet]
type = CtrlSet
trigger1 = time = 55
value = 1

[State 0, PosAdd]
type = PosAdd
trigger1 = (animelem = 2&&anim=196)||(animelem = 3&&anim=197)
x = 20
[State 0, PosAdd]
type = PosAdd
trigger1 = (animelem = 3||animelem = 4)&&anim=196
x = 10
[State 0, PosAdd]
type = PosAdd
trigger1 = (animelem = 14||animelem = 15)&&anim=196
x = -10
[State 0, PosAdd]
type = PosAdd
trigger1 = (animelem = 16&&anim=196)||(animelem = 15&&anim=197)
x = -20

[State 195, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;-------------------------------
[Statedef 5040]
type    = A
movetype= H
physics = N
ctrl = 0

[State 5040, 1]
type = ChangeState
trigger1 = !Alive
value = 5050

[State 5040, 2]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim != 5040
trigger2 = Time = 0
trigger2 = Anim != 5035
value = 5040

[State 5040, 4]
type = StateTypeSet
trigger1 = HitOver
movetype = I

[State 5040, 5]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 4

[State 5040, 6]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52
;-------------------------------
[Statedef 5200]
type = S
movetype = H
physics = N
velset = -4,0
anim = 5210
ctrl = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S300,4
channel = 2
[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 1
value = S400,1

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 4

[State 0, VelAdd]
type = VelAdd
trigger1 = 1 && vel x < -1
x = 0.3

[State 0, VelMul]
type = VelMul
trigger1 = 1
x = 1

[State 0, VelSet]
type = VelSet
trigger1 = animelem = 5,=3
x = 0

[State 0, PosSet]
type = PosSet
trigger1 = time = 0
y = 0

[State 0, PosAdd]
type = PosAdd
trigger1 = animelem = 2 || animelem = 3 || animelem = 5
x = -5
[State 0, PosAdd]
type = PosAdd
trigger1 = animelem = 4 || animelem = 6
x = -15
[State 0, PosAdd]
type = PosAdd
trigger1 = animelem = 8
x = -3

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = animelem = 5,>=3
movetype = I

[State 195, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;-----------------------
[Statedef 5210]
type = A
movetype = I
physics = N
anim = 5200
ctrl = 0

[State 5210, 1]
type = PalFX
trigger1 = GameTime%2 = 0 && time <= 5
time = 1
add = 128,128,128

[State 5210, 1]
type = PosFreeze
trigger1 = Time = 0
value = 4

[State 5210, 1]
type = VelMul
trigger1 = Time = 4
x = .8
y = .8

[State 5210, 1]
type = VelAdd
trigger1 = Time = 4
y = -4.5

[State 5210, 1]
type = VelMul
trigger1 = Time = 4
trigger1 = Vel Y > 0
y = .5

[State 5210, 1]
type = VelAdd
trigger1 = Time = 4
trigger1 = Vel Y > -3
y = -2

[State 5210, 1]
type = VelAdd
trigger1 = Time = 4
trigger1 = Vel Y > -2
y = -1

[State 5210, 2]
type = VelAdd
trigger1 = Time = 4
trigger1 = Command = "holdup"
y = -2

[State 5210, 2]
type = VelAdd
trigger1 = Time = 4
trigger1 = Command = "holddown"
y = 1.5

[State 5210, 2]
type = VelMul
trigger1 = Time = 4
trigger1 = Command = "holdfwd"
x = 1

[State 5210, 2]
type = VelAdd
trigger1 = Time = 4
trigger1 = Command = "holdback"
x = -1

[State 5210, 3]
type = NotHitBy
trigger1 = Time >= 0
value = SCA
time = 5

[State 5210, 4]
type = CtrlSet
trigger1 = animelem = 6
value = 1

[State 0, Gravity]
type = Gravity
trigger1 = Time >= 2

[State 5210, 5]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52
ctrl = 1
;---------------------------------------------------------------------------
; HIT_LIEDOWN
[Statedef 5111]
type    = L
movetype= H
physics = N

[State 5110, EnvShake]
type = FallEnvShake
trigger1 = Time = 0

[State 5110, 1] ;For hit up/up-diag type (from state 5081)
type = ChangeAnim
persistent = 0
trigger1 = SelfAnimExist(5111) || SelfAnimExist(5171)
value = 5111
;value = 5171

[State 5110, 3] ;Hit ground anim (for hit up)
type = ChangeAnim
triggerall = time = 0
trigger1 = !SelfAnimExist(5111) && !SelfAnimExist(5171)
value = 5110

[State 5110, 4]
type = HitFallDamage
trigger1 = Time = 0

[State 5110, 5]
type = PosSet
trigger1 = Time = 0
y = 0

[State 5110, Var] ;Get fall velocity
type = VarSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) != 0
sysvar(1) = floor(vel y)

[State 5110, 6]
type = PlaySnd
trigger1 = Time = 0
trigger1 = !SysVar(0)
;value = F7, 0 ;Hit ground
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)

[State 5110, 7]
type = GameMakeAnim
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 10

[State 5110, 8]
type = VelSet
trigger1 = Time = 0
y = 0

[State 5110, 11] ;If just died
type = SelfState
;triggerall = !alive
trigger1 = Time = 30
;trigger2 = SysVar(0) ;SysVar(0) = 1 avoids hit ground frame
;trigger3 = Anim = [5110,5119]
value = 5110

[State 5110, 12]
type = VarSet
trigger1 = SysVar(0)
trigger1 = Time = 0
sysvar(0) = 0

[State 5110, 13] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5110, 14]
type = ForceFeedback
trigger1 = alive
trigger1 = Time = 0
time = 8
ampl = 240
waveform = sine

[State 5110, 15]
type = ForceFeedback
trigger1 = !alive
trigger1 = Time = 0
ampl = 200, 7, -.467
time = 30
waveform = sine

;-------------------------------------------------------
[Statedef 4700]
type = A
movetype = I
physics = N
anim = 4700
velset = 0
ctrl = 0
SprPriority = 5

[State 820, 1]
type = Statetypeset
trigger1 = enemy,stateno >= 900 && enemy,movetype != H && (enemy,stateno != [5000,5999]) && enemy,anim != [5000,5999]
movetype = A
ignorehitpause = 1

[State 820, 1]
type = Statetypeset
trigger1 =  enemy,movetype != H && (enemy,stateno < 900 || (enemy,stateno = [5000,5999]) || enemy,anim = [5000,5999]); || (enemy,PrevStateNo = 4701 && enemy,time = 0 && enemy,stateno = [0,11])
movetype = I
ignorehitpause = 1

[State 0, hitdef]
type = HitDef
trigger1 = 1
attr = SCA,HA,HP,HT
damage = 0,0
numhits = 0
hitflag = MAF
;pausetime = 0,0
sparkno = -1
;palfx.time = root,var(32)
;palfx.add = 20,20,150
;palfx.mul = 205,205,155
;palfx.sinadd = 50,50,50,25
;palfx.color = 0

[State 0, TargetState]
type = TargetState
trigger1 = 1
value = 4701
ignorehitpause = 1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = root,var(32) <= 0 || root,WinKO
;------------------------------------------
[Statedef 4701]
type = U
movetype = I
physics = U
ctrl = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = statetype != A
value = IfElse(statetype = S,0,11)

[State 0, HitBy]
type = HitBy
trigger1 = 1
value = SCA

[State 1000, ]
type = Posset
trigger1 = time = 0 && statetype != A
y = 0

[State 820, 1]
type = SelfState
trigger1 = 1
value = IfElse(statetype != A,IfElse(statetype != A,0,11),51)
ctrl = 1
;-------------------------------------------------------
[Statedef 4900]
type = A
movetype = I
physics = N
anim = 4912
velset = 0
ctrl = 0
SprPriority = 5

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S453,IfElse(root,anim >= 2200,1,0)

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1 && anim = 4910
value = -(time*16)
scale = 0.6

[State 4900, 1]
type = PlayerPush
trigger1 = 1
value = 1
[State 4900, 3]
type = Sprpriority
trigger1 = 1
value = 5
ignorehitpause = 1

[State 0, EnvColor]
type = EnvColor
trigger1 = time = 0
value = 255,255,255
time = 5
under = 1

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 0,255

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2401||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 1
add = 205,30,70
ignorehitpause = 1

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && Root,anim >= 2000 && Root,anim < 2200
time = 1
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2401||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 3
TimeGap = 2
FrameGap = 2
length = 15
;palbright = 250,-50,50
;paladd = 137,15,35
paladd = 0,-70,-50
trans = add
persistent = 1
sprpriority = 15

[State 4900, 6]
type = AfterImage
trigger1 = !time && Root,anim >= 2000 && Root,anim < 2200
time = 10
TimeGap = 2
FrameGap = 2
length = 14
paladd = 0,0,10
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[State 4900, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0
;-----------------------
[Statedef 4901]
type = A
movetype = I
physics = N
anim = 4913
velset = 0
ctrl = 0
SprPriority = 5

[State 4900, 2]
type = PlayerPush
trigger1 = 1
value = 1

type = Sprpriority
trigger1 = 1
value = 5
ignorehitpause = 1

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2401||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 1
add = 217,55,105
ignorehitpause = 1

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && Root,anim >= 2000 && Root,anim < 2200
time = 40
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2401||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 10
TimeGap = 1
FrameGap = 1
length = 9;15;19
;paladd = 227,35,-35
;paladd = 167,25,55
paladd = 0,-70,-50
trans = add
persistent = 1
sprpriority = 15
[State 4900, 6]
type = AfterImage
trigger1 = !time && Root,anim >= 2000 && Root,anim < 2200
time = 10
TimeGap = 1
FrameGap = 1
length = 8;14
paladd = 0,0,10
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 235,170

[State 4900, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0
;-----------------------
[Statedef 4902]
type = A
movetype = I
physics = N
anim = 4910
velset = 0
ctrl = 0
SprPriority = 5

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
value = 270
scale = -.6,-.6

[State 4900, 2]
type = PlayerPush
trigger1 = 1
value = 1

type = Sprpriority
trigger1 = 1
value = 5
ignorehitpause = 1

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 1
add = 217,55,105
ignorehitpause = 1

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0 && Root,anim >= 2000 && Root,anim < 2200
time = 40
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time && (Root,anim = 2200||Root,anim = 2300||Root,anim = 2400||Root,anim = 2403||Root,anim = 2404||Root,anim = 2405)
time = 10
TimeGap = 1
FrameGap = 1
length = 14;15;19
;paladd = 227,35,-35
;paladd = 167,25,55
paladd = 0,-70,-50
trans = add
persistent = 1
sprpriority = 15
[State 4900, 6]
type = AfterImage
trigger1 = !time && Root,anim >= 2000 && Root,anim < 2200
time = 10
TimeGap = 1
FrameGap = 1
length = 12;14
paladd = 0,0,10
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 235,170

[State 4900, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0
;------------------------------
[Statedef 4952]
type = A
movetype = I
physics = N
anim = 4952
SprPriority = 91
ctrl = 0

[State 0, SprPriority]
type = SprPriority
trigger1 = gametime%2 = 0
value = 92
[State 0, SprPriority]
type = SprPriority
trigger1 = gametime%2 = 1
value = -92

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 2

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
scale = .01+(fvar(10)*0.0152),-5+(fvar(10)*0.1)
;scale = .2+(fvar(10)*0.013),-5+(fvar(10)*0.1)
[State 0, VarAdd]
type = VarAdd
trigger1 = 1
fvar(10) = IfElse(time<=13,3.7,.5)

[State 0, PosSet]
type = PosSet
trigger1 = time=0
x = 0
y = -80

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0
time = 10
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time
time = 10
TimeGap = 1
FrameGap = 1
length = 12
paladd = -10,-10,0
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 5,250

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time >= 32; || root,animelem = 1,=0
;------------------------------------------------------
[Statedef 4957]
type = A
movetype = I
physics = N
anim = 4957
SprPriority = 91
ctrl = 0

[State 0, SprPriority]
type = SprPriority
trigger1 = gametime%2 = 0
value = 96
[State 0, SprPriority]
type = SprPriority
trigger1 = gametime%2 = 1
value = -96

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 2

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
scale = -2.5+(fvar(10)*0.1),-2.5+(fvar(10)*0.1)

[State 0, VarAdd]
type = VarAdd
trigger1 = 1
fvar(10) = IfElse(time<=12,2,0.2)

[State 0, PosSet]
type = PosSet
trigger1 = time=0
x = 0
y = -80

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0
time = 10
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time
time = 10
TimeGap = 1
FrameGap = 1
length = 12
paladd = -10,-10,0
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 5,250

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time = 33
;--------------------
[Statedef 4960]
type = A
movetype = H
physics = N
anim = 4952
;velset = -10,0
SprPriority = -10
ctrl = 0

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = -10+time

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 2

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
scale = time*0.025,time*0.03

[State 0, PosSet]
type = PosSet
trigger1 = time=0
x = 0
y = -80

[State 4900, PalFX]
type = PalFX
trigger1 = Time >= 0
time = 10
add = 40,35,250
ignorehitpause = 1

[State 4900, 6]
type = AfterImage
trigger1 = !time
time = 10
TimeGap = 1
FrameGap = 1
length = 12
paladd = 0,0,-100
trans = add
persistent = 1
sprpriority = 15

[State 4900, 7]
type = AfterImageTime
trigger1 = 1
time = 2

[state 4900,Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 5,260

[State 5000, FFB Hard]
type = ForceFeedback
trigger1 = 1
time = 20
waveform = sinesquare
ampl = 140

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time >= 32 || root,animelem = 1,=0
;------------------------------

;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;------------------------
[Statedef -2]

[State -2, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "EDICION: Shin Yagami, www.shinyagami.webs.com - www.clanmugen.foroactivo.com"
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
triggerall = Time = 1 && alive && Random <= 900 && UniqHitCount <= 1 && GetHitVar(hitcount) <= 2
trigger1 = Stateno=5000||Stateno=5010||Stateno=5020||Stateno=5030||Stateno=5100
value = S350,IfElse((Random <= 800),IfElse((Random <= 600),IfElse((Random <= 400),IfElse((Random <= 200),4,3),2),1),0)
channel = 2
ignorehitpause = 1
persistent = 0

[State 0, StopSnd]
type = StopSnd
trigger1 = movetype = H && Stateno < 5000 && Stateno > 6000
channel = 2

[State -2,200-699 PlaySnd]
type = PlaySnd
triggerall = animelem = 1,=1
trigger1 = Stateno=200||Stateno=210||Stateno=220||Stateno=230||Stateno=240||Stateno=250||Stateno=260||Stateno=270
trigger2 = Stateno=400||Stateno=410||Stateno=420||Stateno=430
trigger3 = Stateno=600||Stateno=610||Stateno=620||Stateno=630||Stateno=640||Stateno=650||Stateno=660||Stateno=670
value = S400,IfElse((Random <= 500),1,0)

[State -2, Stop RunSnd]
type = StopSnd
trigger1 = (stateno != 100 && stateno != 101 && stateno != 1200)||(anim=101||anim=1201)
channel = 1

[State 0, VarAdd]
type = VarAdd
trigger1 = var(10) > 0&&stateno!=2200
var(10) = -1
[State 0, VarAdd]
type = VarAdd
trigger1 = var(32) > 0&&stateno!=2300
var(32) = -1

[State 0, Explod]
type = Explod
trigger1 = var(32) && NumExplod(2309) = 0
anim = 2309
ID = 2309
pos = 0,0
postype = p2
facing = 1
vfacing = 1
bindtime = var(32)
removetime = var(32)
supermove = 1
pausemove = 1
scale = 1,1
sprpriority = 10
ontop = 0
ownpal = 1
ignorehitpause = 1

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = (anim=200||anim=420||anim=605||anim=615||(anim=[240,270]))&&animelem=5
trigger2 = (anim=210||(anim=[301,302])||anim=430||(anim=[310,311])||(anim=[610,625]))&&animelem=6
trigger3 = ((anim=[400,410])&&animelem=4)||(anim=630&&animelem=7)||(anim=300&&(animelem=9||animelem=23))
movetype = I

[State 0, Width]
type = Width
trigger1 = movetype != H && stateno != 2300 && stateno != 1300
edge = 8,0

[State 0, VarSet]
type = VarSet
trigger1 = var(10)<=0 && var(10)!=-1
var(10) = -1

[State 47 2]
type = Afterimagetime
trigger1 = time%2 = 0 && (sysvar(1) = -2 || sysvar(1) = 2)
time = 2

[State 0,palfx]
type = palfx
trigger1 = var(10) > 1 && gametime%2=0
time = 1;var(10)
add = 55,55,0
;invertall = 1
ignorehitpause = 1
[State 0,palfx]
type = palfx
trigger1 = var(10) > 1 && gametime%2=10
time = 1;var(10)
add = -55,55,55
invertall = 1
ignorehitpause = 1

[State 0,palfx]
type = palfx
trigger1 = var(10) < -1 || var(10) = [0,2]
time = -1
add = 0,0,0
persistent = 0
ignorehitpause = 1

[State -2, 1]
type = PalFX
triggerall = gametime%2 = 0 && time <= 31 && anim != 2301
triggerall = movetype = A && PrevStateNo=[950,2999]
trigger1 = StateNo = [2000,2999]
time = 1
add = 255-(time*5),255-(time*5),255-(time*5)
ignorehitpause = 1

[State 0, EnvColor]
type = EnvColor
trigger1 = movetype = A && anim != 2301 && time = 0 && (StateNo = 2000 || StateNo = 2100 || StateNo = 2200 || StateNo = 2300 || StateNo = 2400 || StateNo = 2403)
value = 255,255,255
time = 5
under = 1
[State 0, EnvColor]
type = EnvColor
trigger1 = movetype = A && anim != 2301 && time = 3 && (StateNo = 2000 || StateNo = 2100 || StateNo = 2200 || StateNo = 2300 || StateNo = 2400 || StateNo = 2403)
value = 0,0,0
time = 31
under = 1
ignorehitpause = 1

[State 0, Helper]
type = Helper
trigger1 = time = -2 && movetype = A && anim != 2301 && (StateNo = [2000,2403]) && PrevStateNo=[900,2999]
helpertype = normal
ID = 4952
stateno = IfElse((PrevStateNo=[2000,2999]),4957,4952)
pos = IfElse((PrevStateNo=[2000,2999]),-4,0),-IfElse((PrevStateNo=[2000,2999]),80,80)
postype = left
facing = 1
keyctrl = 0
ownpal = 1
ontop = 1
supermovetime = 35
pausemovetime = 35
;size.xscale = IfElse((PrevStateNo=[2000,2999]),0.51,0.93)
;size.yscale = IfElse((PrevStateNo=[2000,2999]),0.5,0.95)
ignorehitpause = 1

[State 0, Explod]
type = Explod
trigger1 = time = 2 && movetype = A && anim != 2301 && (StateNo = [2000,2403]) && PrevStateNo=[900,2999]
anim = IfElse((PrevStateNo=[2000,2999]),4921,4920)
ID = 4920
pos = 160,100
postype = left
facing = 1
bindtime = -1
removetime = 31
supermove = 1
pausemove = 1
scale = 0.5,0.5
sprpriority = 5
ontop = 0
;shadow = 0,0,0
ownpal = 1
removeongethit = 0
ignorehitpause = 1
persistent = 0

[State 0, Explod]
type = Explod
trigger1 = time = 2 && movetype = A && anim != 2301 && (StateNo = [2000,2403]) && PrevStateNo=[2000,2999]
anim = 4921
ID = 4920
pos = 160,100
postype = left
facing = 1
bindtime = -1
removetime = 31
supermove = 1
pausemove = 1
scale = 0.5,0.5
sprpriority = 7
ontop = 0
;shadow = 0,0,0
ownpal = 1
removeongethit = 0
ignorehitpause = 1
persistent = 0



Toshio Tenma

Did you added a sound with the value 11? Is that the value for K.O sounds and mugen automatically run it when a k.o occur. You just need to remember which sound he plays when he get k.oed in the original game.
-Toshio Tenma

Lord Mike

#2
Win KO states are commonly coded in statedefs 180-189.
If you want a certaint sound to be played, you should code one in those states like so:
[state ]
type=playsnd
trigger1=time=0; this will be triggered as soon as you win the round, additional, you can use animelem, to have the sound play at a certain moment of the win pose.
value=xx,xx;choose values from char.snd
channel=x;from -1 to 30 pick a value
volume=xxx;from 0 to 255 pick a value (255 is supposed to be louder)

I hope this will help
何故諦める必要がある? 何を迷うことがある奪い取れ。今は悪魔が微笑む時代なんだ。

Cyanide

He wants the KO voice. That's death. Not winning. The aaaaaaaahhhhhhhhh noise is hardcoded to be sound 11,0. If you add that sound you will have a KO voice.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.