Posted by Shado_Onikisu
in Custom AI Trigger Help: Enemynear (Started by Shado_Onikisu July 13, 2012, 10:58:30 pmBoard: M.U.G.E.N Development Help
Anyways lets just cut all that other crap out and just look at this below
TriggerAll=(P2BodyDist X+(EnemyNear(floor(fvar(36))),Vel X*3))=[42,57]
TriggerAll=(P2BodyDist Y+(EnemyNear(floor(fvar(36))),Vel Y*2+EnemyNear(floor(fvar(36))),Const(Movement.YAccel)*2)*(P2StateType=A&&EnemyNear(floor(fvar(36))),Vel Y >=1))>-100
you said " some other value indicating a standard period of time for them dropping"
that is what im really trying to do. Im trying to tell the AI to Attack when his opponent coming down and towards him at a certain speed, distance, and Height. the "(EnemyNear(floor(fvar(36)))" Bullcrap was put in there because i thought it needed to be and i don't know the proper way of typing it all in correctly so that Mugen can read and i don't get "error has occur Parsing Bullshit Bullshit Bullshit". My current AI as of right now will always uses this move when he is going up, down, flying backwards, or going behind him.
Oh yea the reason why This --->Random<=var(59)*100 was turn up so high is because thats how i test my AIs. I let it Spam the Move to see how is he gonna use it and if the X and Y Bodydist are Correct then when im done i toned it down so it won't be too predictable. i didn't think no one would look at that.
This----> var(59)>10 i don't know what it does. I thought it helped with the random. ^^



