Page 1 of 1

What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 4:40 am
by Jaspo
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?

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 6:23 am
by Par3210
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.

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 10:38 am
by [RDH]Zerted
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.

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 11:08 am
by Eggman
[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.
Agreed. It's all very useful information, especially when it comes to explaining small functions or properties such as this.

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 1:51 pm
by Jaspo
are 3 and -3 the highest and lowest values, or are there even higher levels of intelligence and stupidity?

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 3:17 pm
by Maveritchell
Jaspo wrote:are 3 and -3 the highest and lowest values, or are there even higher levels of intelligence and stupidity?
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.

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Fri Jul 03, 2009 6:45 pm
by Jaspo
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?

Re: What do the numbers and values in "SetAIDifficulty" mean?

Posted: Sat Jul 04, 2009 12:14 am
by Maveritchell
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?
I was mistaken; not stock Hoth, stock Geonosis (most of the campaigns use SetAIDifficulty):

Code: Select all

SetAIDifficulty(2, -8, "medium")