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

macros to choose between my spells

I created macros that allow me to choose between my various spells based on level, and I wanted to create a macro that would allow me to choose the level of the spell. But the macro doesn't work and gives me an error, I don't understand why. Anyone have any advice? ?{Di che livello?|Lv 0,%{BubbleBoy|Spellbook-Cantrips}|Lv 1,%{BubbleBoy|Spellbook-Level-1}|Lv 2,%{BubbleBoy|Spellbook-Level-2}|Lv 3,%{BubbleBoy|Spellbook-Level-3}|Lv 4,%{BubbleBoy|Spellbook-Level-4}|Lv 5,%{BubbleBoy|Spellbook-Level-5}|Lv 6,%{BubbleBoy|Spellbook-Level-6}|Lv 7,%{BubbleBoy|Spellbook-Level-7}|Lv 8,%{BubbleBoy|Spellbook-Level-8}|Lv 9,%{BubbleBoy|Spellbook-Level-9}} Thanks in advance
Small clarification, they are not exactly macros, they are the Abilities of the token/pg
What game are you playing, and which character sheet are you using? E.g. D&D 5th edition using the “D&D 2014 by Roll20” sheet.  Are you playing in a Jumpgate game or a legacy game? Please post the full macro that you’re using, as well if it is in your Journal as a Collections macro, or on a character sheet as an Ability   The most likely reason is nested queries , but it’s impossible to know without more information. If that’s the case then you’ll probably want to change to use Chat Menus instead, such as the  Statblock Macromule . 
Yes, sorry if I was vague, I was in a hurry. Here are the details: It should be "D&D 2014 by Roll20", and we are in legacy game These are two examples of spell macros: /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} Spellbook Cantrips}} {{[Chill Touch](~selected|repeating_spell-cantrip_$2_spell) }} {{[Mage Hand](~selected|repeating_spell-cantrip_$3_spell) }} {{[Message](~selected|repeating_spell-cantrip_$4_spell) }} {{[Minor Illusion](~selected|repeating_spell-cantrip_$0_spell) }} {{[Ray of Frost](~selected|repeating_spell-cantrip_$1_spell) }} And /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} Spellbook Level 1 (@{Selected|lvl1_slots_expended}/@{Selected|lvl1_slots_total})}} {{[Detect Magic](~selected|repeating_spell-1_$1_spell) }} {{[Disguise Self](~selected|repeating_spell-1_$3_spell) }} {{[Find Familiar](~selected|repeating_spell-1_$4_spell) }} {{[Mage Armor](~selected|repeating_spell-1_$2_spell) }} {{[Magic Missile](~selected|repeating_spell-1_$5_spell) }} {{[Shield](~selected|repeating_spell-1_$0_spell) }} {{[Silvery Barbs](~selected|repeating_spell-1_$6_spell) }} Here are some reference images. Spellbooks work, it's just the "spell" Abilities that don't work. As mentioned, they are among the PG's Abilities. If I move between the Macros the Spellbooks don't work either The code: ?{Di che livello?|Lv 0,%{BubbleBoy|Spellbook-Cantrips}|Lv 1,%{BubbleBoy|Spellbook-Level-1}|Lv 2,%{BubbleBoy|Spellbook-Level-2}|Lv 3,%{BubbleBoy|Spellbook-Level-3}|Lv 4,%{BubbleBoy|Spellbook-Level-4}|Lv 5,%{BubbleBoy|Spellbook-Level-5}|Lv 6,%{BubbleBoy|Spellbook-Level-6}|Lv 7,%{BubbleBoy|Spellbook-Level-7}|Lv 8,%{BubbleBoy|Spellbook-Level-8}|Lv 9,%{BubbleBoy|Spellbook-Level-9}}
It looks like your images didn't post correctly. The reason the spellbooks don't work is that the contents  of the results are being resolved inside of the query, instead of waiting until the query selection is chosen. That's a quirk of the Roll20 Order of Operations. That's also why I suggest using a Chat Menu instead. The Statblock Macromule  will output a list of all of the spells on a D&D 2014 character's spell list, and has options to hide unprepared spells, or to show them in a different color. It also has hoverable tooltips to show brief spell info, and buttons to just show the complete spell description to the player who is using the chat menu.  The Statblock Macromule is free to use for any subscription level, but because you have a Plus subscription, you can import it and start using it in your game in just a few minutes.
will output a list of all of the spells on a D&D 2014 character's spell list, and has options to hide unprepared spells, or to show them in a different color. It also has hoverable tooltips to show brief spell info, and buttons to just show the complete spell description to the player who is using the chat menu. I tried looking at the link you sent me, but I didn't understand exactly how it works. Basically I download this character of yours (MacroMule) and then write my character on top of it? Race, class, stat etc? Jarren said: It looks like your images didn't post correctly. Yes, I sent them but it kept giving me an error when sharing the response. It said "page not found", on the third try I gave up, but I forgot to remove the phrase sorry
1735593179

Edited 1735595035
Lyt said: I tried looking at the link you sent me, but I didn't understand exactly how it works. Basically I download this character of yours (MacroMule) and then write my character on top of it? Race, class, stat etc? Close, but it's simpler than that. A 'mule' character carries all of the macros so that you don't have to install them on any other character sheets. You only need all of the macros on the Statmule character, and your current characters don't need to be modified in any way. Edit: I just realized that you may not be the GM for your game, which may prevent you from importing the Statmule character - if that's the case then you can take the option of writing your character on top of the Statmule (or copying all of the Statmule Attributes & Abilities onto your character). Step 1 : Import (download) the Statmule character into your game. (I think as a Plus user you should be able to do this even if your GM is not a Plus/Pro subscriber and it shouldn't count against any free character imports for the game.) Step 2 : Create Collections macros and set them as Token Actions. (This should still be possible if you're not the GM, but you won't be able to change the 'Visible to Players' section.) (This is an older image, but should give you an idea of what your Collections tab should look like for these macros.) Then select any token (PC or NPC) and click a Token Action button to call a chat menu. Step 3 (optional): There are several things that you can customize on the Statmule character itself, such as whether unprepared spells are in a different color or not shown at all; Dark Mode versus Light Mode; whisper settings, etc.
Wow, I tried it now and it's brilliant I haven't figured out how to do the customization yet, but the other stuff is genius