PDA

View Full Version : Max number of dices?



Lundgren
May 17th, 2014, 13:55
While digging around on the topic, I found this thread https://www.fantasygrounds.com/forums/showthread.php?17704-Maximum-No-Dice

But I did not find anything more about it. So first question, is the "max 30 dice" still a hard coded limit?

If it is, a second question question... Where should I file and push for a change? :D Preferable so it becomes a configurable soft limit (a "set this variable in your module if you want something else").

And as a third question: Any good ideas on how to work around it? I'm currently thinking it might be possible through a wrapper function. So while the pool might be 52 dices, it calls for a 30-pool and a 22-pool and add the results together.

joeru
May 17th, 2014, 14:24
Seems like the maximum amount of dice that can be thrown at the same time still is 30, regardless of their type. I suppose a LUA function that first throws 30 dice, saves that result into a variable, then throws another bunch and adds the results together would work.

EDIT: Can't figure out a good reason for the limitation, other than the stress on the system caused by a few thousand dice being thrown. So, while I have no idea what the execution is like, it should be reasonably easy to modify should Smiteworks choose to do so.

Trenloe
May 17th, 2014, 14:34
Where should I file and push for a change?
https://fg2app.idea.informer.com/

Lundgren
May 17th, 2014, 14:40
I assume it would be a simple change as well. At least if it is from a constant somewhere to a variable with a pre-set value, then make it configurable. That way, none of the evaluation code would have to be altered (and there would still be a block if anyone accidentally or maliciously made a 100000000D10 roll, or a freak of nature roll with exploding dices ending up with a ridiculous high number of dices).

Lundgren
May 17th, 2014, 14:47
https://fg2app.idea.informer.com/

Thanks :)