YesNoOk
avatar

error with ai code  (Read 2185 times)

Started by BurningSoul, July 08, 2019, 04:59:22 pm
Share this topic:
error with ai code
#1  July 08, 2019, 04:59:22 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
This is the code last trigger is the line in screenshot

Code:
[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?
Re: error with ai code
#2  July 08, 2019, 05:00:46 pm
  • *****
  • Formerly known as HyperClawManiac
  • Competitive MUGEN when?
    • UK
    • sites.google.com/view/ragingrowen/home
You should specify what character and what is in line 1419 as shown.
WIP Schedule:
The next Street Fighter All-Stars update
Re: error with ai code
#3  July 08, 2019, 05:08:28 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
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
Last Edit: July 08, 2019, 05:13:01 pm by Mark85
Re: error with ai code
#4  July 08, 2019, 05:28:09 pm
  • ****
    • crepa.neocities.org
You're missing a ")" at the end of the code.
Re: error with ai code
#5  July 08, 2019, 05:30:05 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
so thats what it is.should looked more into it before asking here