Gnome Sequencer Macro Syntax; Grateful for Assistance am I

Merry meet!

I have a problem with my Gnome Sequencer sequences.lua file. I was told that my syntax is wrong. Where to even begin referencing whatever problems there are, ignorant am I.

Sequences['PRetPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 1] Seal of Truth
    ]],
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Exorcism',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Templar's Verdict
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PRetPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 2] Seal of Righteousness
    ]],
    '/cast Exorcism',
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Divine Storm',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Divine Storm
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PPrtPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Crusader Strike',	
	'/castsequence Judgment,Judgment,Judgment',
	'/cast Avenger's Shield',
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast [@mouseover,target]Execution Sentence
/cast [@player]Sacred Shield
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/use 13
/use 14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['PPrtPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Hammer of the Righteous',	
	'/castsequence Judgment,Judgment,Judgment,Eternal Flame',
	'/cast Avenger's Shield',
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast [@mouseover,target]Execution Sentence
/cast Shield of the Righteous
/cast divine protection
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Thank you for sharing your time and Force; May you eternally ask the Goddess to alight your path.

Im not a pro at this or anything , but from what i could see from when i c/ped your macro into my lua file , the only thing that stood out to me was where you had :

'/cast Avenger's Shield'

it should read

"/cast Avenger's Shield",

which i changed in the code below , other than that i really didnt see anything that popped out at me , but then again im not a pro or anything , so please let me know if this worked , if not perhaps someone else on this amazing site can point you in the right direction.

Sequences['PRetPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 1] Seal of Truth
    ]],
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Exorcism',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Templar's Verdict
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PRetPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 2] Seal of Righteousness
    ]],
    '/cast Exorcism',
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Divine Storm',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Divine Storm
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PPrtPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Crusader Strike',	
	'/castsequence Judgment, Judgment, Judgment',
	"/cast Avenger's Shield",
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast [@mouseover,target]Execution Sentence
/cast [@player]Sacred Shield
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/use 13
/use 14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['PPrtPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Hammer of the Righteous',	
	'/castsequence Judgment, Judgment, Judgment, Eternal Flame',
	"/cast Avenger's Shield",
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast [@mouseover,target]Execution Sentence
/cast Shield of the Righteous
/cast divine protection
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Well met!

Awesome! That fixed it…

Maybe another could illuminate why Gnome Sequencer wants that specifically? I hope… So in the future I know what to apply it too.

Is it because it is an ability greater than a minute?

Thank you for sharing your time and Force; May you eternally ask the Goddess to alight your path.

Sincerely,

Brent

From what i can tell is the

<code>&#039;/cast Hammer of Wrath&#039;,</code>

is for normal words , like Hammer of Wrath

where as the
“/cast Avenger’s Shield”,
is used for words that are in some shape or form possesive, like Avenger’s Shield where as the word has the 's in them ,again i could be wrong , but thats what i have noticed

Take a look here also…

https://wowlazymacros.com/forums/topic/gnome-sequencer-for-idiots/

Simple reason is in programming languages you often can’t have things like single quotes nested within (single quotes winthin single quotes or double quotes within double quotes) a line of code without breaking things.

So…

‘/cast Avenger’s Shield’

Will read in the addon like this

‘/cast Avenger’ then read s Shield’

It will then freak out because it doesn’t see another single quote there after that S

The author recommends double brackets [[ and ]] instead of quotes to prevent this.

You can also just remember to use double quotes " whenever you have an ability, spell, or items with an apostrophe which to the addon is just a single quote…

Hope that easily answers this issue.