PDA

View Full Version : draginfo.setDieList(dielist) Question



drahkar
December 20th, 2010, 18:47
So if I was to do something to the effect of:




dielist = { "d6", "d6", "d6", "d4", "d4", "d4" };
draginfo.setDieList(dielist);
Would that actually assign 3d6 and 3d4 to the dice in hand to be dropped?

Moon Wizard
December 20th, 2010, 19:07
Yes, as long as the draginfo object is set during an onDrag event.

In the onDiceLanded event, the dice list has a different structure, since the results are included as well.

Cheers,
JPG

drahkar
December 20th, 2010, 21:43
Perfect. That should work just the way I needed then. Thanks!