As Bettysue says, what you want can already be done with DoRandomToggle and the Text command.
Code:
<Hotkey 2>
<Toggle>
<SendLabel w1>
<Key 2>
<Toggle>
<SendLabel w1>
<Key 2>
<Toggle>
<SendLabel w1>
<Key 2>
<Toggle>
<SendLabel w1>
<Key 2>
<Toggle>
<SendLabel w1>
<Key 2>
<Toggle>
<SendLabel w1>
<DoRandomToggle Hotkey Oemax 1>
<UseKeyAsModifier OemAX>
<Hotkey Oemax 1>
<Toggle>
<SendLabel w1>
<Text /em doom>
<Key 2>
<Toggle>
<SendLabel w1>
<Text Duck and Cover!>
<Key 2>
<Toggle>
<SendLabel w1>
<Text /em dance>
<Key 2>
<Toggle>
<SendLabel w1>
<Text Mad dog! Kill it, Kill it!>
<Key 2>
Starting at the top of the code, we create a hotkey for 2. You'll see I have repeated 2 several times as a toggle. You can do it without toggles in the main key, but you will get too many calls for a random emote and you'll end up spamming them. Using the toggle like this means that the random will only go off once in every 6 presses. You can add more toggle steps here to further reduce the frequency of emote calls.
The second toggle calls DoRandomToggle, which as you see below that will call a random emote + key 2. If you wanted, you could also add "blanks" here by tacking in toggles for Key 2 or increase the frequency of certain emotes in relations to others by duplicating their toggle.
Connect With Us