Id recommend implementing a basic Lua engine into it, or build some sort of addon frontend. The problem (it seems) being you can't control when you want to use abilities.
Maybe add something like:
If TargetHealthPercent < 20 then Execute end
Example: Use Exorcism if you have Art of War procd. I pretty much retrofitted the addon PriorityQueue for my needs:
[Lua] Paladin.lua - Pastebin.com
Code:
PriorityQueue.priorityTable.name["exorcism_aow"] = L["Exorcism if Art of War"]
PriorityQueue.priorityTable.icon["exorcism_aow"] = C["Exorcism Icon"]
PriorityQueue.priorityTable.spid["exorcism_aow"] = 879
PriorityQueue.priorityTable.actn["exorcism_aow"] = "/startattack" --ALSO PERFORM ACTION
PriorityQueue.priorityTable.test["exorcism_aow"] =
function ()
local sAoW = UnitBuff("player", "The Art of War")
if sAoW ~= nil then
return PriorityQueue:SpellAvailable(C["Exorcism"])
end
end