Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runmacro inside macros? #7

Open
mishugashu opened this issue Jul 8, 2021 · 4 comments
Open

runmacro inside macros? #7

mishugashu opened this issue Jul 8, 2021 · 4 comments

Comments

@mishugashu
Copy link

Feature request.

Use case:

I have a job change macro for each job. Each of these macros does basically 4 things:

  • Changes the actual job
  • Changes the HUD layout based on the job.
  • Closes a few hotbars that are open because of a pop-up macro that shows all my job macros.
  • Sorts my inventory

An example:

/macroicon 16 gearset
/gs change 16
/hotbar display 7 off
/hotbar display 8 off
/hotbar display 9 off
/isort condition armoury ilv des
/isort execute armoury
/isort clear inventory
/isort condition inventory stack asc
/isort condition inventory ilv des
/isort condition inventory category asc
/isort condition inventory tab
/isort execute inventory
/hudlayout 1

It'd be nice if I could simply use /runmacro in this, like so:

/macroicon 16 gearset
/gs change 16
/runmacro 10  ## turns off hotbars
/runmacro 11  ## sorts inventory
/hudlayout 1

That way, if I ever need to change the hot bars or the way I sort my inventory, I only have to go edit 1 macro instead of 29, plus having a sorting macro. Plus I could actually fine tune my armoury sorting as well.

@geekgirl101
Copy link

I second this. Must be a tech reason why it cannot be added as I'm sure the creator would've added this feature already.

@chall8908
Copy link

As far as I know, this particular usage would not work. Executing a macro while one is already running stops the current macro. I don't see why you shouldn't be able to use /runmacro in the same contexts as /nextmacro since they use the exact same machinery.

@Shojy
Copy link

Shojy commented Aug 25, 2022

I believe this was previously a feature, but was removed to better reflect the spirit and guidelines of XIV Launcher, ie, not allowing for automation. For example, this would allow for a macro to loop forever by calling itself, perhaps automating a fishing task for example with a cast->wait->hook->loop style macro. A little inefficient, sure, but that doesn't matter when you do basically nothing for it. Short hook times, such as Blue Crabs or Calamari would be a good example of where this would be rather effective. I'm sure the creative sorts could also find other ways to abuse this, particularly if you have other addons that add commands that can be executed via macro

@Theletha
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants