News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

error with ai code

Started by BurningSoul, July 08, 2019, 04:59:22 PM

Previous topic - Next topic

BurningSoul

This is the code last trigger is the line in screenshot

[State -1, Standing Medium Punch AI]
type = ChangeState
value = 210
triggerall = AILevel && numenemy && roundstate=2 && StateType != A && P2statetype != A && P2statetype != C
triggerall = (p2bodydist x = [0, 50]) && p2statetype != L && !(enemynear, hitfall)
trigger1 = (ctrl || (StateNo = [100,101])) && Random < (25 * (AILevel ** 2 / 64.0))
trigger2 = (StateNo = [200,499]) && !AnimTime && ctrl
trigger2 = MoveHit && (EnemyNear, GetHitVar(HitTime) >= 3) && Random < (250 * (AILevel ** 2 / 64.0)


the error,not sure why its like this,this seems to work on other characters fine?

RagingRowen

You should specify what character and what is in line 1419 as shown.
WIP Schedule:
CvS Overdrive - Build 1

BurningSoul

#2
really? you read the code above? line 1419 is last trigger
its kyo by falcon rapper
weird thing is that other moves have same code but only this one causes problem,so when I uncomment last trigger it works,weird huh

VictorCYBR

You're missing a ")" at the end of the code.

BurningSoul

so thats what it is.should looked more into it before asking here