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

Need Guidance on Macro for 3.5 Sheet

So, probably a simple Macro question for you most of you, but still very much a newbie when it comes to this stuff. I'm trying to work out a psychic power macro for the 3.5 Character Sheet and I'm nearly stuck at the final part. I'm trying to have the amount of augment points shown on the table for convivence sake. I'd also like to have the amount of points spent increase the save DC by a 2:1 ratio, as per the power description, as well as have a Xd10 setup for the additional damage from the augment in the notes section. &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts [Mind Thrust](<a href="https://www.d20srd.org/srd/psionic/powers/mindThrust.htm" rel="nofollow">https://www.d20srd.org/srd/psionic/powers/mindThrust.htm</a>) on @{target|token_name}}} {{School:=Telepathy [Mind-Affecting] }} {{Level:=Psion/wilder 1}} {{Casting Time:= 1 std action}} {{Range:=Close ([[ 25+5*@{casterlevel}/2 ]] ft)}} {{Target:= One Creature}} {{Duration:= Instantaneous}} {{Saving Throw:= Will Negates DC [[ @{spelldc1} + @{sf-evocation} ]]}} {{Spell Resist.:=Yes,[[1d20+@{casterlevel}+@{spellpen} ]] vs spell resistance.}} ?{Concentration?|No (auto-success),{{compcheck=No Concentration:[[{1d1cs&gt;1&amp;#125;&gt;0]]&amp;#125;&amp;#125;|Casting Defensively,{{compcheck=Casting Defensively:[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[15+1]] ]]&amp;#125;&amp;#125;|Custom DC,{{compcheck=Custom DC(?{What DC?&amp;#125;):[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[?{What DC?&amp;#125;]] ]]&amp;#125;&amp;#125;} {{succeedcheck=- Das ist gut, ja?}} {{failcheck=- Das ist nicht gut.}} {{Augment Points:=?{Augment? (1PP/additional d10 damage)|0} }} {{notes=You instantly deliver a massive assault on the thought pathways of any one creature, dealing [[1d10]] dmg **Augment** For every additional power point you spend, this power’s damage increases by 1d10 damage. For each extra 2d10 points of damage, this power’s save DC increases by 1.}} Unfortunately, I'm not sure how to get it working properly for that last part, but when I at least try to do the first thing, it splits it apart from the table like so: Would love some guidance on how to do the rest of the things I want, but moreso want to know where I'm getting it wrong for the first part. Once I get this taken care of, I'm good for the rest of the powers I want to add, but I just need to figure out these last few things so I can get it going before the next session.
1613298063
Ziechael
Forum Champion
Sheet Author
API Scripter
Welcome to fun World of advanced macro creation, it has some great highs but a LOT of lows lol. Something like this should do it: &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts [Mind Thrust](<a href="https://www.d20srd.org/srd/psionic/powers/mindThrust.htm" rel="nofollow">https://www.d20srd.org/srd/psionic/powers/mindThrust.htm</a>) on @{target|token_name}}} {{School:=Telepathy [Mind-Affecting] }} {{Level:=Psion/wilder 1}} {{Casting Time:= 1 std action}} {{Range:=Close ([[ 25+5*@{casterlevel}/2 ]] ft)}} {{Target:= One Creature}} {{Duration:= Instantaneous}} {{Saving Throw:= Will Negates DC [[ @{spelldc1} + @{sf-evocation} + floor(?{Augment? (1PP/additional d10 damage)}/2) ]]}} {{Spell Resist.:=Yes,[[1d20+@{casterlevel}+@{spellpen} ]] vs spell resistance.}} ?{Concentration?|No (auto-success),{{compcheck=No Concentration:[[{1d1cs&gt;1&amp;#125;&gt;0]]&amp;#125;&amp;#125;|Casting Defensively,{{compcheck=Casting Defensively:[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[15+1]] ]]&amp;#125;&amp;#125;|Custom DC,{{compcheck=Custom DC(?{What DC?&amp;#125;):[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[?{What DC?&amp;#125;]] ]]&amp;#125;&amp;#125;} {{succeedcheck=- Das ist gut, ja?}} {{failcheck=- Das ist nicht gut.}} {{Augment Points:=?{Augment? (1PP/additional d10 damage)|0} }} {{notes=You instantly deliver a massive assault on the thought pathways of any one creature, dealing [[1d10 + ?{Augment? (1PP/additional d10 damage)}d10 ]] dmg **Augment - ( ?{Augment? (1PP/additional d10 damage)} spent) ** For every additional power point you spend, this power’s damage increases by 1d10 damage. For each extra 2d10 points of damage, this power’s save DC increases by 1.}} The advantage you have with this particular use case is that it is a straight reuse of the same query with different math applications... these psionic abilities can get messy with purely text based changes. Let me know if you need any of it explaining in more depth.
No, that actually makes total sense to me now that I see it.&nbsp; Greatly appreciate it!
1613299270
Ziechael
Forum Champion
Sheet Author
API Scripter
Just testing now ('cause I'm like that) and don't think I accounted for a query somewhere in there, I'll find the issue and post a finalised version in a minute :D
1613299736
Ziechael
Forum Champion
Sheet Author
API Scripter
Here we are, the actually tested &nbsp;version lol: &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts [Mind Thrust](<a href="https://www.d20srd.org/srd/psionic/powers/mindThrust.htm" rel="nofollow">https://www.d20srd.org/srd/psionic/powers/mindThrust.htm</a>) on @{target|token_name}}} {{School:=Telepathy [Mind-Affecting] }} {{Level:=Psion/wilder 1}} {{Casting Time:= 1 std action}} {{Range:=Close ([[ 25+5*@{casterlevel}/2 ]] ft)}} {{Target:= One Creature}} {{Duration:= Instantaneous}} {{Saving Throw:= Will Negates DC [[ @{spelldc1} + @{sf-evocation} + floor(?{Augment? (1PP/additional d10 damage)|0}/2) ]]}} {{Spell Resist.:=Yes,[[1d20+@{casterlevel}+@{spellpen} ]] vs spell resistance.}}&nbsp; ?{Concentration?|No (auto-success),{{compcheck=No Concentration:[[{1d1cs&gt;1&amp;#125;&gt;0]]&amp;#125;&amp;#125;|Casting Defensively,{{compcheck=Casting Defensively:[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[15+1]] ]]&amp;#125;&amp;#125;|Custom DC,{{compcheck=Custom DC(?{What DC?&amp;#125;):[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[?{What DC?&amp;#125;]] ]]&amp;#125;&amp;#125;} {{succeedcheck=- Das ist gut, ja?}} {{failcheck=- Das ist nicht gut.}} {{Augment Points:=?{Augment? (1PP/additional d10 damage)} }} {{notes=You instantly deliver a massive assault on the thought pathways of any one creature, dealing&nbsp; [[1d10 + ?{Augment? (1PP/additional d10 damage)}d10 ]] dmg **Augment** For every additional power point you spend, this power’s damage increases by 1d10 damage. For each extra 2d10 points of damage, this power’s save DC increases by 1.}} I'd put the full query below the first call so it was... odd... still functional but... odd. I'd also left some line breaks in which was ruining your display. You can include line breaks but only within template sections, having them between will break the template as you've likely seen. Top tip, with query calls that need to be repeated, you can include them in a 'hidden' section at the top of the template for ease of organisation and then call them in the template itself with just the query name: ! ?{Query 1|0} ?{Query 2|Strength,@{str}|Dexterity,@{dex}} &amp;{template:default}{{name=Roll}}{{result=[[ 1d20 + ?{Query 2} + ?{Query 1} ]] }} Not a tip for every situation but a good thing to be aware of ;)
1613373760

Edited 1613377613
Yeah, I had actually caught that as I was polishing the roll the code off. Actually intended to post the end results of it later on today, just in case someone actually wanted to copy this for their own use, but you've taken care of that for me. Happy to have the step saved for me! Also, hilariously enough, I was already starting to work on the touch attack method, but you've done the work for me. Again, happy to have that step taken care of :) I actually ended up leaving that the augment points spent where it was before because I liked how it looked and instead chose to change the augment section to the Power Point spent section. Playing with all of this now and I'll show what I got by the end of it. Thank you so much again. I'll keep these tidbits in mind; still got a lot to learn with these things. [edit] Took what you showed me and applied it to another power. Look exactly how I want it now, and I feel a little bit more confident in doing more things with macros now than I did yesterday. ({?{Addl Bonus/Penalty|0} ?{Query 2|Strength,@{str-mod}|Dexterity,@{dex-mod}}&amp;{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts [Hammer](<a href="https://www.d20srd.org/srd/psionic/powers/hammer.htm" rel="nofollow">https://www.d20srd.org/srd/psionic/powers/hammer.htm</a>)}} {{School:=Psychometabolism}} {{Display:=Auditory and material}} {{Level:=Psion/wilder 1, Psychic Warrior 1}} {{Casting Time:= 1 swift action}} {{Range:=Touch}} {{Target:= Creature Touched}} {{Duration:=[[1+(?{Augment? (1PP/additional round)}/1) ]] round(s) }} {{Saving Throw:= None}} {{Spell Resist.:=Yes,[[1d20+@{casterlevel}+@{spellpen} ]] vs spell resistance.}} ?{Concentration?|No (auto-success),{{compcheck=No Concentration:[[{1d1cs&gt;1&amp;#125;&gt;0]]&amp;#125;&amp;#125;|Casting Defensively,{{compcheck=Casting Defensively:[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[15+1]] ]]&amp;#125;&amp;#125;|Custom DC,{{compcheck=Custom DC(?{What DC?&amp;#125;):[[{1d20+[[@{concentration}]]&amp;#125;&gt;[[?{What DC?&amp;#125;]] ]]&amp;#125;&amp;#125;} {{succeedcheck=- Das ist gut, ja?}} {{failcheck=- Das ist nicht gut.}} {{Power Points:= **1** }} {{notes=This power charges your touch with the force of a sledgehammer. A successful melee touch attack of [[1d20+[[@{bab}]] + ?{Query 2} + ?{Addl Bonus/Penalty})]] deals [[1d8]] of bludgeoning damage. This damage is not increased or decreased by your Strength modifier. **Augment - (?{Augment? (1PP/additional round)} point(s) spent)** For every additional power point you spend, this power’s duration increases by 1 round.}}
1613472305
Ziechael
Forum Champion
Sheet Author
API Scripter
And so the padawan becomes the master ;) If you have issues with more complex augments (and end up in nested query territory), make a post and I'll happily give guidance on that particular nightmare too!