GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

8M Downloads

Request for toggles

jamesbearclaw opened this issue · 8 comments

commented

I play a hunter and have two versions of my scripts: one with heal pet and one without. Nothing is different.

Would love to have a button on the screen (and the ability to add as many "toggles" as I want) and be able to click it (or keybind it) to turn on a toggle that will be seen in the script and do something according to the toggle.

So I could have a "Heal Pet" toggle button and click it and then the script would run that line as well.

Make sense?

commented
commented

No. Out of combat is fine. Of course, if you could do it in combat, that'd be even better.

I'd probably do something like have a couple buttons for "Heal Pet", "Misdirect", etc. Things like that. Basically it's to offset the idea of "Use version 2 while in a party", but sometimes I'm in a party and I want to heal my pet, but other times I don't want to heal my pet on cooldown. Maybe I'm in a raid and I don't need to do misdirect on cooldown anymore, or maybe I do. That way I don't have to hold down a modifier. Because I'll run out of modifiers for the "version" of what I want to do.

commented
commented
commented

Understood. It's a process.

To me, the end result would be possibly a simple list like you have variables. But call it Toggles???

Then if I put in a toggle called "Misdirect", then the button would say on or off (maybe red/green).

Then the macro would read

/cast something
/cast something
[Toggle:Misdirect:On] /cast [@Focus] misdirection

And for any spell where there might be a replacement when it's in the off state, then it could be there as well.

I use modifiers, but there are times where I can't do "all things at once" and they need to be on for the whole fight and are normally off. Being able to toggle on-the-fly before a fight would be nice.

commented

That's the thing, I already have my modifiers set to all the things like that. I like that GSE can help me do things with less buttons. If I could toggle two variations of the misdirect line in a single macro (out of, or in -if possible-, of combat). That way I only have to press the toggle once and let the script switch to what I'm toggling.

I have all of the features I'm talking about already, but I have to hit a couple buttons (I know, people are going to read this and go haywire about that sentence). I just like doing things simpler. It helps my hands (literal carpal tunnel) and my stress.

I was only suggesting it because I'd like to toggle things like my trinkets for certain fights to just be autocast on cooldown and some fights I like to keep them on a hot key. Right now I have multiple versions of the same GSE script with the features I need turned on/off and I just move buttons around before fights.

I hope this all makes sense as to why I asked and what it could offer. If you feel it's out of the scope of what you're doing, I understand. I can make do without it. Was just hoping... ;)

commented

It dawned on me that what I'm asking is a different way to do the versions of macros. I guess I'm envisioning a way to allow me to choose which version of the macro I want to use before any fight.

As it is now, I have multiple macros for "single target" and within each of those, I have different versions depending on the circumstance. I swap out the icon when I need a combination of features. That way the "features" are cast automatically and I don't have to hit shift, ctrl or alt to figure out what's needed. Eventually my hand would get into an origami position and prevent me from moving properly... ;)

I like the concept of "Dungeon uses version X", "Mythic uses version Y", but the truth is, there are situations where there might be "Mythic uses version X on boss 1, version Y on boss 2-3, and version X again on boss 4".

With toggles, I could tailor the single macro to the combination of things I want autocast prior to the fight.

commented

With GSE3 you can actually set this up with some variables.

Create a variable called MD in the macro you want to toggle.

Inside it put this

function () 
  if GSE_C.Misdirection then
    return "/cast [@Focus] misdirection"
  else
    return ""
  end
end

Now put ~~MD~~ on the lines where you would have MD

Then create a new macro called MDON
in the action block for it put

/run GSE_C.Misdirection = true
/run print("MD Toggled on")

Create another called MDOFF
in the action block for it put

/run GSE_C.Misdirection = nil
/run print("MD Toggled off")

These can be in the one action block.

You could even create a WeakAura to show one thing when GSE_C.Misdirection = true to show that the toggle for that is on.