PDA

View Full Version : getDice() Unexpected Results



Myrddin
April 5th, 2013, 02:54
I have been experiencing unexpected results with the getDice() function as documented in the thread below.

https://www.fantasygrounds.com/forums/showthread.php?t=18526

When dropping a die on a diefield A and using an onUpdate handler to update another diefield B with the dice from diefield A, obtained using getDice(), the resulting dice are always one die less than the actual total dice in diefield A.

I am not sure whether this represents a bug or simply a misunderstanding on my part as to how this function operates.