Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulating a bonus to rolling on a table? #36

Closed
sheibeck opened this issue Jun 11, 2021 · 5 comments
Closed

Simulating a bonus to rolling on a table? #36

sheibeck opened this issue Jun 11, 2021 · 5 comments

Comments

@sheibeck
Copy link

I'm trying to figure out how I would simulate having a bonus when rolling on a table? For example, when rolling on table A, add +1 bonus if your character is an Elf.

@derikb
Copy link
Owner

derikb commented Jun 11, 2021

Hmm... that is not something I ever thought about. Been pretty focused on tables that have no external variability like that. It's a little tricky because since the tables aren't exactly based on specific numbers, +1 doesn't really have a meaning. That also implies an ordering where "higher = better" (or "higher = worse", I guess) and the ordering of the result in a specific subtable at this point has no real meaning.

I think there'd have to be another setting for the tables to make order meaningful... and probably some kind of mapping to specific numeric values to specific table results. Then the selecting process wouldn't be about the value relative weights but about passing in a die roll (and likely, having a default die roll on the table). Then we'd also have to account for rolls that go "off the table" (too high/low).

Maybe just mapping subtable results to specific numeric ranges would be enough (as opposed to a weight property). Probably need some way to pass in a die roll token then.

@sheibeck
Copy link
Author

Yup, all that makes sense. I just wanted to make sure there wasn't something I was missing. I also was thinking about dynamic table weights. Adjust the weights would simulate this a bit. I didn't think about the whole higher being better factor here. This is definitely a rogue element for what I'm doing. It's a helper app for a game that bought that uses tables for everything.

In case your interested in checking out how I'm using your stuff, you can find my repo at https://github.com/sheibeck/fiveparsecscompanion

Thanks for taking the time to respond.

@derikb
Copy link
Owner

derikb commented Jun 13, 2021

Another thing you could do is just use the dice roller to get a random number (modified however you like) and then just use that number to pick from an array of options (assuming its a simple table).

@sheibeck
Copy link
Author

sheibeck commented Jun 13, 2021 via email

@derikb
Copy link
Owner

derikb commented Feb 6, 2022

Added #57 as a future feature... ordered tables that can be selected from (by number) or rolled on (via dice token). Closing this issue.

@derikb derikb closed this as completed Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants