News:

Rings of Reznor!

Main Menu

M25 AI

Started by yell0w_lantern, August 22, 2015, 08:27:43 PM

Previous topic - Next topic

yell0w_lantern

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.
Yellow Lantern smash!

mac402

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)",