You must be logged in to post messages.
Please login or register

Modding Discussions
Moderated by Alexastor, MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.1 reply
Age of Empires III Heaven » Forums » Modding Discussions » Creating an always attacking AI
Bottom
Topic Subject:Creating an always attacking AI
verygoldfish
Skirmisher
posted 11-29-19 01:07 PM EDT (US)         
The idea is dead simple, just make AIs send attack waves after waves and the player is defending. But somehow I can't be able to create this mod.

But here are the heads up: I'm having an unlimited pop mod and I want to use "speed always wins" in the game (meaning this gonna be a who can spam troops faster competition lol).

So with "speed always wins", AI shouldn't really care about the econ as long as they have settler on farms. But the problem is with the unlimited pop, since the population is always 0 (cuz of the mod), AI just spawns troops and turtles up around the barrack and not attacking at all, sometimes they attack me once in a first couple mins and just pretty much sit there for the rest of the game, sometimes sends out a small waves even though it has a massive army.

So...I've taken a look at aimain.xs and to be honest there is a lot of unnecessary stuff for my need, for example the gGoodArmySize or something like that, but I can't really find a line that specifies when the AI choose to attack the player, I've read somewhere that AI only attacks people if its score is higher that player.

I would like to create an attack plan that is base on time interval no matter the population, but since I can't find a single function that determine when to attack, i can't...

Do you know what it is? Help..
AuthorReplies:
murdilator
Skirmisher
posted 11-30-19 03:40 AM EDT (US)     1 / 1       
Hey there,

My Big Daddy AI does alright at attacking, but for scenarios you need triggers. My AI attacks if it has 60+ population troops and sometimes attacks more if you ask it to. You can go and use btOffenseDefense and set to 1.0 or 1.5, but the AI will sometimes then send a few soldiers at a time, not full armies. However, if eco is there, then it will train soldiers.

I don't know if I can actually help much with this, but I hope whatever makes do works.

https://aoe3.heavengames.com/downloads/showfile.php?fileid=4030


Thanks for asking!


murdilator
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames