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 .
×
May your rolls be chill this holiday season!
Create a free account

Witch Hex Question - Pathfinder

I'm sure this has been asked before but I cant seem to find it. I'm still new to Roll20 and decided for our current campaign I was going to play a witch. Witches of course typically utilize Hex's I was hoping to just place these into my spell like ability section and write a little script to automatically present the DC. I found this script(      [[floor(abs((@{level}-2)/2))+1]]   )   somewhere in the forum / Internets and hoped to modify this to automatically include the 10+ intelligence modifier. Can anyone tell me what I would need to modify this to make this work? Thank you !
1598591508

Edited 1598594729
The DC is 10 + 1/2 witch level + INT mod, right? Are you using PF Community sheet or Pathfinder by Roll20? Need to know to because the attribute calls for class level and INT mod probably aren't the same. If it's the official sheet, you should be able to use this: [[10+floor(@{class1_level}/2)+@{intelligence_mod}]]
1599001548

Edited 1599011031
I'm really sorry about the delay in getting back to you. I apparently am using the Pathfinder by Roll20 sheet and your formula seems to work. At level one it seems to set the calculation to 1 low... I have a +5 modifier for intelligence and the resulting DC is 15 should the level be rounded down to 0 at level 1? or should it be at least a 1 making it a DC 16? Also, If i want to include a duration calculation I wrote "[3+@{intelligence_mod}] rounds" based off your previous syntax. it results in "[3+5]" not a display of "8"... where did I mess up? Thank you very much for your help @persephone