This isnt quite a spell but i want some sort of trigger that would lower speed the longer you run and attack speed the longer you fight. I tried connecting that with the time of day but it was kind of weird that they went from slow to very speedy. If it is possible i would like the spell to be reset if the character eatsa food or runes or whatever. That would be sweet.
Umm... if you could explain it more accurately maybe I could help but I didn't really get what you want. Attack where, what, when is it decreased?? I'm a little confused..
Kinda like stamina? well if thats the case i'm not sure how to check for how long the unit was running for with out some big math problem. I know of a way to slow the attack speeds. I'll let you know if i think of anything during school today.
Edit: just thought of somthing i'll post it when i get back.
When a unit is issued an order and the order is equal to "move," add the ordered unit to an unit group. Every X seconds, pick every unit in the unit group and increase the custom value of the unit. I'm sure you can figure it out from here.