Character Intro Problem

Started by Swoogg, September 20, 2015, 04:31:07 PM

Previous topic - Next topic

Swoogg

So my character has 2 intros. But only one shows up, and I want to have both of them show up instead of one.
How would I do this?
Here's my code:
; ---------------------------------------------------------------------------
; Intro
[Statedef 190]
type = S
ctrl = 0
anim = 7331 ;change this number to the number of the animation
velset = 0,0

[State 190, 1]
Play sound
type = PlaySnd ; Supercontrol utilizado para reproducir el sonido
trigger1 = Time = 10 ; Trigger utilizado para dicerle cuando debe sonar
value = 44, 0 ; Valor del sonido en el snd

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

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

;---------------------------------------------------------------------------
; Intro 2
[Statedef 191]
type = S
ctrl = 0
anim = 1337
velset = 0,0

[State 191, 1]
Play sound
type = PlaySnd ; Supercontrol utilizado para reproducir el sonido
trigger1 = Time = 2 ; Trigger utilizado para dicerle cuando debe sonar
value = 2, 0 ; Valor del sonido en el snd

[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 = 0
value = 0

altoiddealer

Have 3 states

190 is the Intro Selection state:
-VarRandom controller with a range from 0 to whatever
-ChangeState controller for the first half of the range that changes to State 191 (Intro #1)  Example: if range is 0-10 then the trigger is var(x) = [0,5]
-Another Changestate for the second half of the range that changes to State 192 (Intro #2)

State 191 is the Intro 1

State 192 is the Intro 2


-Whiplash-

#2
Change intro 1 (State 190) Stateno to

to state 192.

Next add a new state 190:

;---------------------------------------------------------------------------
;Intro State Decider
[Statedef 190]
type = S
ctrl = 0
anim = 0
velset = 0,0
sprpriority = 0

[State 190, 1]
type = ChangeState
trigger1 = Time = 0
value = 191+(random%2)


This state will randomly choose between doing intro 1 or 2 at the start of the round.

EDIT: Ninja'd

Noctis

He actually only needs those 2 states. In state 5900 just add the changestate...

[State 5900, Intro]
type = ChangeState
trigger1 = Time = 0
value = 190+(random%2)


If you don't have or know what state 5900 is, then just add the changestate in your state 190...

[State 190, 1]
type = ChangeState
trigger1 = random<300
trigger1 = Time = 0
value = 191


There's really no need for 3 states.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."