rotation "Syntax check: every condition and flag" # A syntax sample, not a rotation for combat: spell IDs are not set (0). # It uses every kind of condition, every slot flag, numbered references and a rule without conditions. buff1 Dot = "A debuff on the target" # aura 1 buff2 Proc = "A buff with stacks" slot1 Manual_Button = "Pressed only by you (M)" slot2 Charges_Spell = "A spell with charges" slot3 Glow_Spell = "A spell whose button glows" slot4 Off_Gcd = "Off the GCD (O)" slot5 Queued_Macro = "Off the GCD in the queue window (OQ)" slot6 Channel_Spell = "Channeled (C)" slot7 Burst_Spell = "A cooldown on the Burst button" slot8 Ground_Spell = "A ground-targeted spell (macro @player)" slot9 Defensive = "A defensive" slot10 Filler = "A filler" resource1 PlayerHP resource2 TargetHP resource3 Energy resource4 Combo_Points use Manual_Button when # 1: no conditions, M slot (skipped) use Defensive when # 2: health and the defensives toggle defensives == 1 and PlayerHP <= 35 use Charges_Spell when # 3: charges Charges_Spell.charges >= 2 # both charges or Charges_Spell.charges == 1 and Charges_Spell.cd <= 20 # the second one is almost back use Glow_Spell when # 4: glow and distance Glow_Spell.glow and target.distance <= 8 use Off_Gcd when # 5: stacks Proc.up and Proc.stacks >= 3 use Queued_Macro when # 6: aura down and the enemy count Proc.down and enemies >= 2 use Channel_Spell when # 7: no glow, ready, movement Glow_Spell.noglow and Channel_Spell.ready and movement == 0 use Burst_Spell when # 8: Burst in Auto mode, or Single mode on 3+ cd == 1 and aoe == 0 and st == 0 and Combo_Points >= 50 and Off_Gcd.oncd or st == 1 and enemies >= 3 and Energy >= 40 use Ground_Spell when # 9: ground toggle and Multiple mode ground_spells == 1 and aoe == 1 use Filler when # 10: DoT refresh by number, target health Dot.down and TargetHP >= 50 or Dot.up and Dot.duration <= 30 # two conditions in one string or Combo_Points < 65 and Energy >= 30 # spaces around operators are optional # End of the syntax sample.