Jump to content


Photo

Better AI

ai rotwk bfme better gameplay mine farm money economy attack

  • Please log in to reply
8 replies to this topic

#1 grunshac

grunshac
  • Members
  • 149 posts

Posted 20 February 2015 - 07:41 PM

Hi, i want to know how to make the ai to attack my units first then the buildings not to go and attack my money farms and ignore my units



#2 Xelenos

Xelenos
  • Banned
  • 66 posts
  • Location:In front of my computer
  • Projects:Bring people on the server
  •  God of N00b

Posted 20 February 2015 - 07:47 PM

Did you ever tryed 1.08 Brutal ?


1429631591-post-551-1229971820.jpg
"Certainly award of the noob..."


#3 grunshac

grunshac
  • Members
  • 149 posts

Posted 20 February 2015 - 08:09 PM

its for rotwk or for bfme 2 ? i use rotwk.



#4 Xelenos

Xelenos
  • Banned
  • 66 posts
  • Location:In front of my computer
  • Projects:Bring people on the server
  •  God of N00b

Posted 20 February 2015 - 08:12 PM

bfme2 but it's the same did you ever tryed 2.02 ?


1429631591-post-551-1229971820.jpg
"Certainly award of the noob..."


#5 grunshac

grunshac
  • Members
  • 149 posts

Posted 20 February 2015 - 08:14 PM

no. do you know how to change the ai manualy ?



#6 Xelenos

Xelenos
  • Banned
  • 66 posts
  • Location:In front of my computer
  • Projects:Bring people on the server
  •  God of N00b

Posted 20 February 2015 - 08:19 PM

nop yu better go to gr people on gr made the cw patch wich ia very improved you can ask to the bfme2 admin Val he will tell you how if he is not busy with 1.09patch


1429631591-post-551-1229971820.jpg
"Certainly award of the noob..."


#7 Mathijs

Mathijs

    Post-modern Shaman

  • Network Leaders
  • 13,706 posts
  • Projects:Age of the Ring
  • Division:Revora
  • Job:Leader

Posted 20 February 2015 - 08:34 PM

Hi, i want to know how to make the ai to attack my units first then the buildings not to go and attack my money farms and ignore my units

Hi grunshac,

 

There are a number of in-depth AI tutorials on our website: 

http://www.the3rdage...tem-235?addview

http://www.the3rdage...tem-350?addview

http://www.the3rdage...tem-122?addview

and more, I think.

 

Further tutorials on setting up your mod can also be found there. If you run into trouble, let us know and we will help.


No fuel left for the pilgrims


#8 grunshac

grunshac
  • Members
  • 149 posts

Posted 20 February 2015 - 08:43 PM

thks a lot Mathijs i will read these threats and see if something helps me



#9 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,507 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 04 May 2020 - 01:13 AM

Hi, i want to know how to make the ai to attack my units first then the buildings not to go and attack my money farms and ignore my units

 

I know it’s a very old post , but did anyone figure this out ?

This stuff below is a tutorial on 3rd age , but modifying to get INFANTRY 300 and STRUCTURES 0.00 does nothing 

AI still likes to go  after economy building first , which is why I kinda hate playing BFME2 solo against AI , BFME1 was more realistic 

An enemy battalion ignores my battalion , and heroes , and dies trying to get my farm type building down 

 

 

Unit attack priorities

Ini.big -> data\ini\default\skirmishaidata.ini
First thing we can change here are attack priorities. This tells computer what will unit attack most likely. Code looks like this ( it is not complete list just part):
CombatChainDefinition CavalryCombatChain Unit = CAVALRY
TargetTypes = STRUCTURE PIKEMAN CAVALRY ARCHER INFANTRY
TargetPriorityModifiers = 50.0 0.0 50.0 150.0 50.0 End
So basicly this tells computer that all units that are cavalry will attack most likely ARCHERS, then STRUCTURES, CAVALRY or INFRANTRY and if no other target is around the PIKEMAN.
TargetTypes = STRUCTURE PIKEMAN CAVALRY ARCHER INFANTRY
This part is hardcoded so make no changes to that.
TargetPriorityModifiers = 50.0 0.0 50.0 150.0 50.0
Here you can give numbers in the sameorder as type sof target in TargetTypes. The higher numer the higher is priority to attack this type of units. 0.0 means that AI will attack this target only when no other is around. And negative number means that it will not attack that type of targets at all.






Also tagged with one or more of these keywords: ai, rotwk, bfme, better, gameplay, mine, farm, money, economy, attack

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users