YesNoOk
avatar

Problem to fix intro in turns mode (Read 2554 times)

Started by BlackOutVT, June 10, 2020, 01:41:49 am
Share this topic:
Problem to fix intro in turns mode
#1  June 10, 2020, 01:41:49 am
  • MUGEN character programmer
  • Hey, common!
    • Brazil
Please I need some help, I'm not an expert guy with the commands from cns/st chars file, but let's go for my question: For some reason I have some chars with intros that work just in round 1 in any mode when they shows up, so I need some help to fix this in turns mode after round 1 to chars allow his intros whenever they appear. I've tried a lot of things, but haven't success, a little demonstration is a mugen char called Ralf from KOF series, his present part of intro from cns file it's just below (ANY SUGGESTION WILL BE WELCOME):

; Intro
[Statedef 190]
type = S
ctrl = 0
anim = 4400
velset = 0,0

[State 190, 0]
type = ChangeState
trigger1 = p2name = "K'" || p4name = "K'"
trigger2 = p2name = "Maxima" || p4name = "Maxima"
trigger3 = p2name = "Kula Diamond" || p4name = "Kula Diamond"
trigger4 = p2name = "Athena Heidern" || p4name = "Athena Heidern"
value = 192

[State 190, 1]
type = ChangeState
trigger1 = p2name = "Heidern" || p4name = "Heidern"
trigger2 = p2name = "Whip" || p4name = "Whip"
trigger3 = p2name = "Leona Heidern" || p4name = "Leona Heidern"
trigger4 = p2name = "Ralf Jones" || p4name = "Ralf Jones"
value = 193

[State 190, 2]
type = ChangeState
trigger1 = p2name = "Clark Still" || p4name = "Clark Still"
value = 194

[State 190, 3]
type = AssertSpecial
trigger1 = 1
flag = intro

[State 190, 4]
type = PlaySnd
trigger1 = AnimElem = 3
value = 190,0

[State 190, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; Intro 2
[Statedef 192]
type = S
ctrl = 0
anim = 4200
velset = 0,0

[State 192, 0]
type = AssertSpecial
trigger1 = 1
flag = intro

[State 192, 1]
type = EnvShake
trigger1 = AnimElem = 5,= 1
time = 12
ampl = -12

[State 192, 2]
type = PlaySnd
trigger1 = AnimElem = 6
value = 190,2

[State 192, 3]
type = PlaySnd
trigger1 = AnimElem = 11
value = 190,3

[State 192, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; Intro 3
[Statedef 193]
type = S
ctrl = 0
anim = 4300
velset = 0,0

[State 193, 0]
type = AssertSpecial
trigger1 = 1
flag = intro

[State 193, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 190,4

[State 193, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; Intro 4
[Statedef 194]
type = S
ctrl = 0
anim = 4300
velset = 0,0

[State 194, 0]
type = AssertSpecial
trigger1 = 1
flag = intro

[State 194, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 190,5

[State 194, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

and also from state -2 relative commands:

[State -2, ChangeState]
type = ChangeState
value = 190
triggerall = TeamMode = Turns
trigger1 = stateno = 5900

[State -2, VarSet]
type = VarSet
triggerall = RoundState = [0,1]
trigger1 = RoundNo = 1
trigger2 = TeamMode = Turns
trigger2 = RoundsExisted = 0
value = Life

[State -2, VarSet]
type = VarSet
triggerall = Var(22) = [0,100]
triggerall = Time = 1
trigger1 = RoundNo = 1
trigger2 = RoundsExisted = 0
value = const(data.life)
Last Edit: June 11, 2020, 05:53:48 am by Alef Soares
Re: Problem to fix intro in turns mode
#2  June 11, 2020, 06:59:36 am
  • MUGEN character programmer
  • Hey, common!
    • Brazil
Thanks anybody that already ready this, but I got it, I tried so hard and I solved it, just was a problem in states -2 that I discovered and done it!