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

Spellcast Macros and Custom Spells

I have edited a popular spellcast macro to whisper the spell list to the player. The only problem I am having is that it wont work with custom spells. I have tried non srd spells and homebrew spells but neither work. I thought at first it was just a limited number of spells allowed (17) but when I rearrange spells and move the custom/homebrew into the top 16 macro crashes. Here is the macro: /w @{selected|token_name} &{template:default}{{name=@{selected|character_name} Spellcasting }}{{ Spell DC @{selected|spell_save_dc} = @{selected|spell_attack_bonus} bonus to hit with spell attacks **First Level** [@{repeating_spell-1_$0_spellname}](~@{character_name}|repeating_spell-1_$0_spell)[P][@{repeating_spell-1_$0_spellprepared}][R][@{repeating_spell-1_$0_spellritual}] [@{repeating_spell-1_$1_spellname}](~@{character_name}|repeating_spell-1_$1_spell)[P][@{repeating_spell-1_$1_spellprepared}][R][@{repeating_spell-1_$1_spellritual}] [@{repeating_spell-1_$2_spellname}](~@{character_name}|repeating_spell-1_$2_spell)[P][@{repeating_spell-1_$2_spellprepared}][R][@{repeating_spell-1_$2_spellritual}] [@{repeating_spell-1_$3_spellname}](~@{character_name}|repeating_spell-1_$3_spell)[P][@{repeating_spell-1_$3_spellprepared}][R][@{repeating_spell-1_$3_spellritual}] [@{repeating_spell-1_$4_spellname}](~@{character_name}|repeating_spell-1_$4_spell)[P][@{repeating_spell-1_$4_spellprepared}][R][@{repeating_spell-1_$4_spellritual}] [@{repeating_spell-1_$5_spellname}](~@{character_name}|repeating_spell-1_$5_spell)[P][@{repeating_spell-1_$5_spellprepared}][R][@{repeating_spell-1_$5_spellritual}] [@{repeating_spell-1_$6_spellname}](~@{character_name}|repeating_spell-1_$6_spell)[P][@{repeating_spell-1_$6_spellprepared}][R][@{repeating_spell-1_$6_spellritual}] [@{repeating_spell-1_$7_spellname}](~@{character_name}|repeating_spell-1_$7_spell)[P][@{repeating_spell-1_$7_spellprepared}][R][@{repeating_spell-1_$7_spellritual}] [@{repeating_spell-1_$8_spellname}](~@{character_name}|repeating_spell-1_$8_spell)[P][@{repeating_spell-1_$8_spellprepared}][R][@{repeating_spell-1_$8_spellritual}] [@{repeating_spell-1_$9_spellname}](~@{character_name}|repeating_spell-1_$9_spell)[P][@{repeating_spell-1_$9_spellprepared}][R][@{repeating_spell-1_$9_spellritual}] [@{repeating_spell-1_$10_spellname}](~@{character_name}|repeating_spell-1_$10_spell)[P][@{repeating_spell-1_$10_spellprepared}][R][@{repeating_spell-1_$10_spellritual}] [@{repeating_spell-1_$11_spellname}](~@{character_name}|repeating_spell-1_$11_spell)[P][@{repeating_spell-1_$11_spellprepared}][R][@{repeating_spell-1_$11_spellritual}] [@{repeating_spell-1_$12_spellname}](~@{character_name}|repeating_spell-1_$12_spell)[P][@{repeating_spell-1_$12_spellprepared}][R][@{repeating_spell-1_$12_spellritual}][@{repeating_spell-1_$13_spellname}](~@{character_name}|repeating_spell-1_$13_spell)[P][@{repeating_spell-1_$13_spellprepared}][R][@{repeating_spell-1_$13_spellritual}] [@{repeating_spell-1_$14_spellname}](~@{character_name}|repeating_spell-1_$14_spell)[P][@{repeating_spell-1_$14_spellprepared}][R][@{repeating_spell-1_$14_spellritual}] [@{repeating_spell-1_$15_spellname}](~@{character_name}|repeating_spell-1_$15_spell)[P][@{repeating_spell-1_$15_spellprepared}][R][@{repeating_spell-1_$15_spellritual}] [@{repeating_spell-1_$16_spellname}](~@{character_name}|repeating_spell-1_$16_spell)[P][@{repeating_spell-1_$16_spellprepared}][R][@{repeating_spell-1_$16_spellritual}] [@{repeating_spell-1_$17_spellname}](~@{character_name}|repeating_spell-1_$17_spell)[P][@{repeating_spell-1_$17_spellprepared}][R][@{repeating_spell-1_$17_spellritual}] }}
Also, when I change spell 17 to repeat one of the previous numbers it works and repeats that spell so macro length isnt an issue. Can custom/non SRD spells only be used on non-free accounts for macros? Direct clicking troublesome spell from sheet produces desired results as well.
Maybe it has to do with the fact that the custom spells typically don't come with an attached entry in the attacks section on the first page unless you manually set them via swapping from spellcard to attack?
1618779819
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The actual _$n_ order on repeating sections does not always match what is displayed, unfortunately, especially if they are calculated or you have done any reordering. However, once an item is on your sheet, it has no link back to the compendium. It doesn't care about SRD/PHB/Homebrew. I'll make the obligatory warning about the number of spells on a sheet, which you are totally free to ignore if you wish. With 17 first level spells, it looks like you are including every spell possible , not every spell prepared . This is generally advised against, since the number of data attributes on the sheet increases enormously, and can lead to bloat and lag, particularly if the practice is carried across multiple characters. The suggested practice is to only include the spells on the sheet that the character has current access to, and add and delete as needed.This is less possible to do with home brew items of course, since personal compendiums are not yet a thing, and unlikely to happen in the near future.