Weird problem

This code works perfectly:

| | |


|Feat Dice:|!(1d[Eye of Sauron!,1,2,3,4,5,6,7,8,9,10,Gandalf!])|

|Spend a HOPE POINT to add your ATTRIBUTE BONUS (Body) to the Success Dice result.||

Attribute Bonus:|{Awe_Favoured ?Body_Favoured:Body}|

|Success Dice:| !!({Dice_Pool_Awe}d[1,2,3,4,5,Success!]) |

|Roll here if Weary or worse: | !!({Dice_Pool_Awe}d[0,0,0,4,5,Success!] )

It delivers the success dice results, and counts the number of “success!” results.

I’m trying to clean it up by having the checkbox “Weary” roll the normal roll OR the “Wearied”, depending on if checked or not. So:

|Success Dice:| { Weary ? !({Dice_Pool_Awe}d[0,0,0,4,5,Success!] ):!({Dice_Pool_Awe}d[1,2,3,4,5,Success!]):}

However, it no longer counts the successes and returns an error saying that “Success!” is undefined.

Since essentially the same works in the first example, why not the second?

Thanks in advance.

Better to try the following:
!({Dice_Pool_Awe}d{Weary ? "[0,0,0,4,5,Success!]" : "[1,2,3,4,5,Success!]"})

1 Like

Excellent! Thank you.

// Closing as fulfilled