AinsLord Posted May 24, 2021 Posted May 24, 2021 does this script means the higher the number input the lower the chance or vise versa? if (countitem(.@costumeID) > 0 && countitem(.@stoneID) > 0) { delitem .@stoneID,1; if (rand(1,100) < 91) coz i tried lo make it like 30 the success is like 7/10 items just a little bit confuse thou thanks in advance Quote
0 Emistry Posted August 31, 2021 Posted August 31, 2021 On 5/25/2021 at 12:42 AM, AinsLord said: how can i make it like 10% or 20%? if (rand(100) < 10) { 10% } if (rand(100) < 20) { 20% } Quote
0 Litro Endemic Posted May 24, 2021 Posted May 24, 2021 testing random will give you random result , if (rand(1,100) < 91) ^ that mean 90% = 1 ~ 100 lower than 91 Quote
0 AinsLord Posted May 24, 2021 Author Posted May 24, 2021 45 minutes ago, Litro Endemic said: testing random will give you random result , if (rand(1,100) < 91) ^ that mean 90% = 1 ~ 100 lower than 91 ohh how can i make it like 10% or 20%? Quote
Question
AinsLord
does this script means the higher the number input the lower the chance or vise versa?
coz i tried lo make it like 30 the success is like 7/10 items
just a little bit confuse thou
thanks in advance
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.