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

Jukebox MACRO working from chatbox but not from part of a larger MACRO

Hi there, I have been working on this MACRO and have ironed out most of the issues however still cannot get it to produce sound effects. When I run the MACRO !roll20AM --audio,play|arrow from the chat box it works fine (I have Roll20 Am running). When I use it in a larger MACRO run from an on screen button it fails and I don't know why. I have removed the ! at the start as part of the larger MACRO but no good. My brain is hurtingnow. If anyone knows why I would appreciate your help. Thanks. !power {{  --name|Shortbow  --leftsub|Ranged Attack  --rightsub|80/320 ft Range  --@{target|npc_name}  --Attack:|[[ [$Atk] ?{Attack|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{selected|dexterity_mod} +@{selected|pb} ]] vs AC @{target|bar2}  --?? $Atk >= @{target|bar2} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 1d6 + @{selected|dexterity_mod}   ]]  --?? $Atk.base == 20 ?? Critical Hit|[[ [$CritDmg] 2d6 + @{selected|dexterity_mod}  ]]  --vfx_opt|@{selected|token_id} @{target|token_id} beam-smoke !roll20AM --audio,play|arrow  --?? $Atk >= @{target|bar2} AND $Atk.base <> 20 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^Dmg] _show|all  --?? $Atk.base == 20 ?? alterbar2|_target|@{target|token_id} _bar|1 _amount|-[^CritDmg] _show|all }}
I can get it to work from one jukebox file but no others, Even if they are all from the same place (battlebards)
Julian S. said: I can get it to work from one jukebox file but no others, Even if they are all from the same place (battlebards) are you aware of the fact that with roll20AM you have to remove all, and reimport everytime you add a soundfile to your roll20 quota?  If you don't do this, any sound files you add roll20AM just has no clue exists and will just not play anything.  
Hi DM Eddie. Thanks. I have tried this but still no love... !power {{  --name|Shortbow  --leftsub|Ranged Attack  --rightsub|80/320 ft Range  --@{target|npc_name}  --Attack:|[[ [$Atk] ?{Attack|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{selected|dexterity_mod} +@{selected|pb} ]] vs AC @{target|bar2}  --?? $Atk >= @{target|bar2} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 1d6 + @{selected|dexterity_mod}   ]]  --?? $Atk.base == 20 ?? Critical Hit|[[ [$CritDmg] 2d6 + @{selected|dexterity_mod}  ]]  --vfx_opt|@{selected|token_id} @{target|token_id} beam-smoke  --?? $Atk >= @{target|bar2} AND $Atk.base <> 20 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^Dmg] _show|all  --?? $Atk.base == 20 ?? alterbar2|_target|@{target|token_id} _bar|1 _amount|-[^CritDmg] _show|all }} !roll20AM --config,remove !roll20AM --config,import !roll20AM --audio,play|arrow
I do not think that is what you want to do.  I meant in roll20AM's menu removeall and reimport.  Have you tried those commands?  Don't they require user input?  If the arrow sound is properly setup and properly able to play with just that one line at the bottom, then your problem is how you are inserting it into powercards.  I abandoned using powercards lil bit ago but I could have sworn that everything in powercards needs to be in a --commandunique|XXX format.  Have you tried --api|!roll20AM --audio,play,nomenu|arrow?  Also make sure that the arrow file name is right, if you pulled it from battlebards its usually got a ton of extra words, trim it down with a rename to "arrow."  If you capitalize arrow, then capitalize it in the roll20AM command too.  Remove those config commands from your macro, the player will not be able to run them anyway and its needless spam, you only run them when your roll20 audio folder changes.  
I changed the name of the sound effect to arrow. It works fine if I enter it as !roll20AM --audio,play|arrow in the chatbox or at the end of the macro. Its when I try a new sound it does not work. I originally had --soundfx|_audio,play,nomenu|arrow which did not work. I have tried your macro  and have not had any luck either. Everything else in the macro works really well. It applies the  damage to the token for me and also has a visual effect. 
I re-did it with this and it works. !roll20AM --config,remove !roll20AM --config,import !roll20AM --audio,play|ice I have placed it at the end of the macro outside  the last }}.