There are no control structures and you can't use a slash command to assign a macro to a hotbar slot. But here are some things you
can do:
- Copy entire hotbars with the /hotbar copy (normal hotbars) and /chotbar copy (cross hotbars) commands.
- Use "current" as a source job or destination job argument when using the /(c)hotbar copy commands.
- Use "share" as a source job or destination job argument ...
- Use a base combat class as a source job or destination job argument ...
- Use "share" as an argument even if the bar number in question is not shared.
- Use a specific class or job as an argument even if the bar number in question is shared.
Shared bars are their own barset separate from the barset for each job. The base combat classes each also have their own barset separate from their upgrade jobs' barsets. All shared bars, class bars, and job bars exist, regardless of Share settings and job unlock states.
To read the help file for a command, use the
/? command:
For example:
This example requires bars 8 and 10 to be Shared bars.
Each role category is just a macro that copies hotbar 10 from some job in the role to my shared "job menu" hotbar:
Code:
Casters: /hotbar copy blm 10 share 8
Healers: /hotbar copy whm 10 share 8
Tanks: /hotbar copy pld 10 share 8
Rangers: /hotbar copy brd 10 share 8
Meleers: /hotbar copy mnk 10 share 8
For each role, set up the share 8 bar to have all the gearsets for that role, and all the macros to change role categories. As you set up each version of the bar, you can reverse the command to save share 8 to the chosen job for each role:
Code:
/hotbar copy share 8 JOB 10
Once all five roles' bars are saved, click any of the role categories to change share 8 to the job menu for that role category. This works because I have bars 8 and 10 set to Shared. When I save one of the bars to blm 10, it saves the bar to blm 10, which still exists even though it is invisible due to being overshadowed by Share 10.
If you want to have one category be a default or home, you can set the macros to wait and restore the default or home bar. For example, to revert automatically to the Caster role menu, make all the other role switchers do:
Code:
/hotbar copy JOB 10 share 8 <wait.15>
/hotbar copy blm 10 share 8
Conversely, you can hide things in the share bars where the bars are not Shared. For example, using share 1 as a swap buffer while changing a job's bars.
Code:
/mlock
/hotbar copy current 1 share 1
/hotbar copy current 7 current 1
/hotbar copy share 1 current 7
/hotbar copy current 2 share 1
/hotbar copy current 8 current 2
/hotbar copy share 1 current 8
/hotbar copy current 3 share 1
/hotbar copy current 9 current 3
/hotbar copy share 1 current 9
This example requires bars 1,2,3 to be job-specific and bars 7,8,9 to be Shared.
This macro swaps out the current job's 1,2,3 bars for 7,8,9 bars that have been hidden under share 7,8,9, using share 1 as a swap buffer. After activating this macro, the original 1,2,3 bars will be stored in the current job's specific 7,8,9. Activating the macro again will swap back to the original bars.
The /mlock in the first line forces the macro to execute all the way to the end, so you don't somehow interrupt the macro and end up with half your bars from the wrong set.