Can GSE reset itself on timer?

So i’m an Enhance Shaman and want a very simple macro of Elemental Blast and then Lightning Bolt x2-3. Basically I want the single button to do EB when it is off cd and LB when it is on cd.

Using a normal sequence GSE merely advances on button press which means that if I don’t press Lightning Bolt twice in the 12 second cd of EB then i’ll have to remember that it is still on LB. Or if i’m not at 5 stack Maelstrom and go for a hard cast and get kicked or fake, it still advances forward. PvE vs PvP too, where sometimes in PvP i’ll probably use stacks for healing while in PvE the cycle would probably be normal.

I’ve tried castsequence, but of course its reset timer restarts when you hit the button again, so that doesn’t really help when trying to have it reset back to EB only when it is available.

GSE has a section for keybinding sequence resets and also a toggle to reset on dropping combat, so I know it is possible for it to reset itself on conditions, what I want to know is is there a way to have it reset on an internal timer that doesn’t restart like a normal castsequence does?

No, it can’t. Where it runs within the combat sandbox it has no access to time directly. The only way it can measure time is based on counting “clicks”. If your clicks are irregular it cant tell that there is a difference in the gap.

As you mentioned castsequence lines have a reset=x where X is a number of seconds but that only works if you DONT press the button.

You can however add a manual reset by setting up a key combination in GSE’s options that if you hit that combo it will reset the macro.

a trivial question, but something simpler and clearer than writing line 1 and running line 1 and stop is not really feasible timoty?
I know that it is difficult to set addons and only professionals can create such an addon, but knowing that castsequence for example is not how to write, but it is random, it seems to me not precise. I want to explain better if I can make myself understood but you have to excuse me I am not American English and I do not speak your language use of simultaneous translators so please excuse me in advance ok.
practical example:
castsequence spell, spell, spell addon executes line as it is written without keystrokes or how many times you have to press it, i.e. line executes line at stop pressure.
line 1--------> press 1 time
line 2 --------> pressure 2 times etcc etcc?
wouldn’t it be simpler or it’s just not feasible in such a thing?
because as you said castsequence is malfunctioning and it doesn’t really execute that goose you write but it’s random.

Translated with www.DeepL.com/Translator (free version)

Bummer. I presume that this timer execution function is something locked across the board for all addons? Or could I use another addon like Weakauras or something to track the keypress and execute the reset command after a timer?

So frustrating. All I want is a simple “if on cooldown” condition to cut down my keybinds. I have 52 active keybinds. SL is removing two but adding four. I’m already near my limit and if I have to manually press a keybound reset button then I may as well just have that button be the bind for Elemental Blast itself.

Is KeyRelease bugged? I tried to do some combination of KeyPress/KeyRelease/Pre/PostMacro to make it work. Some combinations I’ve tried give me “Invalid step assigned” text box errors, but when I put anything into KeyRelease when there is anything in Press it stalls out and ignores anything in Release. If I have ActionButtonUseKeyDown enabled or disabled it still uses Press on both press and release. If I put the command in only one area then it works however the UseKeyDown dictates and not where the KeyPress/KeyRelease command is.
Putting a spell in each Press and Release doesn’t work despite letting the press spell go off, holding the button for seconds after and then releasing. Isn’t that the whole point of those boxes?
Is there any combination of KeyPress/Release/Pre/PostMacro that can get this to work for me? Having the sequence cycle through normally is untenable for me because it moves on to the next in the sequence regardless of if the spell actually executed. So if i’m spamming the button while in the global it will still cycle through and that just doesn’t work for me. It removes the entire point of taking the EB talent if half the time my macro will have me cast LB instead.

1 Like

There are two types of mods. Those that run inside the Combat sandbox - they can act but they are blind. They can’t see the time or procs or buffs or cooldowns or if a spell was cast or not. GSE is in this space.

The other type of mods are outside the sandbox. They can see everything and they can tell you everything. They just can’t act on anything. WeakAuras is one of these mods.

WeakAuras can tell you something but it can’t do something. GSE can do something but it can’t be told what to doz. once combat starts it is purely blind.

As to the other part. It sounds like You have a ton of confusion about how keypress, keyrelease, pre and PostMacro work. I broke this down just recently here: Improve addon gse

There is a stack and you need to take into account both how the stacks works and how GCD abilities lock the stack.

Keypress is items that are prepended to your sequence line and KeyRelease are postpended. There can still be only 1 GCD ability in that stack. If you have GCd abilities in KeyRelease they are never going to be executed if there is a GCD ability in the stack before hand. A GCD ability on cool down blocks the stack for everything below it.

What you are trying to achieve is totally achievable with GSE. You just need rethink your approach and work the limitations of what macros are allowed to do.

What you are trying to achieve is totally achievable with GSE. You just need rethink your approach and work the limitations of what macros are allowed to do.

Or you could tell me how. How can I rethink the approach when I clearly don’t understand the capabilities of the addon.

You say it is achievable but in the link above breaking down how KeyPress and Release function it states 1 button press 1 execution. So for whatever reason pressing a button, holding it for a couple seconds, and releasing doesn’t count as 2 functions which is what KeyPress and KeyRelease imply. And if it can only have 1 GCD in the stack then what I want can never work because attempting Elemental Blast and failing because it is on CD is never then moving on to Lightning Bolt without another keypress even if no actual GCD is used. I can’t have it cycle on press i need it to cycle on execution, because if i’m hitting the button while under GCD from another ability then it cycles and then will use the second spell when the normal GCD finishes in the button mashing.

If it is achievable then illuminate me please.

You are going to need multiple key presses and assume that some lines will fail. The whole point is that GSE will move to the next line irrespective of success or failure. KeyPress and KeyRelease are prepended and postpended to every line of your PreMacro, Sequence and PostMacro. You need to use this to your advantage.

I didn’t set the rules Blizzard did. You can only have One GCd ability on a press. You may however have an unlimited number of non GCD abilities each press. Eg you may have a burst cooldown that you want to go off as soon as it’s available. It’s not on the GcD so you put it in KP or KR. You have another ability that is on the gcd but want it to go off as soon as it’s on cooldown so you put it in the sequence on a line by itself and spam the macro. When it’s available and your macro get to that line and you are not in gcd it will execute, it not it will just move onto the next line. Or you may want to put in an override so that when you hold shift and fire your macro it casts a particular spell. You may want to give it a greater priority so you change the step function to Priority instead of Sequential. This changes how the sequence is actually attempted to be executed. You put some pauses in to wait for things to complete.

GSE gives you the tools to work around those rules but it takes trial and error and patience and thinking differently. Look at other macros from your class for ideas of how other people have solved the problem you face. Run the /gse debug command to help walk through your macro line by line to see why a particular line is succeeding for failing.

1 Like

i think the best approach for him / her its to [nochanneling] the crap every ability BUT the lava burst.

Something like this could work ( sequential ):

/cast Lava Burst
/cast [nochanneling] Lightning Bolt
X [nochanneling]
X [nochanneling]
X [nochanneling]

Try it in same macro, or to a separate one

Cheers