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

Sound and special effects for powercards?

Been trying to play with this for a while now with no success, What I am trying to accomplish is to add vfx and sound effects to powercards and more specifically powercard macro helper. Any help on this would be greatly appreciated. I am using the 5e character sheet by roll 20 as well as the companion api for it. Thank you in advance!
The moderator has put up a video with exactly what you're looking to do on YouTube. Here's the link:  Roll20 PowerCards - Attribute-based Video and Audio Tags Hope that helps. Good luck!
Ty! I also found  one for gifs and sfx and it led me to the idea to add a sound effect for dice rolls for power scripts to mimic a roll, I use Roll20AM for this and place the command at the top before the actual macro for powercards.
1569460520

Edited 1569460617
Still having problems getting it to work as it does in the video, anyone info again would be helpful. here's the script !power {{   --tokenid|@{selected|token_id}   --target_list|@{target|token_id}   --emote|@{selected|token_name} Attacks!   --name|Attack   --leftsub|Melee   --rightsub|Normal   --tokenid|@{selected|token_id}   --target_list|@{target|token_id}   --audioattr 1*|@{selected|token_id} AudioOnAttack   --audioattr 2*|@{target|token_id}AudioOnHurt   --vfxattr 1*|@selected|token_id}EffectOnAtttack   --vfxattr 2*|@selected|token_id}EffectOnEnemeyHit   --vfxattr 3*|@target|token_id}EffectOnHurt   --Attack:[[ [$Atk] 1d20 +@{selected|strength_mod} [STR] + @{selected|pb} [PROF] ]] vs AC [[@{target|AC}]]|   --hroll|[[ [$Dmg] 1d12 + @{selected|strength_mod} [STR]+ @{selected|global_damage_mod_roll} ]] or [^Crit] [[2d12 + @{selected|strength_mod} [STR] ]]]   --?? $Atk.base <> 1 AND $Atk.base <> 20 AND $Atk >= @{target|AC} ??Hit:[[1d12+ @{selected|strength_mod}+ @{selected|global_damage_mod_roll} [STR]+ @{selected|global_damage_mod_roll}]] Slashingdamage!|   --?? $Atk.base == 20 ??Crit!:[[2d12 + @{selected|strength_mod} [STR] ]] Slashing damage!|   --?? $Atk < @{target|AC} AND $Atk.base <> 1 ??@{selected|character_name} missed!|   --?? $Atk.base == 1 ??Fumble|@{selected|character_name} fumbles the attack! }} I have an attribute on the corresponding Character sheet set as AudioOnAttack but nothing I enter seems to work.
1569470087

Edited 1569470103
Figured out the audio, but I can not figure out the vfx.
Try to change vfxattr for vfx_opt
to be able to use vfxattr, you need to create a attribute in the charcter sheet you want the effect on. By using vfx_opt you dont
Thank you Danny C.! I actually found out I was missing a character in the string and was able to figure it out. Here is the working Macro for those interested. !power {{   --tokenid|@{selected|token_id}   --target_list|@{target|token_id}   --emote|@{selected|token_name} Attacks!   --name|Attack   --leftsub|Melee   --rightsub|Normal   --tokenid|@{selected|token_id}   --target_list|@{target|token_id}   --audioattr 1*|@{selected|token_id} AudioOnAttack   --audioattr 2*|@{target|token_id}AudioOnHurt   --vfxattr 1*|@{selected|token_id}EffectOnAtttack   --vfxattr 2*|@{selected|token_id}EffectOnEnemeyHit   --vfxattr 3*|@{target|token_id}EffectOnHurt   --Attack:[[ [$Atk] 1d20 +@{selected|strength_mod} [STR] + @{selected|pb} [PROF] ]] vs AC [[@{target|AC}]]|   --hroll|[[ [$Dmg] 1d12 + @{selected|strength_mod} [STR]+ @{selected|global_damage_mod_roll} ]] or [^Crit] [[2d12 + @{selected|strength_mod} [STR] ]]]   --?? $Atk.base <> 1 AND $Atk.base <> 20 AND $Atk >= @{target|AC} ??Hit:[[1d12+ @{selected|strength_mod}+ @{selected|global_damage_mod_roll} [STR]+ @{selected|global_damage_mod_roll}]] Slashingdamage!|   --?? $Atk.base == 20 ??Crit!:[[2d12 + @{selected|strength_mod} [STR] ]] Slashing damage!|   --?? $Atk < @{target|AC} AND $Atk.base <> 1 ??@{selected|character_name} missed!|   --?? $Atk.base == 1 ??Fumble|@{selected|character_name} fumbles the attack! }}