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 .
×

Token Action Spellbook.

1772050219
Andrey S.
Plus
Translator
Hello! I was trying to make a macro for my 2024 character sheet - a simple spellbook that alows a player to select a cantrip to cast, but when I try to make a reference to  an action of the token (in the Character sheet) I get only this output instead of the macros actually working:  &{template:default} {{name=@{selected|token_name} casts a spell ?{Select a spell|Sacred Flame,#Sacred_flame |Toll the Dead,#Toll_the_Dead }}} What am I doing wrong? Is it possible to make a propper working dropdown menu of spells so that avoid using chat menues?
This seems like it should be possible but my roll query/macro-fu is not up to par. I know Gauss has some madness going on for casting spells on the 2014 sheet, but that uses some dark magic. I'll play around with it a bit to see if I can't get it figured out, but I'm sure someone more knowledgeable will come along soon. For my games I made a custom mod to build the chat menus for me and store them in a custom attribute. But it's buggy as heck and I definitely get your general desire to try and do it without chat menus! Here's what my chat menu version ended up looking like.
Do you have a Collections macro named ‘Sacred_flame’ or an Ability on the character named ‘Sacred_flame’?  #Sacred_flame will call a Collections macro, not an Ability on a character sheet. To call an Ability, the command is %{Sacred_flame}. The caveat is that whatever is contained in the macro or ability will be parsed before the query, so if the contents of the macro or ability has any ‘control’ characters (e.g. } , | ) then the query will break.