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

[3.5] If this do this, if that do that

1507231874

Edited 1507234455
I've been trying to do DC targeted calculations for 3.5 DCs.  I see how the concentration check works for spells.  Is there a way to have macro add an attack on a successful check... for example... casting Acid splash.  If the concentration check succeeds, can I have it automatically roll a ranged touch attack?  Also I am having trouble figuring out syntax for success/fails of attack rolls.  Say I'm trying to hit AC 20... How would I create an attack that actually checks the roll for a success full hit of 21 or more? If there are already instructions for this.  Please send me the link.  Thanks for any help on this. My current macro is this: &{template:DnD35StdRoll} {{spellflag=true}} {{name= @{selected|token_name} casts Acid Splash at @{target|token_name} }} {{School:=Conjuration (creation)[Acid]}} {{Level: =Wizard 0}} {{Comp'nts:=V, S}} {{Casting Time:= 1 std action}} {{Range:= Close ( [[ 25+5*[[@{selected|npccastlvl}*.5]] ]] ft)}} {{Effect:= One missile of acid.}} {{Duration:= Instantanious.}} {{Saving Throw:= None }} {{Spell Resist.:= no }} {{compcheck= Conc: [[ {1d20 + [[ @{concentration} ]] }>?{Concentration DC=15+Spell Level or 10+Damage Received|16} ]] }} {{succeedcheck=Success! He casts his spell!}} {{failcheck=The spell fizzles and is lost. }} {{notes=Make a ranged touch attack, on a hit the target takes 1d3 acid damage.}} &{template:DnD35Attack} {{name= @{selected|npcname}}} {{subtags=Fires a green blob at @{target|token_name} }} {{npcflag=true}} {{attack1=Acid Blob: [[1d20+@{selected|npcdex-mod}+@{selected|npcbaseatt} ]] to hit Touch AC [[@{target|touchac}]] }} {{damage1=Acid Damage: [[1d3]]}}
1507234567
The Aaron
Pro
API Scripter
Automation is entirely the purview of the API, a Pro Subscriber Perk.&nbsp; You won't really be able to do an If/Then/Else in a macro.&nbsp; The barest exception is some Sum of Terms formulas that end up with a result based on some set of attributes, but that's convoluted and not really practical for most things. Checking if a result is greater than some value is handled like this: [[ {1d20+@{someAttr}+@{someOtherAttr}&gt;21 ]] Note that in the context of a dice expression &gt; means "greater than or equal to" and &lt; means "less than or equal to". This only works with a number, so if you have an attribute calculation, you'll need to use a nested inline roll: [[ {1d20+@{someAttr}+@{someOtherAttr}&gt; [[@{yetMoreAttrs}+@{evenMoreAttrs}]] ]] The wiki has much detail on this: <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
Would this allow me to add success=blah... and fail= blah?
1507239233

Edited 1507239274
The Aaron
Pro
API Scripter
The API: definitely. Something else: probably not without some serious hackery, and not very functionally.
It is already figured in on the spell template.&nbsp; {{succeedcheck=Success! He casts his spell!}} {{failcheck=The spell fizzles and is lost. }}&nbsp; I'll see if I can incorporate this now that you have shown me some info.&nbsp; Thanks by the way.
1507241553
The Aaron
Pro
API Scripter
Right.&nbsp; You might be able to repurpose a Roll Template got get the effect you want.&nbsp; Roll Templates have some baked in branching functionality, but it will depend on the specific template as to what sort of comparison you can make.&nbsp; For the 5e OGL's Roll Templates, take a look at:&nbsp; <a href="https://wiki.roll20.net/5e_OGL_Roll_Templates" rel="nofollow">https://wiki.roll20.net/5e_OGL_Roll_Templates</a>