You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get it to print the information I want on python. For example:
>>> import dice
>>> x = dice.roll('3d6+2d10+5')
>>> dice.utilities.verbose_print(x)
'26'
I wanted it to display something like what is displayed on the command line interface when I use the -v argument. I need the dice information so I can tell if my players crit or not.
$ roll -v 3d6+2d10+5
Result: 31
Breakdown:
Add(
roll 3d6 -> [4, 4, 4] -> 12,
roll 2d10 -> [4, 10] -> 14,
5
) -> 31
The text was updated successfully, but these errors were encountered:
Looks like you need to add the raw=True flag. I think this keeps the original parsed elements around in the result, instead of replacing them with the final rolls.
I can't get it to print the information I want on python. For example:
I wanted it to display something like what is displayed on the command line interface when I use the -v argument. I need the dice information so I can tell if my players crit or not.
The text was updated successfully, but these errors were encountered: