Jump to content
  • 0

Success rate information for enchanter


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted
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%?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...