PDA

View Full Version : morecore dice rolls using parameters



BigBadBazz
July 25th, 2020, 11:28
if a dice roll has #d6 i can use p1 by coding (p1)d6

but can I add p1 and p2 together in some way ie (p1+p2) (tried so many options of this) or do i need to code another dice type for the ruleset

Thanks again

damned
July 26th, 2020, 04:50
Adding support in for math operations to the code for 150 odd rolls is incredibly difficult and I have not found a way to do it.
There are ways around it using code in an extension - I believe you are trying a little coding - or manually sum the numbers into (p1)

BigBadBazz
July 26th, 2020, 08:39
Adding support in for math operations to the code for 150 odd rolls is incredibly difficult and I have not found a way to do it.
There are ways around it using code in an extension - I believe you are trying a little coding - or manually sum the numbers into (p1)

OK Damned thanks for this, I was going about it the wrong way

damned
July 26th, 2020, 10:00
Some rolls will accept something like (p1)d6+(p2)d6 but again many will not.
The code that parses the dice string has to know how to handle the format you are putting in - in most cases there is only one acceptable string format.