Writing New AIs

Have modding questions or discovered something new? Post here.
Post Reply
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Writing New AIs

Post 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?
ImageImage
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Writing New AIs

Post 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.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests