GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

6M Downloads

[ENH] Make it possible to choose version to use depending of the zone

rlejeune opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.
Right now it seems like when we're in the maw, for necrolord, the macro try to cast construct abilities if those are in it. But since we do not have a construct in the Maw then the macro lags.

Describe the solution you'd like
I was wondering if it would be possible to add an option to have a certain version of the macro to run in a specific zone

Describe alternatives you've considered
Right now the only way I've found is to change the macro everytime I change zone

Additional context
Thanks for you amazing work :)

commented

As there are literally hundreds of zones this isn't practical nor sustainable. It is possible to achieve this with existing functionality.

You could however use variables and the API function C_Map.GetBestMapForUnit("player") to determine if in the Maw and then what to do about your particular macro. This change came in via #691 and has an example that works around using the race https://wowlazymacros.com/t/howto-include-a-racial-and-check-with-a-variable-if-you-are-of-that-race/18573

if you do a /dump C_Map.GetBestMapForUnit("player") while in the maw you would get the answer that you would put into a variable like:

function() 
  if C_Map.GetBestMapForUnit("player") == "MAWVALUEFROMDUMP" then
    return "/castsequence stuff; to; do; in; maw"
  else
    return "/castsequence stuff; to; do; outside; maw"
  end
end