Morus Walter a ñÄrit : > In article <20060106185354.LPAB613.centrmmtao03.cox.net / localhost.localdomain>, > Ruby Quiz <james / grayproductions.net> writes: > >>Or, for something more complicated: >> >> > roll.rb "(5d5-4)d(16/d4)+3" >> 31 > > > What's the execution order in this case? > Do 5d5-4 rolls with 5d5-4 probably different dices having 16/d4 sides > (number of sides calculated for each roll individually) or should one > choose the number of sides once for all rolls? > I guess it doesn't make much difference but it should be specified... > > Morus IMO, all the parenthesis must be resolved before going further. Thus in the example you rool : 5d5 1d4 and the last one with the result of the two computations. Otherwise, it would be impraticle to do that with real dices (mmmmhh ...) Pierre