Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Multiple Checks in same Roll with usable Results #219

Open
Kaleidia opened this issue Dec 10, 2019 · 2 comments
Open

Multiple Checks in same Roll with usable Results #219

Kaleidia opened this issue Dec 10, 2019 · 2 comments

Comments

@Kaleidia
Copy link

I am having an issue with some downtime craft rolls in Pathfinder.

The rolls are as follows:
/r ((d20>1) + 34 + 5 + d6) >= DC

So far the first part (d20>1) is macro ($d20Check) and adding the rest inside the brackets, apart from the last part(>=DC), works but if I add the last part, it gives me an error. DC is just a number.

What I would like to have is the first part checked, if successful continue with the additions and check against DC (last part).

with a DC of 50:
check = d20; if check>1 {newCheck = check+34 + 5+ d6, # craft failed miserably} ;if newCheck >= 50 {# craft successful, # craft failed}

It could be that it is already possible but my experiments so far failed and I had to add the DC as a comment and manually check if it failed or not.
/r ((d20>1) + 34 + 5 + d6) # check against DC and successful d20 check

I would like to just add the item name in the comment so that I would get back:

Item to craft = (((12,1 success)+34+5+(3))=54, 1 success) or
Item to craft = (((1,0 successes)+34+5+(3))=43, 0 successes) or
Item to craft = (((8,1 success)+34+5+(3))=49, 0 successes)

Any other comment adjustment would a welcome addition but is not necessary.

@Kaleidia
Copy link
Author

Just played around a bit more and noticed that the first check only returns 0 or 1 but not the rolled value which is needed.

The example in the middle would be the ideal outcome.

with a DC of 50:
check = d20; if check>1 {newCheck = check+34 + 5+ d6, # craft failed miserably} ;if newCheck >= 50 {# craft successful, # craft failed}

Not sure how the syntax would look like for a command like that tho...

@Kaleidia Kaleidia changed the title Multiple Checks in same Roll Multiple Checks in same Roll with usable Results Dec 10, 2019
@ProphetZarquon
Copy link

ProphetZarquon commented Jun 2, 2020

If this worked (check & if success then return rolled value & roll next die) it would actually allow me to do my Palladium RPG attribute bonus rolls as described in #234 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants