Been learning how to do some basic macros the last week or so, trying to make one to list all of the attacks and special attacks that a Monster has in a Pathfinder 1st Game.
Currently I have this, it will list a number of attacks for as many buttons as I put in:
&{template:default} {{name=@{selected|character_name} Actions}} {{ Actions=[@{selected|repeating_npcatk-melee_$0_atkname}](~selected|repeating_npcatk-melee_$0_attack) [@{selected|repeating_npcatk-melee_$1_atkname}](~selected|repeating_npcatk-melee_$1_attack)}}
The problem is that if I have more buttons in this macro than a creature has attacks then it will start printing bits of code into buttons on my chat menu which is not much good. Is there a way to make this detect how many attacks a creature has and print all them in a format similar to this chat menu without printing odd looking boxes?
I have never touched the API but I can start to learn if needed, though macro would be preferred.... just dont think this is possible in macro form.