Hi everyone. I have no scripting experience. There, I said it.
I am, however trying to learn and decided to start with lua.
I play runefencer and geomancer in 11, and decided my first and second attempts at addons would be for those.
I have a working Rune fencer addon called RuneMeNow.
What it does is let's you select what you're "RuneMeNow" rune of choice is, along with a matching bar element spell
Then, you only need to macro 2 commands on your macrobar, a rune one, and a bar one.(instead of 8 rune and 6 bar element ones)
It may not be 100% needed , but it was an idea, and an excuse to start lua. My question is this. The code itself, seems quite long for such a simple action, (so many if statements).
Does anyone have an idea of how to shrink this down? and maybe an explanation of how for a noob scripter so that I can understand it, and implement it in the GeoMeNow i'm in the process of creating? because so far... the geo one has around 450 lines of code and almost all of it is if statements.
Thank you in advance. Attached is the RuneMeNow code. Use if you want, and thanks for any help.