Freedom Reborn

Freedom Force Forums => Scripting Forum => Topic started by: yell0w_lantern on August 22, 2015, 08:27:43 PM

Title: M25 AI
Post by: yell0w_lantern on August 22, 2015, 08:27:43 PM
Hi

I can't remember how to do this.

I want to set up Green Goblin so he flies all the time and attacks civilians with his green_goblin potion.
Title: Re: M25 AI
Post by: mac402 on August 24, 2015, 10:39:48 AM
This one makes the character go airborne when at certain distance to the enemy (melee is 50, short range attack distance=100, medium=200, long=300, in sight distance=400). You can also remove any lines with melee attacks or give them really low pct score, so he won't land to attack with melee.

"TFleeMelee(pct=100,movetype='fly',time=0.88,mindist='melee',situation='not flying',priority=100)",

For flying characters I also give them a command to move back when someone is standing beneath them since the AI apparently can't target them with attacks otherwise.

"TFleeMelee(pct=100,mindist=50,maxdist=200,time=3,situation='flying',priority=50)",