Designing basic AIs for a custom campaign? (AOE2DE)

Hi all! :) I tried looking up a forum or something where I could figure out the fundamentals, but my google skills have failed me, only returning dead forums for now, and some lengthy & unsearchable guides that answer a lot of advanced questions way beyond the scope of what I'm trying to do.

My scenarios' AIs don't function properly and I need help figuring out how to do some basic scripting. I understand that because I make tech, population & unit restrictions, what they do results in a functioning looking city but without enough soldiers and no aggression whatsoever. I think it's because the AI doesn't understand its pop limit and is waiting until it has trained a certain number of specific units before doing anything, which it can't due to the above restrictions.

What I intend to do with the campaign scenarios isn't that complicated, as I have no current plans to change the AI as a scenario proceeds, neither do I intend to make it anything but fundamentally functioning. In each planned campaign, the AIs begin with established bases and should just work as a narrower version of the skirmish AI. It doesn't have to be stellar, I'm not aiming to create the new Barbarian. I just want it able to build and fight with tech & pop restrictions.

So basically what I want to script is the AI to:

- Cap villager training & targeted military numbers to a certain amount (So I can make the AI function with a smaller max pop)

- Only train & use certain units

- Simply be able to attack with the above

I know there's an AI design document somewhere in the games folders, as well as campaign mission files where I can look over how they have coded campaign AI. But I don't even know where either of these are.

So basically, my initial questions:

- Where is the AI scripting guide stored?

- Where are the AI files stored, skirmish and campaign?

- Do you know any resources that are useful here? Maybe a(n active) community where I can ask for specifics when I script this thing wrongly?

Thanks prematurely for anyone wanting to help!

submitted by /u/AngsD
[link] [comments]

from newest submissions : aoe2 https://ift.tt/349Tsaa
No comments

No comments :

Post a Comment