Ok this is what I have. First part is connected to the shooting macro adding 1 to the attribute: Firedarrows for the affected character. The next one is keeping count on how many arrows can be retrieved after the battle. Note that it doesn't add the arrows automatically. It just tells the player how many that could be retrieved. If anyone have a more elegant solution I'm all ears. :D !setattr {{
--silent
--name Wilhelm Kranke
--mod
--Firedarrows|1 }}
&{template:npcaction} {{name=Wilhelm Kranke}} {{rname=Retrieving Arrows}} {{description=[[ceil(@{Wilhelm Kranke|Firedarrows}/2)]] arrows.}}
!setattr {{ --silent --sel --Firedarrows|0 }}