rpg-dice-roller icon indicating copy to clipboard operation
rpg-dice-roller copied to clipboard

A variable or expression in the formula representing the roll or ability, or branching.

Open Kartagia opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. You cannot create a system rounding towards zero. The issue is to create roll "4dF/2 (round to zero).

Describe the solution you'd like Either generate a new rounding switch which is equal to the function "sign(result)*rounddown(abs(result))".

Describe alternatives you've considered The generic pragma replaced with the die roll result. A method for this would be second function "lamda( ) -The second function is used to convert each element of the result array to the result.

The other option would be f. could contain # for each result of , and ## for the total result of the roll code.

Additional context

Kartagia avatar Jun 05 '21 04:06 Kartagia

Sorry, could you describe this in a bit more detail? I'm struggling to understand what the issue is.

GreenImp avatar Jun 05 '21 16:06 GreenImp

The ability to call a compound function using result as parameter for both, or the sum of dice result structure for both. The example would be rounding towards zero. 1/2 would be rounded to 0 as well as -1/2 would be rounded to zero. This would be formula "sign(#)×rounddown(abs(#))", if # means the roll value. "lambda({1.5, 3.7, -2,2}, sign(#)×rounddown(abs(#))) would return {1, 3, -2}

Kartagia avatar Jun 05 '21 17:06 Kartagia