YesNoOk
avatar

A Problem with a CMD ChangeState (Read 690 times)

Started by The Lord of the Flies, October 08, 2007, 09:45:36 pm
Share this topic:
A Problem with a CMD ChangeState
#1  October 08, 2007, 09:45:36 pm
  • ****
  • Am I evil?
Ok, I've had enough of this damn problem.
WTF is wrong with this changestate ???:
[mcode]
;---------------------------------------------------------------------------
[State -1, Stand Medium Kick (forward)]
type = ChangeState
value = 320
triggerall = var(58)<1 && StateType != A
triggerall = command = "b"
triggerall = command != "holddown" && command = "holdfwd"
trigger1 = ctrl
trigger2 = StateNo = 100 && AnimElemTime(4) > 0
[/mcode]
This is supposed to trigger when you press b (medium kick) while walking forwards. As simple as that. var(58) is the AI var, FYI. But when I "do" this, it just sends me to the normal medium kick (in my case, state 310).

And yes, that StateDef exists, and it has the correct anim  :S.

Sig made by TempesT :)
Re: A Problem with a CMD ChangeState
#2  October 08, 2007, 09:53:54 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I trust this changestate is placed above your med kick changestate in the CMD?


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: A Problem with a CMD ChangeState
#3  October 08, 2007, 09:55:05 pm
  • ****
  • "Moyashi tsuku shite yaru..."
ChangeState to 320 must be above ChangeState to 310.

oops, Cyanide was faster.
Re: A Problem with a CMD ChangeState
#4  October 08, 2007, 09:55:14 pm
  • ******
  • [E]
    • Mexico

  • Online
besides it being below another change state that triggers when you press B, i can't see any reason it won't work.
Re: A Problem with a CMD ChangeState
#5  October 08, 2007, 10:08:22 pm
  • ****
  • Am I evil?
SHIT.
I forget the moar basic stuff.
Well thx guys :sugoi:.

Sig made by TempesT :)
Re: A Problem with a CMD ChangeState
#6  October 08, 2007, 10:16:36 pm
  • *****
    • Mexico
Why not use IfElse?
[mcode]IfElse(command = "holdfwd",320,310)[/mcode]
Re: A Problem with a CMD ChangeState
#7  October 08, 2007, 10:22:04 pm
  • ****
  • Am I evil?
Why not use IfElse?
[mcode]IfElse(command = "holdfwd",320,310)[/mcode]
They have different triggers. Well, I COULD do it, but I'd have to make it moar complicated and stuff. On the other way, I just had to flip these  310 and 320 changestates ;D.

Sig made by TempesT :)