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 Character sheet and Psionics macros

So, I am pretty new to macros, and I have been trying to figure out a few things.  I managed to get a pretty basic spell macro, but I was wondering about two things. 1 - Is there a way for it to automatically deduct the power points from the character sheet? 2 - Augments.  I don't know if there is a way for it to maybe prompt me, asking how many times I want to augment, then roll the extra dice?  This is what I have at the moment: &{template:DnD35StdRoll} {{spellflag=true}} {{name= @{name|character_name} Repairs himself}} {{roll=[[3d8+[[@{name|level} ]] ]] }} {{notes=When laying your hands upon a construct that has at least 1 hit point remaining, you reknit its structure to repair damage it has taken. The power repairs 3d8 points of damage +1 point per manifester level. Constructs that are immune to psionics or magic cannot be repaired in this fashion. Augment: For every 2 additional power points you spend, this power repairs an additional 1d8 points of damage.}}
1472346541
Diana P
Pro
Sheet Author
To automatically deduct points, you would have to use an API script.  Using API scripts requires the campaign creator to be a pro-level subscriber. If you are not using the API, I would recommend using one of the 3 token bubbles to display the power points; it is easy to just click and subtract in the bubble then. One way to do the augment is just adding a query +[[floor(?{Augment by how many points?|0}/2)]]d8 [additional damage] to the roll: [[3d8+[[@{level}]]  +[[floor(?{Augment by how many points?|0}/2)]]d8 [additional damage] ]] this version of the query asks for how many points, divides that by 2, rounds down to the nearest whole number, and rolls that many d8's . Hope that helps.
1472348017

Edited 1472348559
That is perfect, thanks!  Too bad that it can't deduct the points automatically, but that's okay.  One other thing, though - I added a line into the subtag to show how many PP I have left:  {{subtags=Power Points remaining = [[ @{namepowerpoints}-2]] }} Would it be possible to also have that show the correct number if I augment?  Here is what I have so far (excluding notes): &{template:DnD35StdRoll} {{spellflag=true}} {{name= @{name|character_name} Repairs himself}} {{subtags=Power Points remaining = [[ @{name|powerpoints}-3]] }} {{roll=[[3d8+[[@{name|level} ]] +[[floor(?{Augment by how many points?|0}/2)]]d8 [additional damage] ]] }}
1472351420
Diana P
Pro
Sheet Author
How about Power Points remaining = [[ @{powerpoints}-(2+?{Augment by how many points?}) ]]  the query can be reused as long as you spell it the same each time and will only ask the one time.
Hm, that mooostly works.  It messes up a bit if I put in an odd number - it still takes off the extra point, even though it should round it down to 0.  I tried adding in the [[floor(?{Augment by how many points?|0}/2)]]  like for the additional damage, but it didnt work. Anyway, it's a minor issue, since all I have to do is remember that it takes 2 PP to augment, and not use odd numbers. Thank you so much for all the help.  Macros hurt my head, but it is so nice to see them working after all the work.
1472353315

Edited 1472353407
Andrew C
Marketplace Creator
Or do it "backwards" and ask how many extra d8 of damage you want to repair, then calculate the additional PsiPoints used. [[?{Augmented d8|0}d8+ 3d8+@{name|psioniclevel}]] ... {{ Power Points Left = [[@{name|powerpoints} - 2*?{Augmented d8} ]] }}
1472360226
Diana P
Pro
Sheet Author
ah.  Sorry about that.  You can account for it, but it takes a bit more math: Power Points remaining = [[ @{powerpoints} - (2+ (2*[[ floor(?{Augment by how many points?}/2) ]]) ) ]] Basically, take the calculation for the number of d8's and multiply it by 2 to get the number of power points used. :)
Wow, that is awesome.  I think I -almost- had it, but all the ] } ) had me a bit confused. Now, if I could make it tell me if I don't have enough PP left, it would be perfect.  Right now, if I augment too much, it still puts it in chat, but with a negative number for points remaining.  That will work though.  Thank you so much for the help.  Hopefully, I will be able to use this info to be able to make all my other power macros work the same too.
Oh, one last thing.  It is kind of minor, but is there any way to put the 'notes' section into the macro automatically?  Like taken from the notes section for the spell?  I don't mind copy/pasting the whole thing into the macro, but it would be a lot simpler to have it taken automatically. On a side note - I find it odd that there is a section on the sheet for power points, but there isn't really a section for powers.  I just have them all under level 0 divine spells for now.  Also, it would be nice if the arcane/divine were separate sections instead of side by side, so there was more room to see spell descriptions.  This is just kind of me griping a bit, but if anyone knows if there is a way to change the layout (as a player, not DM), please let me know!
1472708206
Diana P
Pro
Sheet Author
add {{notes= @{the-name-of-the-notes-section} }}    You can find the name by mousing over the field.  If there are any missing names, let me know, but I think I got them all. You can rename the spell sections.  Just click where it says Level 0 Divine and rename it to whatever you would like.  :) You can't change the sections; that's hard-coded into the html.  You can grab the corner and pull the notes section out to look at an individual spell, but I was going for compactness; the sheet was not intended to completely replace a paper version or one stored in some other on-line repository, but rather be an aide to playing by storing the information you wanted available to use the spells/abilities/skills/attacks/etc.
Oh, I am so dumb, I didn't even notice that it says you are the sheet author.  That's awesome.  Thank you so much for the help! Now I feel bad for complaining about the sheet.  
1472743643
Diana P
Pro
Sheet Author
Heh.  No problem and you are welcome.  :) You are allowed to complain.  That doesn't mean I'll change things, but you can complain. I know that not everyone likes my vision for the sheet, but then the reason the sheet exists is because I donated the one I made for my GM/the campaign I play in and if I let it drift to far from what I'm using it gets too difficult to maintain.  And I'm no html/css wizard so I can't program some of the fancy things that are used in sheets which are created by wizards.
For the most part, I think it's a really good sheet.   I was actually really surprised to even find a place for the power points.  A lot of the other character sheets I have seen (for roll20, and just other ones online), don't even have a place for them.  Poor little psionics always seems to get left out.
1472758108
Diana P
Pro
Sheet Author
:)  Someone requested it. And it was easy enough to add in so I did.