Jump to content


Photo

SkirmishAI ArmyMemberDefinition Percentage


Best Answer Miraak5, 05 November 2020 - 11:11 AM

This is more like a priority to build each units than a real limit in their army,
their only limit are the CP, adding a new unit won't cause problems

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 Agandaur2404

Agandaur2404
  • Members
  • 25 posts

Posted 05 November 2020 - 07:55 AM

Hi, there's one thing that's been bothering me for some time. It's those ArmyMemberDefinitions in skirmishaidata.ini, something like this:

 

ArmyMemberDefinition GondorFighterHorde_Member
Unit = GondorFighterHorde ;infantry
PercentageOfArmyPhase1 = 45.0 ;;,;; 40.0
PercentageOfArmyPhase2 = 35.0 ;,; 40.0 ;;,;; 20.0 ;;,;; 40.0
PercentageOfArmyPhase3 = 20.0 ;;,;; 30.0
End

 

 

You see, there are those percentages of units in army in certain phases of the game. But when I summed it up with other Men unit percentages of phase 1, I got 187, not 100. It's similar with other factions and other phases. So, can someone explain it to me? I thought percentages work in different way.

 

And, most importantly, if I wanted to add a new unit, say RohanFighterHorde (just an example) to Men SkirmishAi, do I have to subtract some percentages from other hordes in order to keep this 187? Or can I just add some numbers without modifying the other units' parameters and It'll work just as well?

 

Thanks in advance for some explanation here, I wish you all good day  :smile2ap:

 



#2 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 05 November 2020 - 11:11 AM   Best Answer

This is more like a priority to build each units than a real limit in their army,
their only limit are the CP, adding a new unit won't cause problems


He was the first...


#3 Agandaur2404

Agandaur2404
  • Members
  • 25 posts

Posted 05 November 2020 - 11:17 AM

This is more like a priority to build each units than a real limit in their army,
their only limit are the CP, adding a new unit won't cause problems

 

So it's more like the higher number the unit has, the more likely the AI will produce it, rather than those numbers being real percentages of an army?



#4 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 06 November 2020 - 01:03 PM

Yes


He was the first...


#5 Agandaur2404

Agandaur2404
  • Members
  • 25 posts

Posted 06 November 2020 - 03:47 PM

Yes

 

Thank you, this explained a lot to me.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users