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

User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

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

Postby DinkyDyeAussie » Wed Feb 25, 2015 1:38 am

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...
User avatar
Andrettin
Posts: 433
Joined: Sun Jun 30, 2013 9:58 pm
Location: Vienna, Austria
Contact:

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

Postby Andrettin » Wed Feb 25, 2015 6:38 am

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.
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

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

Postby DinkyDyeAussie » Wed Feb 25, 2015 12:40 pm

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.
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

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

Postby cybermind » Thu Feb 26, 2015 1:48 am

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.
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

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

Postby DinkyDyeAussie » Thu Feb 26, 2015 2:03 am

Is that what is happening with Wargus and Stratagus 2.3?
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

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

Postby cybermind » Thu Feb 26, 2015 2:28 am

Yes, that will be one of the new features. Haven't you looked at new skirmish setup screen?
User avatar
DinkyDyeAussie
Posts: 260
Joined: Fri Feb 10, 2012 10:39 am
Location: Australia

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

Postby DinkyDyeAussie » Thu Feb 26, 2015 9:09 am

Yes I have. I also tried setting the skill on that screen, but it crashes on me...

Who is online

Users browsing this forum: No registered users and 2 guests