This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Grouping actions possible?
Post Reply
Return to board index
Post by
499605
This post was from a user who has deleted their account.
Post by
Wanderingfox
Each /cast line can do a single thing.
If you're looking to do multiple things, you need multiple /casts. Note that most spells will lock you out of even doing more than one spell in a macro, but there a few that won't.
In short, you'd see something like
/cast groupbspell1
/cast groupbspell2
/cast groupaspell1
/cast groupaspell2
Obviously, if you're trying to do something like macro out an attack sequence, this isn't going to work with the GCD and all that, but it would work for like activating trinkets etc.
Post by
499605
This post was from a user who has deleted their account.
Post by
Neffi
will it causes problem if the status of the mod key changed?
No.
Does a macro only take into account the status of the mod key when it starts?
Yes.
WoW's UI is single-threaded. Its state cannot change like that. When you click the macro, the system knows which modifiers are held (and any other relevant state). The execution of the macro itself hijacks the interface's entire processing chain until it completes. So even if you let go of the modifier key halfway through, the game wouldn't know you did until the macro completes. This is how all of the code in a single-threaded application works: only one thing is happening at a time.
By the way, execution of a macro happens very fast. The fastest timing information the UI even has available (debug profiling with a resolution of milliseconds -- 1 millisecond is 1/1000th of a second) would show a macro's execution as taking 0 seconds. It's probably more on the order of microseconds (1/10000th) or less to execute a macro. The key doesn't even travel quickly enough to "unpress" before the macro completes.
Edit:
I was curious. It takes roughly 0.0000025 seconds for a single /cast to execute.
Post by
499605
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.