Just an example for those of us used to using the [mod:X][nomod] construct from WoW to assign 4 actions to a single button.
This is using Priest spells as an example. The conditions and actions could be changed obvisouly. This is just to show how to assign alt,ctrl,shift, and no modifier to 1 key.
One note, the WoW API listed IsControlKeyDown. RoM uses IsCtrlKeyDown. I dont know if this is a game related difference or if the wow api site was just wrong.
|
Source code
|
1
|
/script if (IsShiftKeyDown()) then CastSpellByName(”Rising Tide”); elseif (IsAltKeyDown()) then CastSpellByName(”Bone Chill”); elseif (IsCtrlKeyDown()) then CastSpellByName(”Ice Fog”); else CastSpellByName(”Chain of Light”); end;
|