Dice code guide

Be sure to read and follow the guidelines for our forums.

Jan 21, 2022 10:16 am
Is there a cheat sheet or guide for applying dice codes to your posts? I want to set a minimum roll value.
Jan 21, 2022 10:41 am
There's this

I'm not sure what exactly you mean with minimum roll value. If you explain what you're trying to do, maybe I or someone else can help you out with the code
Jan 21, 2022 10:46 am
Thanks for the help.

On a roll of 1d10. If the number is less than 4 then change the result to 4.
Jan 21, 2022 11:08 am
wdunn says:
Thanks for the help.

On a roll of 1d10. If the number is less than 4 then change the result to 4.
Not yet, but changes are in testing to be released soon.

It would be done like this (one rule for the individual die, one rule for the total):
"diceRules": [
{"rolled":"1d10","natural":"<4","content":"4"},
{"rolled":"1d10","total":"<4","content":"4"}
]

https://i.imgur.com/JL1fptE.png

The original roll is available in hover-over.
Jan 21, 2022 11:13 am
Right now, you can do it like this:
Quote:
{"diceRules": [
    {"rolled": "D10","natural": 1,"content": "4"},
    {"rolled": "D10","natural": 2,"content": "4"},
    {"rolled": "D10","natural": 3,"content": "4"}
  ]
}
It won't change the total displayed on the right side, but it will replace the number shown as the roll.

https://i.imgur.com/vUQBt1x.png

In an upcoming update, there will be a way to also change what it says as the total on the right side.
OOC:
Adam was faster
Jan 21, 2022 11:57 am
Ok, one last question. Will you be able to do this as a player either in the post, or pre-defined in a rolls table of your character sheet?

Name Roll
e.g. Percentile 1d100
Jan 21, 2022 12:02 pm
No, it can only be done as part of the game setup and then it applies to all characters and rolls in the game.

https://i.imgur.com/Jgbk7fM.png
Jan 21, 2022 12:12 pm
You could add a reason condition to it e.g. only apply this rule if "[min 4]" appears in the reason.

"diceRules": [
{"rolled": "1d10","reason": "[min 4]","natural": "<4","content": "4"},
{"rolled": "1d10","reason": "[min 4]","total": "<4","content": "4"}
]

The use "[min 4]" in your rolls table for the rolls with this rule.

https://i.imgur.com/0VzIZXm.png

Results in:

https://i.imgur.com/33btHEx.png
Jan 21, 2022 12:47 pm
Adam, that looks like the JSON I am looking for. Ok, did some testing and now it all makes sense. Just need to wait for the release.

Thanks for all your help guys.

You do not have permission to post in this thread.