YesNoOk
avatar

Help. Move priority over the other one (Read 987 times)

Started by Momotaro, September 24, 2021, 01:59:35 pm
Share this topic:
Help. Move priority over the other one
New #1  September 24, 2021, 01:59:35 pm
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
Hello.

I'm back to some older full game project for a change.
Warning : very old winmugen noobish style system I started around 2007...
I know the code structure is very bad, but it worked. Unless I created the 2nd move (move B)

Basically.
I have move A and Move B

Move A's command is "a"
Move B's command is "down + a"

-Both moves have exactly the same conditions. (beside of the actual command)
-But Move A always take the priority for some reason.
-I put move B above move A to avoid input priority problem, but doesn't work.
-When I cange move B's command to something else like "z", both moves works perfectly.

What should I do?
Part of the CMD

Code:
;---------------------------------------------------------------------------
;move B
[State -1, move B]
type = ChangeState
value = 520
triggerall = var(10)!=1;pas sur plateforme
triggerall = command = "a"
triggerall = command = "down"
triggerall = stateno != 100
;triggerall = P2stateno = 5110; P2 au sol
triggerall = p2life != 0

trigger1 = P2stateno = 5110; P2 au sol ou au pas tout a fait (rebonds)
trigger2 = P2stateno = 5100; P2 au sol ou au pas tout a fait (rebonds)
trigger3 = P2stateno = 5101; P2 au sol ou au pas tout a fait (rebonds)
trigger4 = P2stateno = 5071; P2 au sol ou au pas tout a fait (rebonds)
trigger5 = P2stateno = 5080; P2 au sol ou au pas tout a fait (rebonds)
trigger6 = P2stateno = 5081; P2 au sol ou au pas tout a fait (rebonds)
trigger7 = P2stateno = 5150; P2 au sol ou au pas tout a fait (rebonds)
trigger8 = P2stateno = 5400; P2 dizzy au sol
trigger9 = P2stateno = 5121; P2 (new get up, encore au sol)

triggerall = statetype = S
triggerall = ctrl
triggerall = p2bodydist X < 70;30;p2bodydist X < 26;28;10;3
triggerall = p2bodydist Z < 16;28;10;3

;trigger1 = p2movetype != H
;trigger2 = stateno = 801
;trigger2 = time = [16,40]

;---------------------------------------------------------------------------
;move A
[State -1, move A]
type = ChangeState
value = 815
triggerall = var(10)!=1;pas sur plateforme
triggerall = command = "a"
triggerall = stateno != 100
;triggerall = P2stateno = 5110; P2 au sol
triggerall = p2life != 0

trigger1 = P2stateno = 5110; P2 au sol ou au pas tout a fait (rebonds)
trigger2 = P2stateno = 5100; P2 au sol ou au pas tout a fait (rebonds)
trigger3 = P2stateno = 5101; P2 au sol ou au pas tout a fait (rebonds)
trigger4 = P2stateno = 5071; P2 au sol ou au pas tout a fait (rebonds)
trigger5 = P2stateno = 5080; P2 au sol ou au pas tout a fait (rebonds)
trigger6 = P2stateno = 5081; P2 au sol ou au pas tout a fait (rebonds)
trigger7 = P2stateno = 5150; P2 au sol ou au pas tout a fait (rebonds)
trigger8 = P2stateno = 5400; P2 dizzy au sol
trigger9 = P2stateno = 5121; P2 (new get up, encore au sol)

triggerall = statetype = S
triggerall = ctrl
triggerall = p2bodydist X < 70;30;p2bodydist X < 26;28;10;3
triggerall = p2bodydist Z < 16;28;10;3

;trigger1 = p2movetype != H
;trigger2 = stateno = 801
;trigger2 = time = [16,40]

thanks for any help.
Last Edit: September 24, 2021, 04:10:01 pm by Nedflandeurse
Re: Help. Move priority over the other one
#2  September 24, 2021, 02:06:21 pm
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
Try to add "triggerall = command != "down"" into [Move A] code.
Re: Help. Move priority over the other one
New #3  September 24, 2021, 03:49:29 pm
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
Thanks. I just tried but mugen still choose "move A"
I think I even tried that before to be sure.
I just cannot understand why "move A" always have the priority

EDIT : OK, I was not looking at the right place.
The input command code was in a specific state "walk down" statedef 22.
So I started updating it in my custom common for this game.
But the character actually had an overwrite of this state in personnal cns file.
That was the right place to edit it.

and your code worked.
Thanks Trololo
Last Edit: September 24, 2021, 04:09:42 pm by Nedflandeurse