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

[D&D 5e] Sorcerer Spells

1521517613

Edited 1521518054
Hello guys! In a game of Out of the Abyss I play Sorcerer and thought about creating a MACRO to facilitate the plays. I was able to develop a MACRO for each spell and I was able to create a template that could support each MACRO in one, but it is giving error! A SPELL MACRO: &{template:atkdmg} {{mod=+[[@{charisma_mod} + @{pb}]]}} {{rname=**SPELL**}} {{r1=[[1d20 + @{charisma_mod} + @{pb}]]}} {{normal=1}} {{attack=1}} {{range=72 meters (36)}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10]]}} {{dmg1type=fire}} {{crit1=[[1d10]]}} {{charname=@{character_name}}} The MACRO above, like others, I would like to put in this format: ?{Spell| Cantrip, ?{Select| Minor Illusion, value1C | Fire Bolt, value2C | Ray Of Frost, value3C | Sword Burst, value4C | Chill Touch, value5C } | Level 1, ?{Select| Mage Armor, value1L1 | Ice Knife, value2L1 | Burning Hands, value3L1 | Magic Missile, value4L1 } | Level 2, ?{Select| Enlarge/Reduce, value1L2 | Darkness, value2L2 | Aganazzar's Scorcher, value3L2 } } Where, each "value" would be replaced by a SPELL MACRO. However, it does not work and use the shortcuts of } | , ]] are not working. Can you help me? Thanks! P.S: Here is the second real MACRO, when I wrote here he converted the shortcuts.
1521535389
Ziechael
Forum Champion
Sheet Author
API Scripter
You are on the right track... to get it to work fully you'd need to do the html replacements in the macro being called as well... however if you wanted to call that macro without the menu at some point it would send as pure text since the html would effectively break it as a standalone 'thing'... you can get round this by using the menu to call a button to the chat which you then click to run the macro, means an extra click but saves a LOT of recoding and pain. Take a look at  this thread where I discuss my set up at length :) Hope it helps!
1521561064

Edited 1521561122
Yes, it's painful, but I still want her this way, haha. When I use shortcurts in the first MACRO shown, it does not play some values or simply gives error. I don't know how to continue, have you any idea?
1521561930

Edited 1521562232
Ziechael
Forum Champion
Sheet Author
API Scripter
Quickest summary of the thread I linked would be: Keep your query macro as you have it in the screen shot (html enabled) Set up your spell macros with html in the required places too as below: &{template:atkdmg} {{mod=+[[@{charisma_mod} + @{pb}]]}} {{rname=**SPELL**}} {{r1=[[1d20 + @{charisma_mod} + @{pb}]]}} {{normal=1}} {{attack=1}} {{range=72 meters (36)}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10]]}} {{dmg1type=fire}} {{crit1=[[1d10]]}} {{charname=@{character_name}}} can't test at present but may require double nesting as below instead: &{template:atkdmg} {{mod=+[[@{charisma_mod} + @{pb}]]}} {{rname=**SPELL**}} {{r1=[[1d20 + @{charisma_mod} + @{pb}]]}} {{normal=1}} {{attack=1}} {{range=72 meters (36)}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10]]}} {{dmg1type=fire}} {{crit1=[[1d10]]}} {{charname=@{character_name}}} If you still get errors with that setup then there could be issues with your attribute names, knowing what the specific errors are would really help.
So I came up with your two examples and it keeps going wrong. I have already tested the atributte names and they are correct as well. It must be some bug or limitation of the Roll20, I don't know. Anyway, thank you!
1521563283
Ziechael
Forum Champion
Sheet Author
API Scripter
Ok, had time to test... you need the first version and since you are calling them as global macros you also need selection syntax for attributes: &{template:atkdmg} {{mod=+[[@{ selected| charisma_mod} + @{ selected| pb}]]}} {{rname=**SPELL**}} {{r1=[[1d20 + @{ selected| charisma_mod} + @{ selected| pb}]]}} {{normal=1}} {{attack=1}} {{range=72 meters (36)}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10]]}} {{dmg1type=fire}} {{crit1=[[1d10]]}} {{charname=@{ selected| character_name}}}
1521688740

Edited 1521688786
I was noticing that in the first post, note that using the @{selected| method requires it to be used as a Token Action (since you'll need that token selected anyways to get the correct stats), that Token ALSO MUST be linked to your Character Sheet, as that's where it's actually grabbing the attribute from. Without it finding a Token selected, you will likely get one of only 2 errors if any, both will make reference to not having a Token Selected. for reference, I use This
1521720963
Ziechael
Forum Champion
Sheet Author
API Scripter
Without a token linked to a sheet you can just replace the 'selected' with a hard-coded character name. @{selected| doesn't actually HAVE to be a token action but does require a linked token to work from, that much is true. Selected and Target just allow for universal macros but if you are crafting something for a single player than hard-coded works fine... simply replace @{selected| with @{Blue64| (or whatever your character journal is called!).