Intro problems

Started by Toasted Brains, August 28, 2016, 04:19:00 AM

Previous topic - Next topic

Toasted Brains

Hey guys.
I just made my new intro for Shock, but while it works, the other intro doesn't, so the new intro will sometimes play with the sound from the other intro.
Can somebody help me fix this?
Here's the coding:
Spoiler (click to show)
;---------------------------------------------------------------------------
; Introduction
; CNS difficulty: basic
[Statedef 190]
type = S

[State 190, 1]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 0,29

[State 190, 2]
type = ChangeState
trigger1=p2name="Yui Hirasawa"

value = 194

[State 190, 3]
type = ChangeState
trigger1 = Var(1) = [0,19]
value = 191

[State 190, 4]
type = ChangeState
trigger1 = Var(1) = [10,29]
value = 192


;---------------------------------------------------------------------------
; Intro 1
; CNS difficulty: basic

[Statedef 191]
type = S
movetype = I
physics = N
ctrl = 0
anim = 190
velset = 0,0
sprpriority = 2

[State 191, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay

[State 183, PlaySnd1]
type = PlaySnd
trigger1 = AnimElem = 3
value = S5,2
volume = 200
channel = -1

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 191

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

[State 191, 3] ;Change to stand state when done
type = ChangeState
trigger1 = !AnimTime
value = 0

;---------------------------------------------------------------------------
; Intro 2
; CNS difficulty: basic

[Statedef 192]
type = S
movetype = I
physics = N
ctrl = 0
anim = 191
velset = 0,0
sprpriority = 2

[State 192, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay

[State 183, PlaySnd1]
type = PlaySnd
trigger1 = AnimElem = 2
value = S190,0
volume = 200
channel = -1

[State 192, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 191

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

[State 192, 3] ;Change to stand state when done
type = ChangeState
trigger1 = !AnimTime
value = 0
Chris is out now! Up next is another OC, some stages, and a certain half-demon.

Odb718

What's up with the overlap on the changestate var(1) check?
trigger1 = Var(1) = [0,19]
trigger1 = Var(1) = [10,29]

did you mean
trigger1 = Var(1) = [20,29]
?


[Statedef 191] you have assertspecial intro being set twice.


Where is statedef 194? Or is that not the problem?

Buuuut your main problem is you just overlooked

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 191   

^^^ in statedef 191 it should be 190 because 192 uses anim 191.
vVv Gouken718 vVv SabreTooth718 vVv


Toasted Brains

#2
Okay, I'll try that out.
It works! Thanks man!
Chris is out now! Up next is another OC, some stages, and a certain half-demon.