Please login or register.

Login with email, password and session length
 

News:

Happy 15th Birthday, Freedom Force!


Author Topic: M25 AI  (Read 401 times)

Offline yell0w_lantern

  • Cut-rate Ringslinger
  • Hero Member
  • Posts: 2894
M25 AI
« 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.
Yellow Lantern smash!

Offline mac402

  • Jr. Member
  • Posts: 84
Re: M25 AI
« Reply #1 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.

Code: [Select]
"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.

Code: [Select]
"TFleeMelee(pct=100,mindist=50,maxdist=200,time=3,situation='flying',priority=50)",