AI basic combo problem

Started by BC, July 30, 2008, 02:30:01 PM

Previous topic - Next topic

BC

; Crouching Light Kick
[State -1, AI Crouching Light Kick]
type = ChangeState
value = 430
triggerall = var(7) = 1  && random =[400,450]
triggerall = statetype !=A
triggerall=(p2bodydist x=[0,62])&&(p2statetype!=L)&&(p2statetype=S)
trigger1 = ctrl && statetype = C

; Crouching Meidum Kick
[State -1, AI Crouching medium Kick]
type = ChangeState
value = 440
triggerall = var(7) = 1  && roundstate = 2
triggerall = statetype !=A
triggerall =(p2bodydist x=[0,68])&&(p2statetype!=L)&&(p2statetype=S)
trigger1 = ctrl && statetype = C
trigger1 = stateno = 430 && movehit


just trying to come up with a combo, crouching light kick into crouching med kick..........then into super, which is already coded.

but when in the required condition, akuma is only crouch light kicking and doesnt combo into crouch med kick.

or he might do light a crouch light X2

i guess i could use prevstateno != 230 to get rid of that prob, but just wondering what part of my AI code isnt allowing him to combo.
Accepting commissions

BC

just figured it out


i removed this line in crouching med kick

trigger1 = ctrl && statetype = C


and upped the random value in crouch light kick
Accepting commissions

Aadmi

Quote from: blackchaos07 on July 30, 2008, 02:33:41 PM
just figured it out


i removed this line in crouching med kick

trigger1 = ctrl && statetype = C


and upped the random value in crouch light kick

to do combos you must not use the ctrl trigger because it means trigger when you have ctrl and if your attacking you shouldn't have ctrl.

Just putting that out there.

Cheers,Rajaboy

BC

yea thanks, figured thats what the problem was.

im slowly getting the hang of this AI, dont wanna rush it even tho trying to get this character released, just wanna make him fight decent.
Accepting commissions