YesNoOk
avatar

CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla (Read 9090 times)

Started by Charles_2011, December 20, 2022, 03:06:55 am
Share this topic:
CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla
New #1  December 20, 2022, 03:06:55 am
  • ***
    • Peru
Hello.

I´m testing CVS2 Alex but there is no intro for him on the second round on turns mode, here:

Spoiler, click to toggle visibilty

Spoiler, click to toggle visibilty

Here you have the codes that are releated to his intro:

Code:
;---------------------------------------------------------------------------
; Intro decider
[Statedef 190]
type = S
ctrl = 0
anim = 190
velset = 0,0

; CODE BY "REJY2505"
;===============================================;
;======; MUSIC BEFORE BATTLE / FIRST CODE ;=====;
;===============================================;

[State 200, SND]
type=playsnd
triggerall = RoundNo = 1
trigger1 = !time
value = F8001,1
channel = 22

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

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

;---------------------------------------------------------------------------
; Intro 1
[Statedef 191]
type = S
ctrl = 0
anim = 190
velset = 0,0

[State 190, ChangeAnim]
type = ChangeAnim
trigger1 = RoundState = 0
value = Anim

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

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

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

[State 192, Shirt]
type = Helper
triggerall = !NumHelper(1920)
trigger1 = Time = 0
helpertype = normal
name = "shirt"
ID = 1920
pos = 0,0
postype = p1
facing = 1
stateno = 1920
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0

[State 190, ChangeAnim]
type = ChangeAnim
trigger1 = RoundState = 0
value = Anim

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

[State 0, PlaySnd]
type = PlaySnd
trigger1 = AnimElemTime(26) = 0
value = S8+Var(24),14
channel = 0
[State 0, PlaySnd]
type = PlaySnd
trigger1 = AnimElemTime(28) = 0
value = S190,0
channel = 1

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

;----------------------------------------------------------------------------------
; Shirt
[Statedef 1920]
anim = 1910
sprpriority = 1

[State 1920, ChangeAnim]
type = ChangeAnim
trigger1 = RoundState = 0
value = anim

[State 1920, SprPriority]
type = SprPriority
trigger1 = AnimElemTime(38) = 0
value = -1

[State 1920, VelSet]
type = VelSet
trigger1 = AnimElemTime(38) = 0
x = -2.25
y = 2.5

[State 1920, VarSet]
type = Null
triggerall = Time = 0
trigger1 = e||(var(0) := 256)
trigger1 = e||(var(1) := 0)
[State 1920, VarAdd]
type = VarAdd
triggerall = Var(1)
trigger1 = (Time - Var(1))%2 = 0
var(0) = -32

[State 1920, Transparency]
type = Trans
trigger1 = root, Anim != 191
trigger1 = e||(var(1) := time)
trigger2 = var(1)
trans = add
alpha = var(0),256

[State 1920, DestroySelf]
type = DestroySelf
trigger1 = RoundState > 1
trigger2 = Var(0) < 32
trigger3 = Pos Y + Vel Y >= 64

;---------------------------------------------------------------------------

What do I have to change, erase or add? I hope you can help me.
Last Edit: December 29, 2022, 03:10:40 am by Charles_2011
Re: CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla
#2  December 26, 2022, 02:37:15 pm
  • ****
second round of the total match
or
second round of alex himself played

by the way post state 5900 too
Re: CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla
#3  December 27, 2022, 03:26:20 pm
  • ***
    • Peru
Hello beterhans, thanks for your disponibility. There is no Intro on the second (third,fourth) round on "Turns mode".

Here, state 5900:

;---------------------------------------------------------------------------
; Initialize (at the start of the round)
[Statedef 5900]
type = S

[State 5900, 1] ;Clear all int variables
type = VarRangeSet
trigger1 = roundsexisted = 0 && Time = 0
value = 0

[State 5900, 2] ;Clear all float variables
type = VarRangeSet
trigger1 = roundsexisted = 0 && Time = 0
fvalue = 0

[State 5900, 3] ;Change palette
type = RemapPal
trigger1 = NumHelper(10001) && helper(10001),var(20+palNo) > 0
source = 1,1
dest = 1,(helper(10001),var(20+palNo))

[State 5900, 4] ;Intro for round 1
type = ChangeState
triggerall = Time
trigger1 = roundno = 1
value = 190

[State 5900, 5] ;All other rounds
type = ChangeState
triggerall = Time
trigger1 = NumHelper(10001)
value = 0
Re: CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla
#4  December 28, 2022, 05:39:07 pm
  • ****
change

Code:
[State 5900, 4] ;Intro for round 1
type = ChangeState
triggerall = Time
trigger1 = roundno = 1;   Means 1st round of the total rounds. if alex come out at round 2 will be no intro
value = 190


into
Code:
[State 5900, 4] ;Intro for round 1
type = ChangeState
triggerall = Time
trigger1 = RoundsExisted = 0; means alex played 0 round.
value = 190

Re: CVS2 Alex - No intro on the second Round - Turns Mode - Jesuszilla
#5  December 28, 2022, 09:57:28 pm
  • ***
    • Peru
Thank you so much, beterhans, It works perfectly, It was useful for Eagle and Bison, too.