I solved the task. To search for ability related upgrade, I used the identical ID(ability and upgrade). Then determined the current level of upgrades. Then returns cost of ability from the catalog.
"Terrazine" and "Custom Resource" this preset type "Resource Type".
How to return the cost of upgrading?
I am trying to do so. But I can not deal with the indexes.
Event: Any unit uses ability/effect (moment when need refund)
Condition: Refunding ability level is >0
Action: Set refunding ability level = 0, Modify owner of triggering unit's property(set resources)
Thank you. But it is not what I meant.
I solved the task. To search for ability related upgrade, I used the identical ID(ability and upgrade). Then determined the current level of upgrades. Then returns cost of ability from the catalog.
"Terrazine" and "Custom Resource" this preset type "Resource Type".