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

Hay need help with spells on the DnD5e Character Sheet

how can i get the spells as a macro like with attack? or call the roll like %{selected|NPCAction1}? id like to make my game as streamlined as posible and that means geting spells as macros
1427188078
Kryx
Pro
Sheet Author
API Scripter
Spells are repeatable I believe which means you cannot.
it might be able to be done, but not currently by referencing the name of the spell - you need to reference the cast button as a number because of the repeating section. the first spell in the list is tagged with_0, and counts up from there (the second spell in the list is _1, and so on.) I couldn't tell you how to get the exact names you'll need, but your macro, if it is possible at all, will need to point directly to the right section, and be named appropriately as a token action. (it will need to specifically reference the right spell level the table is stored in, and then count down to the right spell.) I remember doing some experimenting with this, and decided it was simpler to simply require my players to pull the character sheet up and then click the cast spell button.
1427190440
Actoba
Pro
Sheet Author
You cannot directly reference the macro buttons in a repeating section. This is a limitation of the repeating section functionailty.
1427354796

Edited 1427354869
hes i worked on this for sum time and was not able to get it working at all. its a shame but thats just how it is. whuld like to see this added to the wike page to clear it up for outher people that may be looking to do the same thing i was. thanks people for getting back to me on this you have saved me wasting more of my time trying to get it working
You can create token macros that duplicate the attack rolls though for those spells that you use all the time. You wouldn't want to do this for everything. Cast the spell using the spellbook button; click in the chat pane and press the up arrow to get the last command output; copy all and paste into a macro. so it'll look like this: &{template:5eDefault} {{spell=1}} {{title=Guiding Bolt}} {{subheader=@{Moonshadow|character_name}}} {{subheaderright= Level 1}} {{subheader2= }} {{spellshowinfoblock=1}} {{spellshowdesc=1}} {{spelldescription=Next attack roll made against this target before the end of your next turn has advantage}} {{spellshowhigherlvl=1}} {{spellhigherlevel=Plus 1d6 for each slot level above 1st}} {{spellshowattack=1}} {{spellattack=[[1d20 + @{Moonshadow|wisdom_mod} + @{Moonshadow|PB} + (@{Moonshadow|global_spell_attack_bonus})]]}} {{spellshowattackadv=1}} {{spellattackadv=[[1d20 + @{Moonshadow|wisdom_mod} + @{Moonshadow|PB} + (@{Moonshadow|global_spell_attack_bonus})]]}} 0 0 {{spellshowdamage=1}} {{spelldamage=[[4d6 + 0 + 0 + (@{Moonshadow|global_spell_damage_bonus}) + 0d0]] Radiant}} {{spellcancrit=1}} {{spellcritdamage=Additional [[4d6]] damage}} 0 {{spellcasttime=1 action}} {{spellduration=1}} {{spelltarget=1 creature}} {{spellrange=120}} {{spellgainedfrom=Cleric}} {{spellcomponents=}} @{Moonshadow|classactionspellcast}