Help for this page

Select Code to Download


  1. or download this
    3d6        # simplest one
    3d6+3      # with a result modifier
    ...
    3d8rgt6    # reroll and discard any greater than 6
    3d8rgt6+2  # reroll and discard any greater than 6 and add +2 to the f
    +inal result
    
  2. or download this
    # 3d8r1
    modifier_r received: ({}, { die_type => "1d8", rolls => [8, 1, 7] }, "
    +r", 1)
    
    # 3d8rgt1
    modifier_r received: ({}, { die_type => "1d8", rolls => [4, 8, 1] }, "
    +r", "gt", 1)
    
  3. or download this
    use Marpa::R2;
    use Data::Dump;
    ...
        return $return;
    }