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

Adding Sound Effect to Spell Descriptor Card

Hello everyone,&nbsp; I'm new to Pro and just starting to play with the API scripts. I was experimenting with adding sound effects to spells.&nbsp; I followed the instructions here (just for the sound)&nbsp; <a href="https://www.youtube.com/watch?v=5RN0r4JXGvw" rel="nofollow">https://www.youtube.com/watch?v=5RN0r4JXGvw</a> I actually added the command in the Higher Levels section of the spell description (which works). So this is what is in that box: The spell’s damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12). }} !roll20AM --play|tolldead ! This is the output into the chat. It may be that I am trying to do too much here and I can't clean up the messy output (the tutorial added the sound to an attack that produced no other descriptor). Is there a way to have the descriptor and sound? DC 13 No effect Wisdom &nbsp; Save You point at one creature you can see within range, and the sound of a dolorous bell fills the air around it for a moment. The target must succeed on a Wisdom saving throw or take 1d8 necrotic damage. If the target is missing any of its hit points, it instead takes 1d12 necrotic damage. At Higher Levels: The spell’s damage increases by one die when you reach 5th level (2d8 or 2d12), 11th level (3d8 or 3d12), and 17th level (4d8 or 4d12). <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d8 = ( 5 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help; width: 1em;">5 Necrotic &nbsp; &nbsp; <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d12 = ( 6 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help; width: 1em;">6 Necrotic 60' Toll the Dead }} {{spelllevel=cantrip}} {{innate=}} {{globaldamage= 0 }} {{globaldamagetype=}} ammo= charname=Demophexis Ravamaris
1560368908
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Not sure about the tip you are following, but that is outdated syntax for Roll20AM. It should be: !roll20AM --audio,nomenu,play|tolldead
1560369272

Edited 1560369343
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try placing it in at the end of the "cast at higher levels" box if the spell has one (as in your example), or at the end of the description if it hasn't. It seems to be working for me. I think the problem might be that that wasn't actually where the roll template closes.
Thank you! I appreciate the help considering I am an absolute novice about anything coding.
1560396960
Victor B.
Pro
Sheet Author
API Scripter
Make sure to go here and get latest.&nbsp; I haven't published to main roll20 because of laziness and I hate github.&nbsp; Copy code and paste into a new script.&nbsp;&nbsp; <a href="https://github.com/vicberg/Roll20-Audio-Master-V2.0" rel="nofollow">https://github.com/vicberg/Roll20-Audio-Master-V2.0</a>
1560407918
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Victor B. said: Make sure to go here and get latest.&nbsp; I haven't published to main roll20 because of laziness and I hate github.&nbsp; Copy code and paste into a new script.&nbsp;&nbsp; <a href="https://github.com/vicberg/Roll20-Audio-Master-V2.0" rel="nofollow">https://github.com/vicberg/Roll20-Audio-Master-V2.0</a> I'm getting "This repository is empty" from that link.
1560469122
Victor B.
Pro
Sheet Author
API Scripter
Ugg and why I don't like GIST or GIT.&nbsp; Maybe GITOUT.&nbsp; I like that.&nbsp; I'll fix in a bit.&nbsp;&nbsp;