While setting up tables to generate PC pre-gens, I ran into trouble while trying to roll up attributes, so I made this. Just call a roll on the table and it will roll 4d6, pick the 3 highest, and return the total.
Table:Roll
Type:Dictionary
Set: die1 = {1d6}
Set: die2 = {1d6}
Set: die3 = {1d6}
Set: die4 = {1d6}
Set: roll4 = {die1 + die2 + die3 + die4 - min(die1,die2,die3,die4)}
Default:{roll4}//4d6 drop the lowest
Here's a less readable but more compressed version. The table typt and default are also optional, since this only includes one method.
Table:RollCompressed
Type:Dictionary
Set: roll4 = {{die1 = {1d6}} + {die2 = {1d6}} + {die3 = {1d6}} + {die4 = {1d6}} - min(die1,die2,die3,die4)}
Default:{roll4} //4d6 drop the lowest
No comments:
Post a Comment