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

Spell-tracking Macro

1535377801

Edited 1535378205
Hey everyone, I was wondering if someone could give me a hand with spell tracking macros. I created most of my macros in a way to select targets and select what level of spell slot to use, as well as calculate the heal or damage so it could be handled in one macro but the spell slot does not decrease on the character sheet. Here is an example of Cure Wounds: &amp;{template:spell} {{?{Spell slot level|1|2|3|4|5|6|7|8|9}}} {{spelllevel=?{Spell slot level}}} {{level= [[ @{Ilya|spellcasting_ability} [[?{Spell slot level}]]d8]](Level ?{Spell slot level}) }} {{name=Cure Wounds on @{target|token_name}}} {{castingtime=1 Acton}} {{range=Touch}} {{target=target}} {{v=1}} {{s=1}} {{duration=Instantaneous}} {{description=A creature you touch regains a number of hit points equal to 1d8 + your spellcasting ability modifier. This spell has no effect on undead or constructs.}} {{athigherlevels=When you cast this spell using a spell slot of 2nd level or higher, the Healing increases by 1d8 for each slot level above 1st.}} {{charname=Ilya}} I cant seem to get the spell slots to decrease even when I have spelllevel attribute and the right charname, although it works when I select spell from the spell section of the character sheet.&nbsp; The current macro displays this but in the spell template so its all together: Cure Wounds on Leo <span class="userscript-inlinerollresult showtip tipsy-n-right" title=" Rolling 1d8 + 5+ = ( 4 )" style="background-color: rgb( 254 , 246 , 142 ) ; border: 2px solid rgb( 254 , 246 , 142 ) ; padding: 0px 3px ; font-weight: bold ; cursor: help ; font-size: 1.1em">4 (Level 1) Casting Time: &nbsp; 1 Acton Range: &nbsp; Touch Target: &nbsp; target Components: &nbsp; V, S Duration: &nbsp; Instantaneous A creature you touch regains a number of hit points equal to 1d8 + your spellcasting ability modifier. This spell has no effect on undead or constructs. At Higher Levels .&nbsp; When you cast this spell using a spell slot of 2nd level or higher, the Healing increases by 1d8 for each slot level above 1st.
1535378812
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Modifying attributes via chat message requires access to the api, which requires that the creator of the game be a pro subscriber.
Scott C. said: Modifying attributes via chat message requires access to the api, which requires that the creator of the game be a pro subscriber. Yes the creator of the game is a pro subscriber, and has activated the 5E OGL companion script. So it works when I select a spell via the spell slot page but cant get it to work through a macro yet.