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

Spell effects to execute directly from Spell Description

1662320785

Edited 1662405061
HI, I know there are a few old posts about this but can't find anything that is working for me. I have a Spellbook Macro that pulls the spell from the character sheet, not separate global spell macros. Like below, and works just fine: &amp;{template:traits}{{name=SPELLS}} {{source=Class: Wizard}} {{description=**Cantrips** [**Poison Spray**](~selected|repeating_spell-cantrip_$0_spell) [**Chill Touch**](~selected|repeating_spell-cantrip_$1_spell) [**Firebolt**](~selected|repeating_spell-cantrip_$2_spell) [**Frostbite**](~selected|repeating_spell-cantrip_$3_spell) [**Shocking Grasp**](~selected|repeating_spell-cantrip_$4_spell) [**Light**](~selected|repeating_spell-cantrip_$5_spell) **1st Level** [**Mage Armour**](~selected|repeating_spell-1_$0_spell) [**Shield**](~selected|repeating_spell-1_$1_spell) [**Sleep**](~selected|repeating_spell-1_$2_spell) [**Magic Missile**](~selected|repeating_spell-1_$3_spell) [**Burning Hands**](~selected|repeating_spell-1_$4_spell) [**Disguise Self**](~selected|repeating_spell-1_$5_spell) [**Hideous Laughter**](~selected|repeating_spell-1_$6_spell) [**Witch Bolt**](~selected|repeating_spell-1_$7_spell) [**Chromatic Orb**](~selected|repeating_spell-1_$8_spell) [**Inflict Wounds**](~selected|repeating_spell-1_$9_spell) I could create a button to show in the template like this post below, but don't want to do that. I just want it to go off: <a href="https://app.roll20.net/forum/post/3185162/5e-ogl-how-to-use-macros-or-slash-fx-inside-a-spell-description/?pageforid=3185563#post-3185563" rel="nofollow">https://app.roll20.net/forum/post/3185162/5e-ogl-how-to-use-macros-or-slash-fx-inside-a-spell-description/?pageforid=3185563#post-3185563</a> I have tried this command but doesn't work from the description. It just deselects the token and never goes off. Are there character(s) I can add to make this work? I do not have a Pro account so cannot use APIs. /fx breath-fire @{selected|token_id} @{target|token_id}
1662328185
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Rayzer! I think you could probably do this with Customizable Roll Listener (in One Click). It listens for specific text patterns in specific roll templates and executes a macro if it finds them. You still might have problems if you don't have a selected token when the command goes off.
Thanks for responding. I looked this up in the forum, but am novice at this. I don't quite follow the syntax. !crl \\action,name=name of the listener, [specific properties of the listener] \\command 1 \\command 2 \\etc. I tried a few iterations with this Poison spray example, but not working. !crl \\action,name=my character name, [template=Template Name],[text=You extend your hand toward a creature you can see within range and project a puff of noxious gas from your palm] \\ /fx breath-acid @{selected|token_id} @{target|token_id}
Try this: !crl \\create,name=CHARACTERNAME,text=You extend your hand toward a creature you can see within range and project a puff of noxious gas from your palm&nbsp;\\ /fx breath-acid @{selected|token_id} @{target|token_id} I haven't actually tested this, and I think this may still not work because of the&nbsp; @{target| call. But if you want to see if the listener &nbsp;is working, try using this: !crl \\create,name=Test Poison Spray,text=You extend your hand toward a creature you can see within range and project a puff of noxious gas from your palm&nbsp;\\ /w gm Poison Spray Test CRL
Also you could pretty easily update your macro to make it a bit more universal using the same approach as my Universal Statblock Macro : &amp;{template:traits}{{name=SPELLS}} {{source=Class: Wizard}} {{description=**Cantrips** [**@{ selected|repeating_spell-cantrip_$0_spellname} **](~selected|repeating_spell-cantrip_$0_spell) [**@{ selected|repeating_spell-cantrip_$1_spellname} **](~selected|repeating_spell-cantrip_$1_spell) [**@{ selected|repeating_spell-cantrip_$2_spellname} **](~selected|repeating_spell-cantrip_$2_spell) [**@{ selected|repeating_spell-cantrip_$3_spellname} **](~selected|repeating_spell-cantrip_$3_spell) [**@{ selected|repeating_spell-cantrip_$4_spellname} **](~selected|repeating_spell-cantrip_$4_spell) [**@{ selected|repeating_spell-cantrip_$5_spellname} **](~selected|repeating_spell-cantrip_$5_spell) **1st Level** [**@{ selected|repeating_spell-1_$0_spellname} **](~selected|repeating_spell-1_$0_spell) [**@{ selected|repeating_spell-1_$1_spellname} **](~selected|repeating_spell-1_$1_spell) [**@{ selected|repeating_spell-1_$2_spellname} **](~selected|repeating_spell-1_$2_spell) [**@{ selected|repeating_spell-1_$3_spellname} **](~selected|repeating_spell-1_$3_spell) [**@{ selected|repeating_spell-1_$4_spellname} **](~selected|repeating_spell-1_$4_spell) [**@{ selected|repeating_spell-1_$5_spellname} **](~selected|repeating_spell-1_$5_spell) [**@{ selected|repeating_spell-1_$6_spellname} **](~selected|repeating_spell-1_$6_spell) [**@{ selected|repeating_spell-1_$7_spellname} **](~selected|repeating_spell-1_$7_spell) [**@{ selected|repeating_spell-1_$8_spellname} **](~selected|repeating_spell-1_$8_spell) [**@{ selected|repeating_spell-1_$9_spellname} **](~selected|repeating_spell-1_$9_spell)}}
But the CRL codes aren't working. Thanks for the updated spell macro.
1662398463
Kraynic
Pro
Sheet Author
Rayzer said: But the CRL codes aren't working. Thanks for the updated spell macro. CRL is a mod/script.&nbsp; Unless you are using this in a game that was created by a pro user with that script installed, it won't work.
1662406163
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Kraynic said: Rayzer said: But the CRL codes aren't working. Thanks for the updated spell macro. CRL is a mod/script.&nbsp; Unless you are using this in a game that was created by a pro user with that script installed, it won't work. That's probably on me. I should have noticed the Plus tag.
keithcurtis said: That's probably on me. I should have noticed the Plus tag. I've done that a few times now too, so I just added some Stylus code for the forums to make the color of a Pro tag versus a Plus tag much more obvious for myself! .badge.label.label-mentor { &nbsp; &nbsp; background-color: blue; &nbsp; &nbsp; border: 1px solid blue; } .badge.label.label-supporter { &nbsp; &nbsp; border: 1px solid red; &nbsp; &nbsp; background-color: #7dcc77; &nbsp; &nbsp; color: red; }