YesNoOk
avatar

[Ended] MoveContact Combo help (Read 223 times)

Started by ttas, July 28, 2011, 03:40:04 am
Share this topic:
[Ended] MoveContact Combo help
#1  July 28, 2011, 03:40:04 am
  • avatar
  • **
I'm having trouble making combos with MoveContact.

I'm trying to take two seperate attacks (the elbow attack when you press b) and add the knee attack by pressing b again. MK style combos.

I've been seeing this code around with the MoveContact, but when I test it, all that happens is the normal elbow and it doesn't do anything else.

Is there something I might be doing wrong?

[State -1, Elbow]
type = ChangeState
value = 415 ; <--- The elbow
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = movecontact
trigger2 = StateNo = 251 ;<-- The knee

Also I should note that the Knee attack outside of the combo is "y", but I disabled it to see if it was somehow conflicting but nothing happened.
Last Edit: July 28, 2011, 10:33:27 am by ttas

GT

Re: MoveContact Combo help
#2  July 28, 2011, 03:58:52 am
  • *****
  • Don't fuck with me, Jack!
    • USA
You've done it backwards. The way you have it set up tells Mugen that if you're in state 251 and you've made contact you can go into state 415 by pressing b.
 
Quote
[State -1, Elbow]
type = ChangeState
value = 251 ; <--- The knee
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = movecontact
trigger2 = StateNo = 415 ;<-- The Elbow

If you're in the Elbow state (415) you'll be able to go into the Knee state (251) by pressing b (Given that movecontact has returned a value of 1).
Yeah Titiln, in fact, You Made Him
Re: MoveContact Combo help
#3  July 28, 2011, 05:37:04 am
  • avatar
  • **
Thanks for responding. I'm not sure what you mean by I've done it backwards. I changed them around like you've done and it just changed my elbow attack to a knee attack.


Before I saw your response I decided to experiment more to see if I could get it working.
I have it working sort of but it's acting odd.
What I've done now is made some new CNS states specifically for the combo
10000 points to the knee animation
10001 points to the high kick animation
10002 points to the roundhouse animation

I also made some new CMD entries, but it's acting odd. Maybe if I post the code you could please correct it for me. Then i'd learn what went wrong and what to do in the future.

What I'm trying to do is press b for elbow attack then if I want a combo b,y or b,y,y or b,y,y,x
 
elbow, knee, HK, R.house
 

; Elbow
[State -1, Elbow]
type = ChangeState
value = 415
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = P2BodyDist X < 3
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 10000 && time >= 0

; C1-2   knee
[State -1, C1-2]
type = ChangeState
value = 10000
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 10001 && time >= 0

; C1-3 High Kick
[State -1, C1-3]
type = ChangeState
value = 10001
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = P2BodyDist X < 3
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 10002 && time >= 0

; C1-4  roundhouse
[State -1, C1-4]
type = ChangeState
value = 10002
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = P2BodyDist X < 3
trigger1 = statetype = S
trigger1 = ctrl


 
Last Edit: July 28, 2011, 05:40:18 am by ttas
Re: MoveContact Combo help
#4  July 28, 2011, 06:34:10 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
[mcode]; Elbow
[State -1, Elbow]
type = ChangeState
value = 415
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = P2BodyDist X < 3
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 10000 && time >= 0

; C1-2   knee
[State -1, C1-2]
type = ChangeState
value = 10000
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 10001 && time >= 0
[/mcode]
This reads. If you are in state 10001 you may press Y to get into state 10000, if you are in 10000 you may press B to get into state 415. If you want to get into 10000 from 415 you need to change the trigger2's around. Trigger2 in your case is the OR condition. Either you have pressed the button and are just standing there OR these other conditions are true, do this. Your second attack needs to look and see if it's in the first attack state.

You are comboing FROM them, not TO them.


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: MoveContact Combo help
#5  July 28, 2011, 06:53:32 am
  • avatar
  • **
Sorry, I don't understand.

What do I actually change to make it work? I mean I know you're saying I'm doing it backwards but I don't actually understand how. Do you mean that I change
trigger2 = stateno = 10001 && time >= 0
with
trigger2 = stateno = 10000 && time >= 0

Because when I do that I only do the elbow.

when I change the trigger2 = stateno = 10001 && time >= 0 with trigger2 = stateno = 415 && time >= 0
It lets me do Elbow - Knee in succession but I'm lost at this point.
Re: MoveContact Combo help
#6  July 28, 2011, 08:47:57 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Ok, so that means it's working right doesn't it. You have it doing what you want it to.

Changestate is go TO this state. Triggers are the conditions needed to go TO this state.

If you want to get to one state from another state you need to set the changestate up to check for the other state and go from there.

State 1
push button

state 2
push button OR be in state 1

state 3
push button OR be in state 2

state 4
push button OR be in state 3

http://www.mugenguild.com/cyanide
Download the tutorial called Combo Moves. It's got a shitload of reading but deals with what you want to do.


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: MoveContact Combo help
#7  July 28, 2011, 09:00:44 am
  • avatar
  • **
Thank you so much for your help and for the tutorial. While I was waiting, I played with it more and went back to chaining the elbow move to some regular attacks and found out roughly what's going on.

I pointed Elbow's trigger2 to the knee, and pointed the knee to the elbow

then i went and connected the HK to the knee and the roundhouse to the HK

And now I can do a combo b y y B+x so it's starting to work. Only two problems I have left with the combo are
1: I can now start the combo in any order and do it endlessly, EX: instead of just b y y I can go y b y y b y b y y endlessly until P2 is dead. I would like to fix that somehow.

and
2: I'm now chaining to standard attacks which means that after my HK (P2 flys back a bit) I have to do the roundhouse really quick in order to complete the combo

Hopefully your tutorial will help me figure some stuff out.
Re: MoveContact Combo help
#8  July 28, 2011, 10:33:01 am
  • avatar
  • **
I would like to thank everyone who helped with this. But I am just going to give up on the combos, there are just too many problems that I can't understand and I can't get them to work perfectly. Maybe in a future game I might tackle them. But again Thank you to those who helped.