AinsLord Posted May 24, 2021 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted August 31, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted May 24, 2021 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share 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 Link to comment Share on other sites More sharing options...
0 AinsLord Posted May 24, 2021 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Author Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.