Please login or register.

Login with email, password and session length
 

News:

Celebrate Freedom!


Author Topic: AI Questions  (Read 504 times)

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14930
    • The Greylands
AI Questions
« on: May 05, 2012, 05:09:38 PM »
So, I've got a new question, or rather, a few new questions.

What do the characters AIs need to be set at in FFEdit to get them to use their M25 custom AIs properly?

Secondly, do you need to do anything special to get the characters to use their FF Active Defenses?  The guide says you need this:

Quote
      "TActiveDefenseFFSelf(pct=100, time=3, energy=33, mindist=0, maxdist=400, type='enemy', subtype='none', situation='not active_defense', role='none', priority='medium')",

But I'm not experienced enough to know for sure if there is anything there that I need to tweak.  Whatever the case, neither Magneto nor the Invisible Woman, my test cases, are using their shields, despite them being a the top of their tactic lists.

Quote
['bmagneto',
   ["target enemy",
      'weakness_ranged_crushing',
      'not staticked',
      'weakness_area_electrical',
      'weakness_ranged_electrical',
      'weakness_direct_crushing',
      'weakness_melee_crushing',
   ],
   ["timer", 'auto',
      "TFleeMelee(mindist='medium',movetype='fly',time=0.87)",
      'TFleeMelee(type="any",subtype="emitting_damage",time=0.87)',
      "TActiveDefenseFFSelf(pct=100, time=3, energy=33, mindist=0, maxdist=400, type='enemy', subtype='none', situation='not active_defense', role='none', priority='medium')",
      'TTK()',
      "TArea('bmagneto em pulse',time=2.75,situation='swarmed')",
      "TRangedCone('bmagneto magnetic wave',time=2.79)",
      "TDirect('bmagneto magnetic crush',time=2.36)",
      "TRanged('bmagneto em beam',time=2.79)",
      'TMagneticCustom()',
      'TMagneticRepel()',
      'TMagneticAttract()',
      "TRanged('bmagneto magnetic repulsion',time=1.27)",
      "TRanged('bmagneto magnetize',time=2.4)",
      "TDirect('bmagneto magnetic hold',time=2.23)",
      "TMelee('bmagneto punch',time=1.39)",
      "TDirect('bmagneto magnetic shove',time=2.36)",
      'TLand()',
      'TMoveTo(mindist=\'long\' ,subtype="not emitting_damage",time=0.87)',
   ],
],


Original post:
Spoiler (click to show/hide)
« Last Edit: May 13, 2018, 12:50:42 AM by BentonGrey »
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline GogglesPizanno

  • Winner of the Indianapolisrock 500
  • Hero Member
  • Posts: 1939
  • I...need another cocktail
    • GPWarehouse
Re: AI Questions
« Reply #1 on: May 05, 2012, 05:28:48 PM »
Im pretty sure that any of the move tactics can use the parameter movetype.

ie. movetype="fly"

The manual is not explicit and doesn't detail this parameter, but if you look at the various examples it looks like the parameters you can use are 'fly', 'move', and 'none' You might try playing around with one of these values to see if it helps.

example:
Code: [Select]
'TFleeMelee(time=0.88,situation="swarmed",movetype="fly")',

'TMoveTo(mindist="medium",maxdist="wholemap",time=0.88,movetype="move")',


** EDIT **
I just briefly looked at the python code and it looks like if you specify "move" they should run on the ground. If you specify "none" (which is the default if you dont explicitly set anything) it does various ability and power checks to see if they have any flight capabilities (flier, hover etc...) and if so use them. 
« Last Edit: May 05, 2012, 05:42:22 PM by GogglesPizanno »

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14930
    • The Greylands
Re: AI Questions
« Reply #2 on: May 05, 2012, 08:35:18 PM »
Thanks Goggles!  I think I can work with that.  I'm going to do some testing, but I bet that will do it.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14930
    • The Greylands
Re: AI Questions
« Reply #3 on: May 13, 2018, 12:37:12 AM »
So, I've got a new question, or rather, a few new questions.

What do the characters AIs need to be set at in FFEdit to get them to use their M25 custom AIs properly?

Secondly, do you need to do anything special to get the characters to use their FF Active Defenses?  The guide says you need this:

Quote
      "TActiveDefenseFFSelf(pct=100, time=3, energy=33, mindist=0, maxdist=400, type='enemy', subtype='none', situation='not active_defense', role='none', priority='medium')",

But I'm not experienced enough to know for sure if there is anything there that I need to tweak.  Whatever the case, neither Magneto nor the Invisible Woman, my test cases, are using their shields, despite them being a the top of their tactic lists.

Quote
['bmagneto',
   ["target enemy",
      'weakness_ranged_crushing',
      'not staticked',
      'weakness_area_electrical',
      'weakness_ranged_electrical',
      'weakness_direct_crushing',
      'weakness_melee_crushing',
   ],
   ["timer", 'auto',
      "TFleeMelee(mindist='medium',movetype='fly',time=0.87)",
      'TFleeMelee(type="any",subtype="emitting_damage",time=0.87)',
      "TActiveDefenseFFSelf(pct=100, time=3, energy=33, mindist=0, maxdist=400, type='enemy', subtype='none', situation='not active_defense', role='none', priority='medium')",
      'TTK()',
      "TArea('bmagneto em pulse',time=2.75,situation='swarmed')",
      "TRangedCone('bmagneto magnetic wave',time=2.79)",
      "TDirect('bmagneto magnetic crush',time=2.36)",
      "TRanged('bmagneto em beam',time=2.79)",
      'TMagneticCustom()',
      'TMagneticRepel()',
      'TMagneticAttract()',
      "TRanged('bmagneto magnetic repulsion',time=1.27)",
      "TRanged('bmagneto magnetize',time=2.4)",
      "TDirect('bmagneto magnetic hold',time=2.23)",
      "TMelee('bmagneto punch',time=1.39)",
      "TDirect('bmagneto magnetic shove',time=2.36)",
      'TLand()',
      'TMoveTo(mindist=\'long\' ,subtype="not emitting_damage",time=0.87)',
   ],
],
« Last Edit: May 13, 2018, 12:50:08 AM by BentonGrey »
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline spydermann93

  • Hero Member
  • Posts: 3980
Re: AI Questions
« Reply #4 on: May 13, 2018, 03:38:32 AM »
For characters not using their FF Active Defenses, look here: http://freedomreborn.net/forums/index.php?topic=56703.msg812770#msg812770

The conversation starts a page or two back and goes on for a bit longer, but that's essentially what I found while researching the topic.

Give that thread a look and if you have any more questions, I'll try and help you out as best as I can.

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14930
    • The Greylands
Re: AI Questions
« Reply #5 on: May 13, 2018, 05:39:39 PM »
Thanks Spyder!  I made the changes outlined there, and Mags used his shield...once!  Haha, well, that's progress.  The Invisible Woman still doesn't seem to want to use hers.  Women, always causing problems!  :P

What about the AI setting in the Character tab of FFEdit?  Does it need to be on CZeroCost?  That's where Mags and Sue are at the moment.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline spydermann93

  • Hero Member
  • Posts: 3980
Re: AI Questions
« Reply #6 on: May 14, 2018, 01:34:02 AM »
This might not be the case with Magneto, but he does have some tactics that don't have a time to them. I found that attacks with lower times get prioritized over attacks with higher times. I am not sure what the default times for those tactics are, but my guess is that they are pretty low, so his tactics like Magnetic Repel and Attract are prioritized over other actions.

For Invisible Woman, try making her priority for her Active Defense "critical" or "high" and remove the energy cost from it.