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

3.5 Sheet adding damage to attack

So, I have a weapon that is deep crystal, which will let me add 2d6 damage if I spend 2 power points when I attack.  I am not sure how to get it to ask properly and roll the damage.  This is what I have for the damage roll: 1d6 + @{weapon2damagestat}[Weapon Dmg Ability] +@{weapon2enh}[Weapon Enh] +@{weapon2specialize}[Weapon Spec]+?{Psionic Enhancement?|0}[2d6] I was hoping that if I put a 1 in the box that comes up, it would roll the extra 2d6, but it doesn't, it just adds 1.  I am terrible with the syntax of these macros.  Help please and thank you!
1478321576

Edited 1478321630
Diana P
Pro
Sheet Author
Change ?{Psionic Enhancement?|0}[2d6] to ?{Psionic Enhancement?|0} *(2d6) In a calculation the single square brackets is a label so you need to multiply the one (or zero) vs the 2d6 in parenthesis to get it to roll the value and add it in. you could add the label to it as well: ?{Psionic Enhancement?|0} *(2d6) [Psionic Enhancement] so you can read the label on the mouseover.
Thank you so much.  You are a total lifesaver, and a macro magician!
I have another question for you, macro magician!  I currently have my psionic macro set to show me how many PP I have remaining by doing this (which you showed me how to do): subtags=Power Points remaining = [[ @{NAME|powerpoints}-(3+(2*[[floor(?{Augment by how many points?|0}/2) ]]) ) ]] }} Now, I started using the green 'bar 3' above my token to track power points....  is there any way to pull that number to do the math and show the remaining?
1481350556
Diana P
Pro
Sheet Author
Well, if it helps, bar 3 can be accessed by @{bar3} though you may need to use the selected keyword with it (and select the token to use it).  So you would use @{selected|bar3} instead of powerpoints. However, you can actually go into the token and set bar 3 to represent the powerpoints attribute (click on the dropdown menu next to bar 3 and type powerpoints into it and select that attribute).  If the token is saved that way, every time you update bar 3, it should update the powerpoints attribute and vice-versa. Hope that helps.
Hm, the second way would be best, but I don't actually see any dropdown menus by the bars....  can only the GM see those?
1481406694
Diana P
Pro
Sheet Author
Yes, unfortunately.  That is a GM-only function.
Ah, okay.  I will ask my GM about it then.  Thanks a bunch!
1481412227
Diana P
Pro
Sheet Author
No problem. Happy Gaming!