sound trait for dice

Is there a way to play a sound when a Dice is “rolled”? If so how do I link the hotkey (ctrl+alt+P) and the button so the sound is played when the person clicks on the button or manually does ctrl+alt+P?

Assume you have a dice button, with hotkey command CTRL ALT P with a button
icon.
Add the action button, clear the action button text and icon and set its
hotkey to CTRL ALT P and add the sound - should be all there is to it.

Post generated using Mail2Forum (mail2forum.com)

action button? I cant put anything to a random text. I created a definition that had trigger action ctrl+alt+p do action ctrl alt 2 and play sound trait with the hotkey ctrl alt 2 and a sound file, but it doesnt work in the mod.