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 merry + bright! 🎄
Create a free account

[PF Legacy] question about macros

I tried to make a macro to roll a rogue's sneak attack. I thought this would work but it doesn't. What am I doing wrong? [[ceil(@{level}/2)d6]] It gives the correct number for the ceil(@{level}/2) part but ignores the d8.
I have this macro that works, the query is so if its not a sneak attack the damage is 0 [[ ?{Sneak?|No,0|yes,1}*[[ ceil((@{class-0-level}) / 2) ]]d6 ]]   One thing to keep in mind is this in one of the attacks on the sheet fields or a separate token action macro or global macro?  If it either of those latter 2 are the case you may need to do @{selected| instead. Also my macro use the pathfinder community however i checked it against the legacy. The one i have above works. Additionally yours does not work because of the order of operation in an inline roll. If you changed it to this [[[[ceil(@{level}/2)]]d6]] then iit would also work.
Thank you! That makes sense now.