Need help with a formula

Hi guys.
I’m trying to do an action, but I couldn’t find the answer as of yet.
Basically, I have two attributes: Strength and Dexterity. Using these two, I want to calculate an attack, using the following formula:

Attack = 1d6 + Dexterity + Strength

So far, so good. BUT. If the result in the 1d6 is a 6, then the attack would become:

Attack = 1d6 + Dexterity + (Strength * 2)

Is there a way that this could be done?

There is currently no way to test a roll and perform a calculation on it. This would require the Feature Request for a LastRoll stat to perform.

Oh I see. Thanks for the reply =D.

If you need this feature, please vote and / or comment on the Feature Request here: Predefined {lastRoll} Stat (astraltabletop.com)

Your comments explaining what you would use it for allows the developers to work out how to implement it.

// Closing as answered

It looks a little complicated, but this is essentially just using the custom dice to merge the first and last parts of the roll
!(1d[{Strength+1},{Strength+2},{Strength+3},{Strength+4},{Strength+5},{2*Strength+6}]+{Dexterity})

2 Likes

Agromania, this works like a charm. Thank you!
Now I can continue doing my custom sheet.