If you have 3 items : Gem, Potion and Weapon.
Gems are given 60% of the time
Potions are given 30% of the time
Weapons are given 10% of the time.
x=Randomise (1,100)
If x>10 then give weapon
elseif X< 10 and > 30 then give potion
else give gem.
I think you could give ranges for select statements which would make it more readable.
Gems are given 60% of the time
Potions are given 30% of the time
Weapons are given 10% of the time.
x=Randomise (1,100)
If x>10 then give weapon
elseif X< 10 and > 30 then give potion
else give gem.
I think you could give ranges for select statements which would make it more readable.