Page 1 of 1

How do you make A.I. easier/harder?

Posted: Wed Feb 25, 2015 1:38 am
by DinkyDyeAussie
Just wondering how I could go about making the A.I in wargus a bit easier in the campaign and skirmish modes. It's still a bit fast, BUT I will say that it has improved alot in the missions that Cybermind has been working on the A.I for - like mission 4 of the tides human campaign, in that the transporters actually do their job properly.

So, in an effort to make things easier, would I add more cycles to the wait times? I have no clue about A.I lua programming, but would really like to learn more about it. Please help me to better understand it.


By the way if this is in the wrong forum feel free to move it Kyran or other Admin...

Re: How do you make A.I. easier/harder?

Posted: Wed Feb 25, 2015 6:38 am
by Andrettin
DinkyDyeAussie wrote:Just wondering how I could go about making the A.I in wargus a bit easier in the campaign and skirmish modes. It's still a bit fast, BUT I will say that it has improved alot in the missions that Cybermind has been working on the A.I for - like mission 4 of the tides human campaign, in that the transporters actually do their job properly.

So, in an effort to make things easier, would I add more cycles to the wait times? I have no clue about A.I lua programming, but would really like to learn more about it. Please help me to better understand it.


By the way if this is in the wrong forum feel free to move it Kyran or other Admin...
Adding some wait time should work to reduce the difficulty, yes.

Re: How do you make A.I. easier/harder?

Posted: Wed Feb 25, 2015 12:40 pm
by DinkyDyeAussie
I ended up tweaking the A.I file for mission 5 of the human campaign. I changed the "AiSleep" values in "local_hum_05_funcs".

Instead of:

Code: Select all

function() return AiSleep(6000) end,
I put:

Code: Select all

function() return AiSleep(16000) end,
Basically I added 10000 sleep to each AiSleep function inside of the local_hum_05_funcs, and it made this level in particalar, very playable, but still challenging enough. So that's a win in my books :) Now I just need to play through the rest of the Campaigns that have custom A.I scripts in each level file.

Re: How do you make A.I. easier/harder?

Posted: Thu Feb 26, 2015 1:48 am
by cybermind
No need to do that, you will get Difficulty setting when starting the campaign, which will affect the number of cycles in each AiSleep() call.

Re: How do you make A.I. easier/harder?

Posted: Thu Feb 26, 2015 2:03 am
by DinkyDyeAussie
Is that what is happening with Wargus and Stratagus 2.3?

Re: How do you make A.I. easier/harder?

Posted: Thu Feb 26, 2015 2:28 am
by cybermind
Yes, that will be one of the new features. Haven't you looked at new skirmish setup screen?

Re: How do you make A.I. easier/harder?

Posted: Thu Feb 26, 2015 9:09 am
by DinkyDyeAussie
Yes I have. I also tried setting the skill on that screen, but it crashes on me...