Just put actions in priority order, noting that only one always-available-GCD can be in the macro. It's okay to put conditional GCDs before it (Straight Shot will be restricted like Refulgent Arrow in ShB).
The general order is:- Conditional/restricted GCDs
- Always-available GCDs
- oGCDs
- /micon
The final line (/micon) is just which icon to assign to the macro.
Multi-word action names need to be in quotes with exact capitalization matching the action tooltip. Alternatively (and what I recommend, to reduce errors and increase composition speed) you can auto-translate action names. If using auto-translate phrases, you do not need quotes.
For example:
Code:
/ac Barrage
/ac "Straight Shot"
/ac "Heavy Shot"
/ac "Empyreal Arrow"
/ac Bloodletter
/ac Sidewinder
/micon "Heavy Shot"
Summary: If available, Barrage then Straight Shot / Refulgent Arrow. Otherwise, if pressed when not cooling down, Heavy Shot. If pressed during cool down, will use an available oGCD attack.
Code:
/ac "Quick Nock"
/ac "Rain of Death"
/ac "Shadow Bite"
/micon "Quick Nock"
Summary: if pressed when not cooling down, will Quick Nock. If pressed during cool down, will use an available oGCD AoE attack. Maybe add Apex Arrow? Depending on whether you would rather save it or just use it on cooldown.
Code:
/ac "The Wanderer's Minuet"
/ac "Mage's Ballad"
/ac "Army's Paeon"
/micon "Mage's Ballad"
Summary: sing the next available song. You might also put a Pitch Perfect line at the beginning, but you risk singing the next song when you actually meant to spend your stacks. If you do include Pitch Perfect, be careful you don't press the Sing button while animation locked so you don't switch songs prematurely.
There isn't a (simple) way to make a single button that does an entire rotation, but this sort of macro will use an available action in some priority order every time you press it. Just remember the limit of only one always-available GCD action.
Not all actions will fit logically into a single macro, but if you string your actions together right, this should reduce the number of buttons you need by half-ish.
Aside: a note about your group rotation. Rather than using Stormbite and Caustic Bite on a target then moving on to the next, it's more effective to use only Stormbite and then switch targets. This does overall slightly more damage and also keeps the mobs health more equal. The closer their health stays together, the more damage you do as a DoT+AoE job.