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

Triggering a macro with a spell from NPC's sheet

Hello guys, I am trying to work around how to trigger a macro from activating a spell from a NPC character's sheet? To be precised it is to be used with roll20AM, on a PC sheet it is simply: }} !roll20AM --audio,play,nomenu|Sound1 ! But on a NPC? Cannot work this out, Thanks ! Khan
1588955464
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I thought that hack for playing a sound on a PC sheet no longer worked due to a restructure of the roll template? What sheet are you using? I use  [play sound](!roll20AM --audio,play,nomenu|Sound1)  in the description field. It inserts a roll button, which I click manually. Hmm, maybe it no longer works from an attack.
Thanks Keith, I am using the 5e by Roll20 model and just created a new character which is a NPC. I can confirm that by adding this to the description of the spell does not work when I cast the spell. Is that something that was removed from roll20AM?
1588961422
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
AFAIK, Roll20 restructured the order of some elements in the Roll template last year. That hack you posted above was originally created by Scott C, I think, and depended on being in a certain place in the template (hence the double curly braces). It's not a case of either Roll20 or roll20AM having removed specific functionality, it's just that a hack which depended on certain features being done in a certain way can no longer live in that space. I had been using that hack in some weapon attacks. It no longer works there. I suspect the same is true of spells.
Ok that is great I found a way around by just editing the ability macro straight from the character page (on the 3rd tab) where I do the  !roll20AM --audio,play,nomenu|Sound1 followed by the attack roll and it works like a charm.