![](https://files.d20.io/images/425496812/obxR-FuZpAwL3UrhWmc92g/thumb.jpg?1737339521602)
Please help. I tried finding this info here and I tried figuring it out, but I'm at a loss. I am not well versed in this coding business, please be gentle.
So Alien RPG, I have a monster token with a token action to ATTACK that will randomize its attack from the character sheet; I want to add code to that action that will include a sound effect with the roll.
I've managed to successfully create a macro that plays that sound; I've created a token action that plays the sound; I've created a token action that plays the macro that plays the sound - but I can't figure out how to modify my ATTACK token action to play the sound.
Token Action for ATTACK: "@{randomizeattack-attr}" this works, rolls random attack
Macro for SOUND: "!roll20AM --audio,play|face03finalemb" this works, triggers sound titled "face03finalemb"
Token Action for SOUND: "#face03finalemb" or "!roll20AM --audio,play|face03finalemb" both of these work, triggers sound from macro or direct from API.
Token Action for ATTACK with SOUND, one command per line or two commands per line, commands in either order:
"@{randomizeattack-attr} #face03finalemb"
"@{randomizeattack-attr} !roll20AM --audio,play|face03finalemb"these do not work as intended, the attack roll happens, but no sound; if I change the command order to sound first then attack, the result is the same, IE attack roll but no sound.
If the solution isn't fixing my code in this macro, I think I'm going to create a token action to bring up a Chat Menu and I'll select the sound from a "soundboard" menu. I don't know. Any feedback will be appreciated. I've read through what I could find on this and got burnt out. GLHF. Thanks. Peace.