YesNoOk
avatar

Missing code / Music before battle (Read 814 times)

Started by Charles_2011, November 07, 2021, 04:28:25 pm
Share this topic:
Missing code / Music before battle
#1  November 07, 2021, 04:28:25 pm
  • ****
    • Peru
Hello.

Long time ago I added a code to have music before battle, but I think that something is missing, It doesn´t work now, here it is the code:


[Statedef 190]

[State 200, snd]
type=playsnd
triggerall = RoundNo = 1
trigger1 = !time
value = 200,0 ---> Music already added in the char.
channel = 22

[Statedef -3]

[STATE 2002 UM, REJY2505]
type = AssertSpecial
triggerall = TeamMode != Turns
triggerall = roundno = 1
trigger1 = roundstate = 1
trigger2 = stateno = 5900
trigger3 = stateno = [190,199]
flag = nomusic
ignorehitpause = 1
persistent = 1

[State 200, snd]
type=stopsnd
triggerall = TeamMode != Turns
trigger1 = roundstate != 1
trigger1 = stateno != 5900
trigger1 = stateno != [190,199]
channel = 22

[State 200, snd]
type = Stopsnd
triggerall = TeamMode = Turns
triggerall = RoundNo = 1
trigger1 = RoundState > 1
channel = 22

I used to use this code in Warusaki3´s chars. Could you help me to complete the code, please?