Edit: I went back to look at post 33
I'm now revising my post
Alright! We can finally use this. You will have to read these instructions and replace variable1, variable2, etc. with the numbers of the variables you're using.
When someone gives me a white wonderful,
Input Number to variable1
they're guaranteed to get at least 45% of that number, but not more than 70%, as glass
Script: $gameVariables.setValue(variable2, Math.floor(Math.random() * ($gameVariables.value(variable1)*.7 - $gameVariables.value(variable1)*.45 + 1) + $gameVariables.value(variable1)*.45));
Change Items, glass, variable2
Send the info in a message window
Control Variables, variable1, Sub variable2
Then they'll get 50%-100% of the rest as Crystals
Script: $gameVariables.setValue(variable2, Math.floor(Math.random() * ($gameVariables.value(variable1) - $gameVariables.value(variable1)*.5 + 1) + $gameVariables.value(variable1)*.5));
Change Items, crystals, variable2
Send the info in a message window
Control Variables, variable1, Sub variable2
Then, if there's anything left,
Conditional Branch, variable1 > 0
they'll get a random amount of diamonds.
Script: $gameVariables.setValue(variable2, Math.randomInt($gameVariables.value(variable1)) + 1);
Change Items, diamonds, variable2
Send the info in a message window
Control Variables, variable1, Sub variable2
Then, if there's anything left,
Conditional Branch, variable1 > 0
they'll get a random amount of Opals.
Script: $gameVariables.setValue(variable2, Math.randomInt($gameVariables.value(variable1)) + 1);
Change Items, opals, variable2
Send the info in a message window