Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Audio Master in drop down menu?

I'm trying to figure out if this is possible. I'd like a macro that calls a roll query drop down menu, and each option in the menu plays a different track through Audio Master. The syntax doesn't seem to want to work, and I'm not sure how to get it done (or if it can be).
1735025024
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Sandwich! This can be done with the Simple Sound mod script and a  Chat Menu . Example: &{template:default} {{name=Playlist}} {{ =[Sound1 Name](!splay nameoftrack1) [Sound2 Name](!splay nameoftrack2)}}
keithcurtis said: Hi Sandwich! This can be done with the Simple Sound mod script and a  Chat Menu . Example: &{template:default} {{name=Playlist}} {{ =[Sound1 Name](!splay nameoftrack1) [Sound2 Name](!splay nameoftrack2)}} This is causing the entire sandbox to crash every time I click an option in the menu. The macro syntax is: /w GM &{template:default} {{name=Male Spells}} {{ =[Evocation](!splay Evocation A)[Enchantment](!splay Enchantment A)[Divination](!splay Divination A)[Necromancy](!splay Necro A)[Abjuration](!splay Abjuration A)[Illusion](!splay Illusion A)[Conjuration](!splay Conjuration A)[Alteration](!splay Alteration A)}} And the error I'm getting is: TypeError: Cannot read properties of null (reading 'indexOf') TypeError: Cannot read properties of null (reading 'indexOf') at d20.textchat.doChatInput (eval at <anonymous> (/home/node/d20-api-server/api.js:185:1), <anonymous>:332:18) at sendChat (/home/node/d20-api-server/api.js:2088:16) at outputConfig (apiscript.js:6976:16) at changeHandler (apiscript.js:7393:21) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:181:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:181:1), <anonymous>:70:8) at TrackedObj.set (/home/node/d20-api-server/api.js:1166:14) at updateLocalCache (/home/node/d20-api-server/api.js:1509:18) at /home/node/d20-api-server/api.js:1741:7 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560