YesNoOk
avatar

Winmugen Ai Assistance (Read 564 times)

Started by Kanbei, November 01, 2011, 10:49:26 pm
Share this topic:
Winmugen Ai Assistance
#1  November 01, 2011, 10:49:26 pm
  • ***
  • Shogun of Mustafar
  • Long time no see every body.
    • USA
Okay Here The Thing My Characters Still Fight Like They Are Kung Fu Man. Can Anybody Help?
Heres An Example Of My Ai(I Use Variable 58 As My AI)

The AI Activation
[State -1, AI On]
type = VarSet
triggerall = RoundState = 2
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
var(58) = 1

Ai Off When Round Is Won!
[State -1, AI Off]
type = VarSet
triggerall = !Win
trigger1 = !alive
trigger2 = roundstate <= 1
trigger3 = roundstate >= 3
var(58) = 0

A Punch For Ai
[State -1, Stand Light Punch AI]
type = ChangeState
value = 200
triggerall = (roundstate = 2) && (var(58))
triggerall = p2bodydist x < 20
triggerall = random < 24
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = time > 10
trigger2 = hitdefattr = SC, NA, SA

A Kick For Ai
[State -1, Stand Light Kick AI]
type = ChangeState
value = 230
triggerall = (roundstate = 2) && (var(58))
triggerall = p2bodydist x < 20
triggerall = random < 24
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA, SA

A Special For Ai
[State -1, Cool Ball AI]
type = ChangeState
value = 1010
triggerall = (roundstate = 2) && (var(58))
triggerall = power >= 500
triggerall = p2bodydist X < 70
triggerall = random < 24
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA, SA

Super For Ai
[State -1, Tornado Tempo AI]
type = ChangeState
value = 3250
triggerall = (roundstate = 2) && (var(58) = 1)
triggerall = random < 68
triggerall = statetype != A
triggerall = power >= 3000
triggerall = Life <= 250
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA, SA, HA

I Also Wish To Have My AI Run,Walk  And Block Thanks In Advance!
Re: Winmugen Ai Assistance
#2  November 01, 2011, 11:10:39 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
Have you disabled human commands for the AI yet? If not, and it has access to those, it'll still be able to attack randomly.

Also, I'd recommend reading this : http://elecbyte.com/wiki/index.php/AI