Add Genesys Narrative Dice (incl StarWars) #4304
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Identify the Bug or Feature request
Resolves #4303
Description of the Change
Usage
[ sw!'yyy' ]
or[ sw!"yyy"]
for starwars symbols[ gs!'yyy' ]
or[ gs!"yyy"]
for standard genesys symbolsValid values
y/yellow/pro/prof/proficiency
g/green/a/ab/abil/ability
b/blue/boo/bst/boost
blk/k/black/s/set/sb/setback
r/red/c/ch/challenge
p/purple/d/diff/difficulty
w/white/f/force
*/suc/success
v/adv/advantage
!/tri/triumph
-/fail/failure
t/thr/thrt/threat
$/des/despair
l/light/lf/lightpip/ls/lightforce
n/dark/df/darkpip/ds/darkforce
You can specify arguments by typing out the value multiple times
spaces aren't required, they just make it easier to read, likewise you can use commas to make things easier to read
All arguments also accept the number of dice in front of them
The roller also sets the following variables
For genesys rolls its
gs.lastRoll.
.. (except light/dark are not set)Any where you use a number you can use one of the following
Capture groups are supported with (groupName: roll)
You can access the values with the variable sw.lastRoll.group.groupName... (all of the same values as above for lastRoll)
Note the result contains all the values in the capture groups, they are not excluded from it
You can also have capture groups within capture groups
although the variable names start to get really long 🙂
Possible Drawbacks
There is no tool tip support due to what you can wrap tool tips around in current implementation.
I am sure others will want this type of support for other dice rolls we currently have
Documentation Notes
See above
Release Notes
This change is