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

Macro sheet reference not working

Trying to set up macros by editing the roll20 base spell macro for doom, and everything seems to work but the concentration check which seems to roll a range. In all tests it only comes back with a result of 1. I've tried changing it to @{concentrationcheck} but that doesn't seem to work either. Is there something missing or incorrect in this? (edited macro for dancing lights spell below, beleived coding problem in bold) &{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts Dancing Lights }} {{School:=Evocation (Light)}} {{Level: =Arcane Attunement}} {{Comp'nts:=V, S}} {{Casting Time:= 1 std action}} {{Range:= Medium ([[100+10*@{casterlevel2}]]ft)}} {{Effect:= 4 lights, all within 10’ radius}} {{Duration:= 1 min.}} {{compcheck= Conc:[[{1d20+4+@{concentration} }>?{Concentration DC=15+Spell Level or 10+Damage Received|15}]] }} {{succeedcheck=Ghostly lanterns appear around him}} {{failcheck=Small motes of light pop around him as his spell fizzles }} {{notes=Dancing Lights creates up to four lights that resemble lanterns (Bright light to 20', shadowy to 40') for 1 Minute. They must stay within a 10-foot-radius area in relation to each other but otherwise move as desired (no concentration required): forward or back, up or down, straight or turning corners, or the like. The lights can move up to 100 feet per round. A light winks out if the distance between you and it exceeds range.}}
1429920573

Edited 1429921748
Diana P
Pro
Sheet Author
Hi Justin, {{compcheck= Conc:[[{1d20+4+@{concentration} }>?{Concentration DC=15+Spell Level or 10+Damage Received|15}]] }} is a comparison. It displays a 1 for a success (your roll was greater than or equal to the Concentration DC which if you just hit return will be a 15) or a zero (0) for a failure. On a success (1), the roll template will then display the succeedcheck information and on a failure, it will display the failcheck information. the 15+Spell Level or 10+Damage Received is just a reminder on what the concentration DC could be. If your tests never rolled under a 15 and you were just hitting enter for that query, you would not have seen a failure. Hope that helps a bit. Edit: oh, One caveat: that roll template (DnD35StdRoll) is one that's built into the D&D3.5 sheet. Roll templates on other sheets may not work the same way; we've all programmed them differently, I am certain. :)
Okay, the 0/1 makes sense now...just not all the other things that showed when cursor hovered over result. Thanks!
1429926859
Diana P
Pro
Sheet Author
:) when you mouse over it, it will look something like: <span original-title=" Rolling {1d20+((floor(((13 + 0 + 0)) / 2) - 5) +13 +0 ) }>16 = {( 8 )+((floor(((13+0+0))/2)-5)+13+0)}">Rolling {1d20+((floor(((13 + 0 + 0)) / 2) - 5) +13 +0 ) }&gt;15 = {(8)+((floor(((13+0+0))/2)-5)+13+0)} everything left of the equal sign is telling you what the roll you are calling is, what is right of the equal sign is what the roll actually is. the (floor(((13 + 0 + 0)) / 2) - 5) is calculating your Ability score total bonus. The character I used has a Con of 13, no misc bonus and no temp bonus so the total bonus is calculated by dividing the 13 by 2 and then subtracting 5. That will give her a total ability score bonus of 1. In this case, she also has 13 ranks in Concentration and no misc mods to Concentration (the last zero). And the (8) on the right side of the equal sign show that I rolled an 8. So my total was 22 which beats the 15 handily and it displayed a 1 for success. Yours will have an extra 4 in it from the +4 you put in on your roll but should otherwise look similar.
what is the floor reference actually to then? Hopefully not being a pain, just trying to understand the macros better...
1429930011

Edited 1429930129
Diana P
Pro
Sheet Author
oh. the floor is in to round it off. Floor says round down to the nearest whole number. (13/2 is 6.5) D&D rounds the fractions down in this case so that is what it is doing. Edit: not a pain at all. Learning about macros is a good thing... And I happen to be rather familiar with what's on the D&D3.5 sheet since I wrote it. :)
I see, that does make sense. Nice job too, I'm really digging the sheet :D
1429943384
Diana P
Pro
Sheet Author
*grins* thanks. Do please ask if you've further questions that I (or others) can help you with.