Skip to content

Instantly share code, notes, and snippets.

@damccull
damccull / fvtt_v0.6.6_roll_4d6_reroll_lte_2_discard_lowest.js
Last active October 21, 2020 03:57
FoundryVTT script to roll 4d6, rerolling all 1s and 2s infinitely, then discarding the lowest die
//Create a new roll for 4d6 and roll it
let roll = new Roll('4d6').roll();
//Convert to json
let rjson = roll.toJSON();
//Manually set properties
rjson.formula = "4d6r<=2dl1";
rjson.dice[0].formula = rjson.formula;
### Keybase proof
I hereby claim:
* I am damccull on github.
* I am damccull (https://keybase.io/damccull) on keybase.
* I have a public key ASBN5PH0xGCMnv-ejc4GGqQtYxWarYu3kj22uar5XL9hjQo
To claim this, I am signing this object: