Hello, I am trying to make a macro for NPC actions. So far I came up to this: {template:npcfullatk} {{attack=1}} @{damage_flag} @{npc_name_flag}
?{Action?| @{selected|repeating_npcaction_$0_name},0|@{selected|repeating_npcaction_$1_name},1}
{{rname=@{selected|repeating_npcaction_$?{Action?}_name}}
{{r1=[[@{d20}+(@{selected|repeating_npcaction_$?{Action?}_attack_tohit}+0)]]}} @{rtype}+(@{selected|repeating_npcaction_$?{Action?}_attack_tohit}+0)]]}}
{{dmg1=[[@{selected|repeating_npcaction_$?{Action?}_attack_damage}+0]]}}
{{dmg1type=@{selected|repeating_npcaction_$?{Action?}_attack_damagetype}}}
{{dmg2=[[@{selected|repeating_npcaction_$?{Action?}_attack_damage2}+0]]}}
{{dmg2type=@{selected|repeating_npcaction_$?{Action?}_attack_damagetype2}}}
{{crit1=[[@{selected|repeating_npcaction_$?{Action?}_attack_crit}+0]]}}
{{crit2=[[@{selected|repeating_npcaction_$?{Action?}_attack_crit2}+0]]}}
{{description=@{selected|repeating_npcaction_$?{Action?}_show_desc}}} @charname_output} That is just a try, assuming only two actions. It's not working and I cannot figure out what my mistakes are...