I know you can modify the resource costs of units in Scenario editor with Trigger.
For example…
Modify Attribute > Resource Costs > Add +100
However, this always results in it adding 100 to ALL costs. For example, adding 100 to Man-at-arms in the Castle Age will change it to 145Gold 145Food.
I was hoping to be able to change the costs of specific resources individually. Like if I wanted to add 20 Food to a Unit’s costs but leave the Gold cost the same.
look at the unique tech for Malay forced levy. it reduces gold cost only for 2 hand swordsman and increase food cost, copy it on how it’s done and it’ll work. you can choose the resources etc
Trigger effect Change Object Cost is the only way I know of to do individual costs of something.
If you were looking to increment the cost every time Y happens, you could always put a modify resource by variable and increment the variable every time Y happens (Then put +X cost/level in the description).
What I mean by the above, is actually in reference to an Alkhalim video (https://www.youtube.com/watch?v=V9AxwYPhwNk& - How to create Custom Technologies in Age of Empires 2: Definitive Edition) where you would just tack the price on as a side-effect of the “research” being finished.
I know that won’t work for unit creation, my only solution there would be to check if a unit is in an area and teleport it out each time it charges you (Maybe with a proxy barracks that kills the actual unit maker when it dies?), just throwing some ideas your way. Hope they helped
Thanks, I actually realized I was dumb and that you could change Food Cost, Wood Cost, etc individually in Modify Attribute. I looked for it but my eyes skipped right over it lol.