PDA

View Full Version : dice order of operations



ArmadaDM
December 31st, 2020, 00:38
We're playing Open Legend and I've volunteered to attempt all the automation. I'm looking for a way to both explode dice and drop lowest or highest. I can do it in that order, but I can't get it to drop before explosions. This creates some incorrect dice rolls, but it doesn't come up often. Only those dice kept are supposed to explode, but sometimes when you roll max on more dice than you're keeping, you end up with too many explosions. I've used both "e" and "!" after dropping, but they don't appear to register once dice are dropped. I've tried using parentheses too, but no change.

damned
December 31st, 2020, 04:37
Many of the chained rolls dont work.
You can write some code to handle it in onLanded() and manage it yourself.

ArmadaDM
January 6th, 2021, 01:26
This is a bit more complicated than I had expected. Any good tutorials you might suggest to learn what I'm doing? Or do you need to fully know how to program to do anything in fantasy grounds?




Edit: I figured it out! (If anybody was invested.) XD