Page 1 of 1

Writing New AIs

Posted: Wed Jul 19, 2017 2:29 pm
by Secg
Greetings to all after long absence!

I am writing harder Great Battles' AIs for my Heroic Mod.

My successes so far: that I completely prevented AIs in GB from rebuilding their bases by removing all codes & .cfg files pertaining to bulldozers, dumptrucks, & buildings (so that GB missions would be more like campaign's missions).

However, can anyone help me read these lines, for examples:

Add("personality.default.offense.infantry", 1, 50, 0);
// start cranking out some defensive vehicles and a barracks upgrade
Add("personality.default.defense.vehicles", 2, 80, 0);
// Now that we've got a barracks2, lets crank out an attack force
Add("personality.default.offense.advinfantry", 1, 0, 0);
// vehicles are used in attacks too, y'know!
Add("personality.default.offense.vehicles", 2, 80, 0);

I interpet the 2nd number to denote priority when producing units:

the lower the number's value, the higher the priority;
in this case, AI will build offense.infantry 1st, then randomly choose between defense.vehicles/i] and offense.vehicles

However, what do the 1st & 3rd numbers mean?

Re: Writing New AIs

Posted: Wed Jul 26, 2017 5:49 pm
by TommyCD1
No idea myself. This is also the case for Dark Reign 2 where they're all 2's and 0's. Maybe when I get my computer back I can mess around with them and experiment for you.