For example, with
SetAIDifficulty(0, 2, "hard")
What is the 0, what is the 2, and what is "hard" compared to "medium," and what other options besides hard and medium are there? And was I observing correctly that having this in my conquest script makes the AI shoot faster at least, or was I just imagining things?
What do the numbers and values in "SetAIDifficulty" mean?
Moderator: Moderators
-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: What do the numbers and values in "SetAIDifficulty" mean?
No you were not dreaming or whatever. It is true. The 0,2 means the difficulty level. You could raise it to 1,0 which would make it a lot harder to win and beat them.
I'm sure that that makes the AI a lot smarter and can shoot easier and generally harder.
I'm sure that that makes the AI a lot smarter and can shoot easier and generally harder.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: What do the numbers and values in "SetAIDifficulty" mean?
http://www.secretsociety.com/forum/down ... F2Docs/AI/
Thats from the web site of one of the game developers who used to help us modders out. All the docs on his site should be required reading after your first map or two.
Thats from the web site of one of the game developers who used to help us modders out. All the docs on his site should be required reading after your first map or two.
- Eggman
- Master Bounty Hunter

- Posts: 1516
- Joined: Mon Jul 16, 2007 1:30 pm
- Projects :: Battlefront Chronicles
- Location: Las Vegas
Re: What do the numbers and values in "SetAIDifficulty" mean?
Agreed. It's all very useful information, especially when it comes to explaining small functions or properties such as this.[RDH]Zerted wrote:http://www.secretsociety.com/forum/down ... F2Docs/AI/
Thats from the web site of one of the game developers who used to help us modders out. All the docs on his site should be required reading after your first map or two.
-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
Re: What do the numbers and values in "SetAIDifficulty" mean?
are 3 and -3 the highest and lowest values, or are there even higher levels of intelligence and stupidity?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: What do the numbers and values in "SetAIDifficulty" mean?
Stock Hoth campaign uses higher modifiers, and your "base value" is 10. I've always assumed either 9 or 10 is the highest value you can use as a modifier.Jaspo wrote:are 3 and -3 the highest and lowest values, or are there even higher levels of intelligence and stupidity?
-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
Re: What do the numbers and values in "SetAIDifficulty" mean?
uh, at least at first the stock hoth campaign is set to
SetAIDifficulty(0, 2, "hard")...does it get set harder later in the script (which I didn't see anywhere), or were you mistaken?
SetAIDifficulty(0, 2, "hard")...does it get set harder later in the script (which I didn't see anywhere), or were you mistaken?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: What do the numbers and values in "SetAIDifficulty" mean?
I was mistaken; not stock Hoth, stock Geonosis (most of the campaigns use SetAIDifficulty):Jaspo wrote:uh, at least at first the stock hoth campaign is set to
SetAIDifficulty(0, 2, "hard")...does it get set harder later in the script (which I didn't see anywhere), or were you mistaken?
Code: Select all
SetAIDifficulty(2, -8, "medium")