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 .
×

Need help with Save Macro

Hi everyone, I was working on the save check but i couldn't find a solution to put all the saves in one macro. Here is what I've done: &{template:DnD35StdRoll} {{name=@{npcname} }} {{saveflag=true}} {{subtags=braces against the attack}} {{check=?{Which Type?|Fortitude |Reflex |Will} check:}} {{checkroll= [[ 1d20 + ?{Which Type?|Fortitude,@{npcfortsave} |Reflex,@{npcrefsave} |Will,@{npcwillsave} } ]] }} The problem is that when it calculate the checkroll, it uses the string "Fortitude", for example, instead of the fortitude bonus. Anyone could help me, please?
1499520383
The Aaron
Pro
API Scripter
Roll Queries can't have the value switched mid macro.  You've basically got these two: ?{Which Type?|Fortitude,Fortitude|Reflex,Reflex|Will,Will} ?{Which Type?|Fortitude,@{npcfortsave} |Reflex,@{npcrefsave} |Will,@{npcwillsave} } But the second one will be ignored because the value of "Which Type?" has already been determined, so it will use the string.   You could try this: &{template:DnD35StdRoll} {{name=@{npcname} }} {{saveflag=true}} {{subtags=braces against the attack}} {{check=?{Which Type?|Fortitude, [Fortitude] [[@{npcfortsave}]]|Reflex,[Reflex] [[@{npcrefsave}]]|Will,[Will] [[@{npcwillsave}]]} check:}} {{checkroll= [[ 1d20 + ?{Which Type?} ]] }} I don't know if it will work, but it might...
It works almost perfectly. Thank a lot
1499524604
The Aaron
Pro
API Scripter
Cool. No worries!  Happy Rolling!