Suss Soundboard creates a playlist for each player character and allows a player to play sounds from their playlist using scripted macros.
When a GM logs in, for each player character:
- Create a playlist for the player character's sounds.
- Grant the player ownership of the playlist so they can play sounds from it.
- Put the playlist in Soundboard Only mode.
When a player logs in:
- Check for the existence of their playlist. If it's not there, remind them that a GM needs to log in.
- Whisper them the name of the playlist and each of the tracks, since they can't see the playlist in the UI.
Here's what a player's macro might look like:
// Play Dirk's Fireball sound
let playlist = game.playlists.find(p => p.name === 'Dirk The Impossible Sounds');
let track = playlist.sounds.find(s => s.name === 'My Weird Fireball Noise');
playlist.playSound(track);