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
1735158053
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have run your macro, but only changing the track names to ones that are in my library. I cannot duplicate the crash. Try this, run your macro, click the first button. Disregard the crash, but push the up arrow in chat to see the last command sent. If you clicked the first button, it should be " !splay Divination A ". Restart your sandbox and try running just that command and see if you trigger a crash.
keithcurtis said: I have run your macro, but only changing the track names to ones that are in my library. I cannot duplicate the crash. Try this, run your macro, click the first button. Disregard the crash, but push the up arrow in chat to see the last command sent. If you clicked the first button, it should be " !splay Divination A ". Restart your sandbox and try running just that command and see if you trigger a crash. Did that, and the command !splay Evocation A played the sound, and then crashed the sandbox with the same error. This is mystifying. Could it perhaps be conflicting with other scripts, like Audio Master?
1735183216
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Possibly. You could try an audio master command instead of a simpleSound command.
1735184879

Edited 1735185360
keithcurtis said: Possibly. You could try an audio master command instead of a simpleSound command. lol that was what I was trying to do initially! Maybe I'll try a chat menu using AM. Edit: This works perfectly fine with AM, and is in fact more simple to use than a query. Thanks for the inspiration, Keith! Merry Christmas!