Adding a combo System

Started by Insane, April 18, 2008, 04:58:19 AM

Previous topic - Next topic

Insane

Hi guys, i need help on adding a combo system to a cvs char by byakko (kyosuke) and i had an idea on how to do it but, it seem my theory isnt working, i know i have to change things around in the cmd but, i dont know what would i change to make him combo. here's his basic air and standind punches, sorry if it's alot hehe, i would like to make him combo in the air and also when he's fighting on grounds.


;---------------------------------------------------------------------------
; close light punch
[State -1,lp1]
type = ChangeState
value = 205
triggerall = statetype != A && p2BodyDist X < 20
triggerall = command = "x" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = 205
trigger4 = MoveContact && stateno = 400
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; light punch
[State -1,lp2]
type = ChangeState
value = 200
triggerall = statetype != A
triggerall = command = "x" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [200,205]
trigger4 = MoveContact && stateno = 400
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; close medium punch
[State -1,mp1]
type = ChangeState
value = 215
triggerall = statetype != A && p2BodyDist X < 20
triggerall = command = "y" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [200,205]
trigger4 = MoveContact && stateno = [400,410]
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; medium punch
[State -1,mp2]
type = ChangeState
value = 210
triggerall = statetype != A
triggerall = command = "y" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [200,205]
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; close heavy punch
[State -1,hp1]
type = ChangeState
value = 225
triggerall = statetype != A && p2BodyDist X < 20
triggerall = command = "z" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [205,215]
trigger4 = movecontact && prevstateno = 235
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; heavy punch
[State -1,hp2]
type = ChangeState
value = 220
triggerall = statetype != A
triggerall = command = "z" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && (stateno = 200 || stateno = 210 || stateno = 230)
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; close light kick
[State -1,lk1]
type = ChangeState
value = 235
triggerall = statetype != A && p2BodyDist X < 20
triggerall = command = "a" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = 205
trigger4 = MoveContact && stateno = 400
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; light kick
[State -1,lk2]
type = ChangeState
value = 230
triggerall = statetype != A
triggerall = command = "a" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [200,205]
trigger4 = MoveContact && stateno = 400
trigger5 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; medium kick
[State -1,mk1]
type = ChangeState
value = 245
triggerall = statetype != A && p2BodyDist X < 20
triggerall = command = "b" && command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [230,235]
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; medium kick
[State -1,mk2]
type = ChangeState
value = 240
triggerall = statetype != A
triggerall = command = "b" && command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [230,235]
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; heavy kick
[State -1,hk3]
type = ChangeState
value = 250
triggerall = statetype != A
triggerall = command = "c" && command != "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 100
trigger3 = movecontact && (stateno = 230 || stateno = 240)
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch light punch
[State -1,clp]
type = ChangeState
value = 400
triggerall = command = "x" && command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch medium punch
[State -1,cmp]
type = ChangeState
value = 410
triggerall = statetype != A
triggerall = command = "y" && command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch heavy punch
[State -1,chp]
type = ChangeState
value = 420
triggerall = statetype != A
triggerall = command = "z" && command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch light kick
[State -1,clk]
type = ChangeState
value = 430
triggerall = command = "a" && command = "holddown"
triggerall = statetype != A
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch medium kick
[State -1,cmk]
type = ChangeState
value = 440
triggerall = statetype != A
triggerall = command = "b" && command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch forward heavy kick
[State -1,cfhk]
type = ChangeState
value = 455
triggerall = statetype != A
triggerall = command = "c" && command = "holddown" && command = "holdfwd"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [400,440]
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; crouch heavy kick
[State -1,chk]
type = ChangeState
value = 450
triggerall = statetype != A
triggerall = command = "c" && command = "holddown" && command != "holdfwd"
trigger1 = statetype = C && ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [400,440]
trigger4 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air light punch
[State -1,alp]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A && ctrl
trigger2 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air medium punch
[State -1,amp]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A && ctrl
trigger2 = StateNo = 600 && MoveContact
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air heavy punch
[State -1,ahp]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A && ctrl
trigger2 = MoveContact && StateNo = [600,610]
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air light kick
[State -1,alk]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A && ctrl
trigger2 = MoveContact && StateNo = 600
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air medium kick
[State -1,amk]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A && ctrl
trigger2 = MoveContact && (StateNo = 600 || StateNo = 610 || StateNo = 630)
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------
; air heavy kick
[State -1,ahk]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A && ctrl
trigger2 = MoveContact && StateNo = [600,640]
trigger3 = StateNo = 151 || StateNo = 153
;---------------------------------------------------------------------------


i tried to do this is but, it wouldnt work for me, what i was doing was changing some numbers in the trigger2 state but, when i start playing with him there wasnt much a difference ???. Can some help me and tell me what am doing wrong i would happy if someone can am confused lols. Thanks :)


Insane

iTorres

QuoteGo into the cmd file of the character and look for the basic attacks.

[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact ;this makes the attack chain from the Standin Light Punch (200)

You can change the 200 to another attack and make this Standing Strong Punch chain from that. You can also add more triggers to make it chainable to other attacks.

EX:
trigger3 = (stateno = 210) && movecontact ;this will allow you to chain 210-->210 (Standing Strong Punch-->Standing Strong Punch) Not really recommended
trigger4 = (stateno = 230) && movecontact ;chains 230-->210 (Standing Light Kick-->Standing Strong Punch)

Of course I took this from KFM, so the character you're trying to edit might have different values than these.

You can also use other triggers than movecontact, like movehit, moveguard, time, etc..

QuoteAll you have to do is add one line to the command in the cmd file. If you want an attack to chain from weak to medium. Then you put the trigger in the medium attack.

Ex. trigger1 = stateno = 200 && movecontact

Below is the weak attack

[State -1, Stand Light Punch]
type = ChangeState
value = 200             ; <-- 200 is the value you need to remember.
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl


And here is the medium attack.

[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger1 = stateno = 200 && movecontact ;<-- This is the trigger you will use to make the weak attack(value 200) chain into the medium attack.

Sig Provided by Matrimelee

Insane

Quote from: itorres32 on April 18, 2008, 05:02:02 AM
QuoteGo into the cmd file of the character and look for the basic attacks.

[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact ;this makes the attack chain from the Standin Light Punch (200)

You can change the 200 to another attack and make this Standing Strong Punch chain from that. You can also add more triggers to make it chainable to other attacks.

EX:
trigger3 = (stateno = 210) && movecontact ;this will allow you to chain 210-->210 (Standing Strong Punch-->Standing Strong Punch) Not really recommended
trigger4 = (stateno = 230) && movecontact ;chains 230-->210 (Standing Light Kick-->Standing Strong Punch)

Of course I took this from KFM, so the character you're trying to edit might have different values than these.

You can also use other triggers than movecontact, like movehit, moveguard, time, etc..

QuoteAll you have to do is add one line to the command in the cmd file. If you want an attack to chain from weak to medium. Then you put the trigger in the medium attack.

Ex. trigger1 = stateno = 200 && movecontact

Below is the weak attack

[State -1, Stand Light Punch]
type = ChangeState
value = 200             ; <-- 200 is the value you need to remember.
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl


And here is the medium attack.

[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S && ctrl
trigger1 = stateno = 200 && movecontact ;<-- This is the trigger you will use to make the weak attack(value 200) chain into the medium attack.
Ohhh so all would i have to do is change the movecontact numbers around right? like for an example:

; light punch
[State -1,lp2]
type = ChangeState
value = 200
triggerall = statetype != A
triggerall = command = "x" && command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = movecontact && stateno = [200,205]
trigger4 = MoveContact && stateno = 400
trigger5 = StateNo = 151 || StateNo = 153


In trigger4 i can change 200,205 right? but, i cant change it to multiple numbers like 200,205,215 etc, i tried that last time with another char but i got an error so i know about that alright but, this what i was thinking the first time and it didnt work.

Edit: Opps i meant trigger3 hehe.