Use macros from this thread, it uses string variables and doesn't require any extra editing in it, just adding/editing variables.
And in variables, instead of "shield" it should be either LeftHand or RightHand
And in variables, instead of "shield" it should be either LeftHand or RightHand