HELP!!!!! BASIC MOVECONTACT CODE WILL NOT WORK WITH MY TAG PARTNER !!!!!

Started by The Jaquio, April 24, 2015, 06:46:27 AM

Previous topic - Next topic

The Jaquio

HELLO,

ONE OF THE CHARACTERISTICS INTHE GAME I AM DEVELOPING DOES NOT REQUIRE YOU TO PRESS CTRL + 3 TO CONTROL YOUR TAG PARTNER.  HOWEVER, A SIMPLE CODE I HAVE IMPLEMENTED TO CONTINUOUSLY HIT AN OPPONENT BY PRESSING  THE X BUTTON ONLY WORKS FOR THE FIRST PLAYER, NOT THE PARTNER.  THE CODE I HAVE USED IS THE FOLLOWING:

[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = !ishelper
triggerall = RoundState = 2
triggerall= cond(!fvar(8),1,numpartner)
triggerall = cond(!fvar(8),(command = "x"),(partner,command = "x"))
triggerall = cond(!fvar(8),(command != "holddown"),(partner,command != "holddown"))
trigger1 = statetype = S
trigger1 = IfElse(fvar(8)=1,fvar(10),ctrl)
trigger2 = MoveContact && stateno = 200

I FIGURED MAYBE I SHOULD USE A VARIABLE, HOWEVER I WAS TRYING TO SEE IF THERE WAS AN EASIER WAY.  I HOPE MY QUESTION IS SPECIFIC ENOUGH.  THANKS!

Noctis

Could be a factor of things. Does it have a clsn to hit your opponent? Are you for sure in stateno 200? Is your movetype A? Do you have a hitdef in stateno 200? Are you sure all the "triggeralls" are being triggered? Does movecontact need to be partner,movecontact? Based off of what you said what you need isn't just a movecontact trigger, but a movecontact and a partner,movecontact trigger.

If none of the above solves your problem then we need more info. Or you could try eliminating single things one by one and testing to see if anything changes. If there's a problem there's always something you've done causing it to go wrong. It's not a glitch. Maybe you missed something somewhere.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

Vans

If the partner is not being affected by hitpause then your command is not being buffered long enough for it to work. MUGEN automatically "buffers" commands during hitpause so they can be checked as soon as the character is no longer frozen with the hitpause.

It's the same principle as checking commands with helpers, if you tried reading a command off of a helper, you would have this issue as well. If the helper is not paused, then the command will only be checked for 1 tick (or however long your buffer.time parameter is).

The Jaquio

 I FIGURED IT OUT.  I WANTED THE STAND STATES TO KIND OF CHAIN TOGETHER.  NOT NOTHING MAJOR.  HERE IS WHAT I USED.
;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = !ishelper
triggerall = RoundState = 2
triggerall= cond(!fvar(8),1,numpartner)
triggerall = cond(!fvar(8),(command = "x"),(partner,command = "x"))
triggerall = cond(!fvar(8),(command != "holddown"),(partner,command != "holddown"))
trigger1 = statetype = S
trigger1 = IfElse(fvar(8)=1,fvar(10),ctrl)
trigger2 = movecontact && stateno = 200 && (animelemtime(3) > 0 && animelemtime(5) < 0)
ignorehitpause = 1
;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = !ishelper
triggerall = RoundState = 2
triggerall= cond(!fvar(8),1,numpartner)
triggerall = cond(!fvar(8),(command = "y"),(partner,command = "y"))
triggerall = cond(!fvar(8),(command != "holddown"),(partner,command != "holddown"))
trigger1 = statetype = S
trigger1 = IfElse(fvar(8)=1,fvar(10),ctrl)
trigger2 = movecontact && stateno = 200 && (animelemtime(3) > 0 && animelemtime(5) < 0)
ignorehitpause = 1
;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = !var(59)
triggerall = !ishelper
triggerall = RoundState = 2
triggerall= cond(!fvar(8),1,numpartner)
triggerall = cond(!fvar(8),(command = "z"),(partner,command = "z"))
triggerall = cond(!fvar(8),(command != "holddown"),(partner,command != "holddown"))
trigger1 = statetype = S
trigger1 = IfElse(fvar(8)=1,fvar(10),ctrl)
trigger2 = movecontact && stateno = 210 && (animelemtime(3) > 0 && animelemtime(7) < 0)
ignorehitpause = 1
;---------------------------------------------------------------------------