Can you Add Abilities to settlers or make hero/military units able gather resources?

I am trying to figure out if it is possible to give settlers the abilities a hero has/ give a hero/military unit the ability to gather resources.
I have created a custom power(the ice cream truck spawn ability), referenced it in the abilities to the new settler unit. added the line for commands, with row 11 column 0 and I cannot get it to work and does not appear in their Hud.
On the flip side I can have my custom explorer get the ability, Explorers already have the line referring to abilities.
I cannot seem to make him a spawn able unit(ie from town center) nor have the ability like settlers to harvest resources.
My objective is mainly to create a “settler” Unit that can spawn other “settlers”. I came across the ice cream ability and found it spawns settlers so i would like to resort to this to spawn method, rather than have 2 different settler proto units, while identical. I would be referencing them differently because of cost(one spawns at the town center and one on the first settler). I am making a zombie settler to create more zombies periodically and the build system makes it more complicated that with the ability added to my settler.
Any guidance on this would be apricated. I have been racking my brain out for about a week on my own and run i cant tell you how many tests.

The easiest way would be to enable training normally with protomods. Just look at any training building to see how that works.

If you want to do it the ice cream truck way you need to deal with abilitymods.

This would require changing their tactics file.

1 Like

Is there anything that prevents Settlers from having an ability/power? I have added abilities and powers to my unit, I just don’t see it appearing in the menu where they build.
I tested the same on both explorer and town center and got them both to have the ability

Is it just a regular settler? The build menu may be full so it’s pushing it out of the menu.

Maybe also check the tactics file of one of the units where it works to see if anything there needs to be enabled for abilities.

I am new to the tactics file. Data/tactics/settler.tactics and settler.tactics.xmb.
I have tired to convert with the resource manager but nothing happens going from xmb to xml
i can get a json file to be converted.
how would i create a tacticsmod file?
Thanks for the input

I’d first take a look at whatever tactics the explorer is using to see if there’s anything referencing abilities. If there is something there you need to add to settlers it would be tactics\settler.mods.tactics

Ok did a different test. So i removed all of the train lines of my settler and i got it to work. So it must be something to do with the amount of spaces.

I am still interested to see if I cannot make a military unit gather resources. I am assuming that I will still need to edit/modify the tactics file then?

That’s definitely a space issue then. The buildings were forcing the abilities down to the next line that’s not visible in the menu.

Yes, you’ll need to add gather actions to the tactics file of the unit you want to be able to gather.

Alrighty then, That will be my next attempt then.
Any where to get started? tutorials videos ect?

Just follow the naming guidelines here:

https://support.ageofempires.com/hc/en-us/articles/360062106732-Additive-Data-Mods

You should be able to copy the various actions you need from the settler tactics to the explorer one. Note, there’s a line the bottom that you’ll also have to add the actions too which is something like this:

<tactic> (insert actions here) </tactic>

If you’re having trouble converting it you could just copy and paste the code from the resource manager to Notepad++ or whatever you’re using.