I do have a keymap toggle to actually doing exactly this:
Normal keymaps that apply at every time, one that enables fire spells and one for frost spells; the fire/frost spells are on the same keys, but depending on the keymap active, they firing different spells.
Working with different keymaps on the fly can be tricky, as you expierienced yourself.
For this to work I've disabled the standard on/off switches created my own.
Above is a clickbar with two buttons.
One button has 3 actions to trigger the different states; the 2nd one is just used to show if fire/ice is enabled
All 3 modes have their own keymap:
To toggle them I've setup 3 new hotkeys in the predefined toggle-keymap:
The first "Boxencrew: Disable Modes" is, well, disable both fire & ice keymaps regardless of their current state.
This mapped key is called in both the "Disable" steps of the fire/ice toggles to keep things centralized.
Here are the actual actions:
As you can see, the last 2 actions actually modified the "Mode: Mage Fire" and "Mode: Mage Ice" mapped key.
The force-set it to step 1.
This is necessary because you just disabled them - but only one of them.
Lets say you enabled fire at the beginning of the fight and then ice near the end.
Before enabling ice you have to disable fire, otherwise both will use the same hotkeys for your mapped keys => breaking the functionality.
To avoid you as enduser have to disable them manually, simply setup a general "disable mode" mapped key (does not require a hotkey) to reset the current state of all your "special modes".
Now, how to properly manage enabling/disabling those keymaps?
Lets take the fire keymap:
Steps:
1. Reset all modes by calling the previously defined "Disable Modes" mapped key.
2. Set the "BoxenCrew - Warrior" keymap toggle to "step 2" (=disabled, so next call will enable it)
3. Call the "Activate Maps (Boxencrew)" mapped key to actually enable the "BoxenCrew - Warrior" keymap
4. Set the "Mode: Mage FIRE" keymap toggle to "step 2" (=enabled, so next call will disable it)
5. Enable the fire keymap
6. update clickbar to show the "Fire" label
7. enable the clickbar in case it was disabled/hidden somehow
The Disable-step in the fire mode looks like this:
Pretty simple:
1. Run the "disable modes" mapped key to reset all states.
2. Set the fire-map toggle to step 1 (=disabled, so next call will enable it again)
The Ice keymap toggle is the exact same, just using the Mode: Mage ICE instead of fire.
The "Activate Maps (Boxencrew)" is my customized version of the default enable/disable keymaps - you want to do this in order to keep the default toggle intact for other teams.
Pretty similar to the fire/ice toggles:
And the ON step:
Hope this helps. :>
Connect With Us