PDA

View Full Version : % based Random Table Support in SWADE



Arsilon
April 22nd, 2025, 14:43
Question:

How to modify tables definition to allow for d100 (or any /roll dXXX format) to be entered directly into the custom dice field (or similar).

Situation:

Currently the die rolled on tables within SWADE are inferred in one of two ways.
1) Drag combination of die from the dice tray into the custom dice window (either directly or via a hotbar entry for mixed die type)
2) Interpreted from the table row definition, eg if you have row values defined for 1 - 23 it will /roll 1d23

Since there is no d100 available in the dice tray for SWADE, how do you get a d100?

You can work around this using coding and importing your table, but I have to imagine there is a way to do this within the UI itself. If someone has figured out how to do this, please let me know.

Ikael
April 22nd, 2025, 15:40
You can get d100 via UI by right clicking d10 and selecting Custom dice > d100


I am putting this here and not the feature request page since this is limited to SWADE and not FGVTT overall (it works in other rulesets that have d100 available in dice trays)

Request:

Modify tables definition to allow for d100 (or any /roll dXXX format) to be entered directly into the custom dice field (or similar).

Situation:

Currently the die rolled on tables within SWADE are inferred in one of two ways.
1) Drag combination of die from the dice tray into the custom dice window (either directly or via a hotbar entry for mixed die type)
2) Interpreted from the table row definition, eg if you have row values defined for 1 - 23 it will /roll 1d23

Issue:

If you have a % based random table this works as long as you only have values defined for 1-100.

However, given that modifiers may apply, you may need to have result rows for 101+

In such a case where you have values defined for 101-105, the default logic will interpret this and roll a /roll 1d105

Since there is no d100 available in the dice tray for SWADE, you can not create a strict table defined as a /roll d100

You can work around this using coding and importing your table, but you can not do it within the UI itself. If someone has figured out how to do this, please let me know.

Otherwise, this can go on the list wherever.

There is a workaround available....its just not one that would be pragmatic for your average every day user.

Arsilon
April 22nd, 2025, 15:46
Thank you! I knew there must be a way! (updated the original post to hopefully reduce any confusion)