What is needed to add the Monaspa ability to another unit?

I want to make it so that towers (in Return of Rome) gain extra max arrows from nearby farms.

As you can see by the title, I’m thinking it can be accomplished with the monaspa ability. But because I don’t have any experience with the ability and because I’m pretty sure it’ll be difficult to get it to work I’m trying to just copy the ability as unchanged as I can so that I can at least get something to work. But I can’t even get a direct copy of the monaspa ability to work.

Why? Is it because I’m trying it with Return of Rome? Does it not work on buildings? Am I forgetting some hidden component? Do I have the completely wrong idea how it works? is there a hardcoded element that prevents it from working how I want?

Any help or knowledge would be appreciated.

Unfortunately, the Monaspa ability does not directly affect buildings like towers. It specifically boosts the Monaspa’s attack based on nearby Monaspas or Knights. Since towers are not part of this calculation, you won’t see any additional arrows from nearby farms due to the Monaspa ability. If you want towers to gain extra max arrows from nearby farms, you’ll need to explore other methods. Consider looking into modding or custom scenarios to achieve this specific behavior. Modding allows you to modify game mechanics and abilities beyond what’s available in the standard game.

So, I am already making a mod that edits the .dat file. I just would like more information about task 155 (the thing that monaspas have, that gives them their special ability)

Did you set combat ability to 34? (see 63. in Attributes - AoE2DE UGC Guide)
Currently task 155 only works for attack (9), reload time (10), work rate (13), regeneration rate (109), movement speed (5), see https://support.ageofempires.com/hc/en-us/articles/15607286588948-Return-of-Rome-Mod-Updates (search for 155).

So you cannot use this mechanic for your idea directly. Not sure about RoR, but farms increasing the attack and rate of fire of a tower should be possible.

Okay, so I got part of it working, but I seem to only get it to where a unit will count the number of effected units (e.g. stacking how much attack a tower gains by how many towers are present) instead of counting the number units doing the effecting like I want (e.g. stacking how much attack a tower gains by how many farms are nearby.)

Btw combat ability should be set to 32, not 34.

So you added one task to the tower: 155 on unit [FarmID], search wait time = 9, unused flag = 2?
My impression is that if you use search wait time = 9 (attack) then the aura works inversely: technically, the Monaspa has an aura that effects knights and other Monaspa. Then he gets bonus damage based on the units affected.
For the other attributes (like reload time, speed, regeneration, work rate) the unit having task 155 gives to effect to the other unit ID.
Is that correct?

Btw I used 34=32+2, the extra 2 makes a building resistant to Leitis piercing, which is probably not relevant for your case.

Ok, I did some testing (not in RoR though).

  • you need to copy an entire unit with aura effect (Monaspa, Caravanserei, …) in AGE and then chage everything to fit the tower (all the graphics etc.). I had a similar issue before. There seems to be some hidden property you cannot edit that is necessary to make the aura work. Maybe they did it to lock some effects behind DLC.
  • You actually need combat ability 96 instead of 32 (or 98 instead of 34 for the Leitis resistance). This inverts the aura such that the tower itself gets the effect and not the farms.
  • Choosing the attack attribute as effect (Search wait time = 9) only increases the damage of melee attacks. So you can give your tower 0 melee attack in addtition to his usual pierce, then it increses from the aura. This has some unwanted effects of course. Or did you get it somehow to word with pierce attack?

Hope this helps. If you have any other finindings please let me know.

You actually need combat ability 96…

Ah! I only tried 32 and 64, apparently.

you need to copy an entire unit with aura effect…

It appears that is not necessary. But then I’m not using AGE to edit the “.dat”

Or did you get it somehow to work with pierce attack?

Yes, I did get it to give more pierce attack, I think. I had it on a tower, and the GUI showed +1 etc. and it appeared to be dealing more damage.

I am going to switch over attack rate just because it seems to be more appropriate for what I’m trying to do.