Please login or register.

Login with email, password and session length


Happy Holidays!

Author Topic: M25 AI  (Read 775 times)

Offline yell0w_lantern

  • Cut-rate Ringslinger
  • Hero Member
  • Posts: 2899
M25 AI
« on: August 22, 2015, 08:27:43 PM »

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]