YesNoOk
avatar

Intro not working (Read 3488 times)

Started by -Whiplash-, March 11, 2017, 09:24:15 pm
Share this topic:
Intro not working
#1  March 11, 2017, 09:24:15 pm
  • ****
  • Prince of Latis
  • Destroy the Core!
    • Canada
    • Skype - Whiplash-1
So, I'm making a character, and one of the intros doesn't work

Now, the intro DOES work, there's no issue there.

But it's a special intro with quicksilver, and it's not working.

[State 180, 1]
type = ChangeState
triggerall = time = 0
trigger1 = Enemynear, Name = "QuickSilver"
value = 192

He just stayes in state 190 until the round starts.

I have no idea why this isn't working. There's a parameter above that's the EXACT same except it's for state 191 and is for the flash.
Last Edit: March 11, 2017, 09:36:24 pm by -Whiplash-
Re: Intro not working
#2  March 11, 2017, 11:53:24 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Open quicksilvers .def file. The name trigger works off the name of the character, this is completely different to the displayname. Many people do things like "Bob by Jimbo" for the name rather than just "Bob". So it could be "Quicksilver by Jimbo" and you have to trigger on that instead.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Intro not working
#3  March 12, 2017, 02:48:56 am
  • ****
  • Prince of Latis
  • Destroy the Core!
    • Canada
    • Skype - Whiplash-1
It's not that, as I tested the intro by changing my characters name to quicksilver's name, it's the exact same. If it wasn't right, the character would do one of his other intros.

Also, making a change state that looks like this:

[State 180, 1]
type = ChangeState
trigger1 = time = 0
value = 192

in state 190 causes him to be stuck in 190 instead of changing. I can't figure it out. Even changing the stateno to 196 or something does nothing.
Re: Intro not working
#4  March 12, 2017, 03:10:50 am
  • ******
Does Statetime remain at 0 (looping into the state every tick) or does time move as normal?
Re: Intro not working
#5  March 12, 2017, 03:27:27 am
  • ******
    • www.justnopoint.com/
Does the 30 tick pause at the start of roundstate=0 make time = 0 false? I kinda want to see your state decider
Re: Intro not working
#6  March 12, 2017, 03:37:38 am
  • *****
  • Estoy siempre listo para un desafĂ­o.
    • Puerto Rico
    • im41784@yahoo.com
Try changing time=0 to !time
Re: Intro not working
#7  March 12, 2017, 03:50:19 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Those triggers are exactly the same. Please post the states in their entirety. I want to see state 190 and 192.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Intro not working
#8  March 12, 2017, 05:48:44 am
  • ****
  • Prince of Latis
  • Destroy the Core!
    • Canada
    • Skype - Whiplash-1
;---------------------------------------------------------------------------
;Intro State Decider
[Statedef 190]
type = S
ctrl = 0
anim = 0
velset = 0,0
sprpriority = 0

[State 180, 1]
type = ChangeState
triggerall = time = 0
trigger1 = Enemynear, Name = "Barry Allen"
trigger2 = Enemynear, Name = "The Flash"
value = 191

[State 180, 1]
type = ChangeState
triggerall = time = 0
trigger1 = Enemynear, Name = "QuickSilver"
value = 192

[State 180, 1]
type = ChangeState
triggerall = Enemynear, Name != "Barry Allen"
triggerall = Enemynear, Name != "The Flash"
triggerall = Enemynear, Name != "Quicksilver"
trigger1 = time = 0
value = 191+random%4

;---------------------------------------------------------------------------
;Intro 2 - crossed arms
[Statedef 192]
type = S
ctrl = 0
anim = 197
velset = 0,0
sprpriority = 0

[State 190, 2]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 180, 1]
type = playsnd
triggerall = time = 0
trigger1 = Enemynear, Name = "Quicksilver"
value = 191,1

[State 180, 1]
type = playsnd
trigger1 = Enemynear, Name != "Quicksilver"
trigger1 = time = 0
value = 190,1+random%2

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

The intro works, when my character ISN'T named quicksilver or the flash it loads fine.

Also, naming my character "the flash" or "Barry Allen" gets it to go into the correct state.

EDIT: I figured it out, it was something stupid and obvious that I just missed.

I had copy and pasted another change state over from the win quotes (since the triggers are the same), like this:

trigger1 = Enemynear, Name = "Batman"
trigger2 = Enemynear, Name = "Bruce Wayne"
trigger3 = Enemynear, Name = "JSA Flash"
trigger4 = Enemynear, Name = "Supergirl"
trigger5 = Enemynear, Name = "Jay Garrick"
trigger6 = Enemynear, Name = "Kara Zor-El"
trigger7 = Enemynear, Name = "Sonic"
trigger8 = Enemynear, Name = "Sonic The Hedgehog"
trigger9 = Enemynear, Name = "Wally West"
trigger10 = Enemynear, Name = "The Flash"
value = 193

Which was directly underneath, since it was missing the statedef at the top this was still part of the other change state  so, since his name wasn't both batman and quicksilver (as that's not possible) he was just stuck until the intro ended or whatever.

Sorry.

Quote
Does the 30 tick pause at the start of roundstate=0 make time = 0 false? I kinda want to see your state decider
no it doesn't. Thanks for telling me the amount of time before the intro starts though, I couldn't figure it out.
Last Edit: March 12, 2017, 05:55:13 am by -Whiplash-
Re: Intro not working
#9  January 28, 2018, 10:04:13 am
  • avatar
  • *
    • Vietnam
So, I'm making a character, and one of the intros doesn't work

Now, the intro DOES work, there's no issue there.

But it's a special intro with quicksilver, and it's not working.

[State 180, 1]
type = ChangeState
triggerall = time = 0
trigger1 = Enemynear, Name = "QuickSilver"
value = 192

He just stayes in state 190 until the round starts.

I have no idea why this isn't working. There's a parameter above that's the EXACT same except it's for state 191 and is for the flash.

Intro main controller is in Statedef 5900. From it u can redirect it to another without interrupt.
------Tremble Mortal and Despair. Doom has come to this world------