 
 I have a sheet I'm working on where you roll 2d6 for the base roll, but if you have any Stress Points you roll 1 additional d6 (that is calculated separately) for every 3 Stress Points that you have. My code for calculating the stress die is as follows;  <input type="hidden" name="attr_stress_die" title="@{stress_die}" value="[[ceil(@{stress_points}/3)]]d6">  It does work for adding the stress die, however I cannot figure out how to make a limit on the number of stress die rolled. currently, there is no maximum of the number of additional stress die, but I need it to cap out at 3.   If anyone has any advice on how to handle this it would be much appreciated! 
 
				
			