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

[Pathfinder] Help with shocking grasp

Hi all, I'm very new to macro's and am trying to create one for my magus character sheet. I have intensified shocking grasp learned and the 'Empower Magic' Arcana. How do I get a pop up to add the empowered damage? The normal damage is: [[{(1*@{caster1_level}),10}kl1]]d6 I am trying to add empowered to this but am coming up blank This is what I had tried but it doen't work: [[[[{(1*@{caster1_level}),10}kl1]]d6 +?{Metamagic?|no,0|Empowered,floor([[{(1*@{caster1_level}),10}kl1]]d6*1.5)}]] I may be completely off track but any help would be apreciated.
1561454994
GiGs
Pro
Sheet Author
API Scripter
You are nesting brackets } inside of a query, which always leads to trouble. But you don't need to do that with this calculation. I'm assuming Empowered multiplies damage by 1.5? if so: [[ floor([[{@{caster1_level},10}kl1]]d6 * ?{Metamagic?|no,1|Empowered,1.5}) ]]
1561456932

Edited 1561457258
Thank you for your reply Ahh I see, I would still need to use floor() to round down though to prevent non whole numbers, correct? [edit] I think Empowered just adds half as many damage dice to the roll, not straight up multiplies the damage, though I may be mistaken.
1561457309

Edited 1561458083
GiGs
Pro
Sheet Author
API Scripter
Yes, Floor is used to round down - I did include it above. If empowered multiplies dice rolled, that is almost the same: [[ floor({@{caster1_level},10}kl1 * ?{Metamagic?|no,1|Empowered,1.5})d6 ]]
Thanks for the reply, at the moment it just keeps giving me a damage result of 10 over and over, not sure what's going on.
1561458067
GiGs
Pro
Sheet Author
API Scripter
It looks like you need to enclose the floor operation in inline roll brackets (a common solution in these situations): [[ [[floor({@{caster1_level},10}kl1 * ?{Metamagic?|no,1|Empowered,1.5})]]d6 ]] This will roll 1d6 per level up to 10, is that how it should work?
1561458599

Edited 1561460756
Intensified adds 5 dice levels to the spell which as it normally has a 1d6/level to a maximum 5d6 at level 5, becomes 10d6 at 10th level. Empowered increases all the numeric variables by half, so it adds half as many damage dice again, depending on your level (so at 7th level you get 7d6+3d6. At 8th level you would get 8d6+4d6 etc. for intensified,empowered, shocking grasp) Your way seems to work now but it is not showing the individual dice rolls any more so will have to pass it by my gm. [edit] corrected first line
1561458876
GiGs
Pro
Sheet Author
API Scripter
To get the individual dice rolls, you just need to remove the outermost [[ ]] /roll [[floor({@{caster1_level},10}kl1 * ?{Metamagic?|no,1|Empowered,1.5})]]d6
That works a treat, Thank you very much for your help. Really appreciated and I learned quite a bit. Awesome!
1561459808
GiGs
Pro
Sheet Author
API Scripter
you're welcome :)