Jump to content


Photo

Making the AI choose subfactions


  • Please log in to reply
1 reply to this topic

#1 Dz_Badmen

Dz_Badmen
  • Members
  • 25 posts
  • Location:my where abouts are unkown but im here
  • Projects:rise of the damn shadows

Posted 24 August 2022 - 09:00 AM

I have created a sub-faction in my elven barracks between Rivendell, mirkwood, and lorien, everything works find except for one thing the ai automatically choose lorien subfaction on default everytime, if you guys can help me out i'd be really thankful.

#2 JUS_SAURON

JUS_SAURON

    El Shaddai

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

Posted 13 March 2023 - 01:19 PM

Most AI are not random coding , that is , the set path cannot be diverted 

The best advice , ( unless there are scripts which allow for Randon number generation ) , is the set Maps which use the specific faction

eg. map Rivendale give AI the Upgrade_Rivendale which allows for Rivendale faction 

 

perhaps there are script randomness , such as choose a number from 1 to 3 , if 2 then give upgrade_Rivendale , but I don’t know much scripting in WB , and I don’t have PC to check 


Edited by JUS_SAURON, 13 March 2023 - 01:19 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users