I really didn't know how to describe this with a fitting title. Anyway, I want the mana cost of an ability to be equal to the players current mana. I want it to update periodically aswell. I came to the solution below. However this is the first time i use unit groups, and the "set mana cost of ability" action. The trigger doesn't seem to be working and i can't wrap my head around why. Does anyone have any idea what i'm doing wrong? Untitled Trigger 014 Events Time - Every 1.00 seconds of game time Conditions Actions Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Magroth the Defender) and do (Actions) Loop - Actions Unit - For Unit (Picked unit), Set mana cost of ability War Stomp, Level: (Level of War Stomp for (Picked unit)) to (Integer((Mana of (Picked unit)))) EDIT: Okay it seems like the value does change, but only when i level up the ability. I was expecing it to update based on the function not the leveling up. any suggestions for alternative methods of achieving this?