I had a player ask if there was a way to write a macro that would deplete or edit an attribute. His example was that he wanted to make an attribute that tracked his arrows and would subtract from that amount when he attacked. I have also had people suggest this same idea for features like Rage, Bardic performance, and other abilities that have limited uses.