YesNoOk
avatar

Special move not activating (Read 512 times)

Started by GeorgeMP, June 16, 2019, 07:51:20 am
Share this topic:
Special move not activating
#1  June 16, 2019, 07:51:20 am
  • **
  • Master Procrastinator
  • Expect me to joke around a lot...
    • USA
So, I was making an MvC styled Sonic character for MUGEN, and I was going to add Sonic's Spin Dash. The move itself works fine, but if I try to input the command for it, I just get one of his normals.
Here's the -1 section of my character's CMD:
Code:
[Statedef -1]

;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = command = "FF"
trigger1 = statetype = S && ctrl

;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = command = "BB"
trigger1 = statetype = S && ctrl

;Normals
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100

[State -1]
type = ChangeState
value = 240
triggerall = command = "b"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact

[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact

[State -1]
type = ChangeState
value = 255
triggerall = command = "fwd_c"
trigger1 = stateno = 100 && ctrl

[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100

[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact

[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact

;Crouching Normals
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl

[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact

[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl
trigger2 = stateno = 410 && movecontact
trigger3 = stateno = 440 && movecontact

[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl

[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact

[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = stateno = 11 && ctrl
trigger2 = stateno = 410 && movecontact
trigger3 = stateno = 440 && movecontact

;Aerials
[State -1]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl

[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl
trigger2 = stateno = 610 && movecontact
trigger3 = stateno = 640 && movecontact

[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl

[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = stateno = 50 && ctrl || stateno = 51 && ctrl
trigger2 = stateno = 610 && movecontact
trigger3 = stateno = 640 && movecontact

;Specials
[State -1] ;This is the part you're probably looking for
type = ChangeState
value = 1000
triggerall = command = "SpinDash"
triggerall = statetype = S && ctrl
triggerall = Roundstate = 2
trigger1 = stateno = 200 && movecontact
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 220 && movecontact
Any help is much appreciated.
"Certainly, they existed... Those blinded by ambition. Those consumed with vengeance. But here, they do not exist. Only winners and losers here. For here, THE MIGHTY RULE!"


Go check out Team Sonic Fighters!
http://mugenguild.com/forum/topics/team-sonic-fighters-188020.0.html
Re: Special move not activating
#2  June 16, 2019, 11:28:09 am
  • *
  • A Common Man With Limitless Potential!!!
Your commands are placed in the wrong order. Try changing the order of your commands & your problem will be solved. M.U.G.E.N creators place their commands in the following order:

1) Hypers.
2) Specials.
3) Aerial Attacks.
4) Crouch Attacks.
5) Standing Attacks.
6) Run Forward & Backward.

Hope this helps.

DW

Re: Special move not activating
#3  June 16, 2019, 03:52:38 pm
  • *****
  • Uninvited claws
    • USA
    • www.trinitymugen.net
Yeah, MUGEN prioritizes code from top to bottom. So you want to put your more difficult commands above the easier ones. Also, you may not want to use "statetype=s" for attacks that don't specifically require your char to be standing. Rather then just be on the ground. You may want to use "statetype!=a" instead.
Re: Special move not activating
#4  June 16, 2019, 11:37:35 pm
  • **
  • Master Procrastinator
  • Expect me to joke around a lot...
    • USA
So, I changed my -1 to this:
Code:
;Specials
[State -1]
type = ChangeState
value = 1000
triggerall = command = "SpinDash"
triggerall = statetype != A && ctrl
triggerall = Roundstate = 2
trigger1 = stateno = 200 && movecontact
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 220 && movecontact

;Aerials
[State -1]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A && ctrl

[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

[State -1]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 610 && movecontact
trigger3 = stateno = 640 && movecontact

[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A && ctrl

[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

[State -1]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 610 && movecontact
trigger3 = stateno = 640 && movecontact

;Crouching Normals
[State -1]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl

[State -1]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact

[State -1]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 410 && movecontact
trigger3 = stateno = 440 && movecontact

[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl

[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact

[State -1]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 410 && movecontact
trigger3 = stateno = 440 && movecontact

;Normals
[State -1]
type = ChangeState
value = 230
triggerall = command = "a"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100

[State -1]
type = ChangeState
value = 240
triggerall = command = "b"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact

[State -1]
type = ChangeState
value = 250
triggerall = command = "c"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact

[State -1]
type = ChangeState
value = 255
triggerall = command = "fwd_c"
trigger1 = stateno = 100 && ctrl

[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100

[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact

[State -1]
type = ChangeState
value = 220
triggerall = command = "z"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact

;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = command = "FF"
trigger1 = statetype = S && ctrl

;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = command = "BB"
trigger1 = statetype = S && ctrl
And I STILL can't do Sonic's Spin Dash!
"Certainly, they existed... Those blinded by ambition. Those consumed with vengeance. But here, they do not exist. Only winners and losers here. For here, THE MIGHTY RULE!"


Go check out Team Sonic Fighters!
http://mugenguild.com/forum/topics/team-sonic-fighters-188020.0.html

DW

Re: Special move not activating
#5  June 17, 2019, 01:18:38 am
  • *****
  • Uninvited claws
    • USA
    • www.trinitymugen.net
Post the command for it.
Re: Special move not activating
#6  June 17, 2019, 01:26:36 am
  • **
  • Master Procrastinator
  • Expect me to joke around a lot...
    • USA
Code:
[Command]
name = "SpinDash"
command = ~D, DF, F, x
time = 30

[Command]
name = "SpinDash"
command = ~D, DF, F, y
time = 30

[Command]
name = "SpinDash"
command = ~D, DF, F, z
time = 30
"Certainly, they existed... Those blinded by ambition. Those consumed with vengeance. But here, they do not exist. Only winners and losers here. For here, THE MIGHTY RULE!"


Go check out Team Sonic Fighters!
http://mugenguild.com/forum/topics/team-sonic-fighters-188020.0.html

DW

Re: Special move not activating
#7  June 17, 2019, 02:30:04 am
  • *****
  • Uninvited claws
    • USA
    • www.trinitymugen.net
I'm not seeing a problem tbh. 30 time is more than enough. Maybe try copying the changestate for Spin Dash, delete it, then save the CMD. Then reapply the changestate for Spin Dash and save again. I know sometimes the CMD can be a bit funny at times. Make sure 1000 is the right stateno value. Perhaps try rewriting the changestate code to this:

Code:
[State -1]
type = ChangeState
value = 1000
triggerall = command = "SpinDash"
triggerall = Roundstate = 2 && statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 220 && movecontact
Last Edit: June 17, 2019, 03:33:00 am by DW
Re: Special move not activating
#8  June 17, 2019, 03:29:23 am
  • **
  • Master Procrastinator
  • Expect me to joke around a lot...
    • USA
It works now. Thanks. Gonna mark as solved.
"Certainly, they existed... Those blinded by ambition. Those consumed with vengeance. But here, they do not exist. Only winners and losers here. For here, THE MIGHTY RULE!"


Go check out Team Sonic Fighters!
http://mugenguild.com/forum/topics/team-sonic-fighters-188020.0.html

DW

Re: Special move not activating
#9  June 17, 2019, 03:31:31 am
  • *****
  • Uninvited claws
    • USA
    • www.trinitymugen.net
No problem.