if(prob(80)) //There is an 80% chance that
A //A will occur.
else //If it does not,
if(prob(80)) //there is an 80% chance that
B //B will occur.
else //If it does not,
if(prob(80)) //there is an 80% chance that
C //C will occur.
else //If it does not,
D //D will occur.
The idea would be to use this to determine ranges of item stats and item rarity. Would it work? Is there a less messy way to do this? Thanks for any help.
That would be how I handle that~
Just return if the condition is true after you do what you want within it, then move to the next one, as the next can only run if the first is false.