Jump to content
MakeWebGames

Recommended Posts

Posted

Re: V2 crimes formular need tutorial

Not sure if this will help you out or not just don't read it after you've had a drink :-D

 

This is the formula.

((WILL*0.8)/2.5)+(LEVEL/4)

----------------------------

((WILL*0.8)/2.5)

This formula decides how the user's will affects their crimes success rate.

Lets show a few examples.

Example 1a.

((WILL*0.7)/17)

User's will: 100

You start by running the functions in the parentheses.

So it would end up being:

((70)/17)

After that you just run the formula

70/17

Which Equals:

4.1176470588235294117647058823529

So using that formula on a user with 100 will would give them a 4.1176470588235294117647058823529% chance of the user succeeding.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example 2a.

((WILL*0.4)/39)

User's will: 531

You start by running the functions in the parentheses.

So it would end up being:

((212.4)/39)

After that you just run the formula

212.4/39

Which Equals:

5.4461538461538461538461538461538

So using that formula on a user with 531 will would give them a 5.4461538461538461538461538461538% chance of the user succeeding.

-----------------------------

(LEVEL/4)

This pretty much explains itself.

This formula decides how the user's level affects a user's chance of succeeding a crime.

Lets show a few more examples.

Example 1b.

(LEVEL/21)

User's level: 51

Basically all you would be doing is:

51/21

So just run the formula which equals:

2.4285714285714285714285714285714

So if this was the only formula the user would have a 2.4285714285714285714285714285714% chance of succeeding.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example 2b.

(LEVEL/54)

User's level: 98

As the other formula goes:

98/54

So that would equal:

1.8148148148148148148148148148148

If that was the only formula the user would have a 1.8148148148148148148148148148148% chance of succeeding.

-----------------------------

Now we combine the formulas...

-----------------------------

Formula 1

Example 1a+example 1b

4.1176470588235294117647058823529+2.4285714285714285714285714285714=6.546218487394957983193277310923

So by combining the 2 formulas with each-other the chance of succeeding the crime is 6.546218487394957983193277310923%.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Formula 2

Example 2a+example 2b

4.1176470588235294117647058823529+1.8148148148148148148148148148148=5.932461873638344226579520697166

So by combining the 2 formulas with each-other the chance of succeeding the crime is 5.932461873638344226579520697166%.

Posted

Re: V2 crimes formular need tutorial

Will repost the smiley code messed it up :-(

 

This is the formula.

((WILL*0.8)/2.5)+(LEVEL/4)

----------------------------

((WILL*0.8)/2.5)

This formula decides how the user's will affects their crimes success rate.

Lets show a few examples.

Example 1a.

((WILL*0.7)/17)
User's will: 100

You start by running the functions in the parentheses.

So it would end up being:

((70)/17)

After that you just run the formula

70/17

Which Equals:

4.1176470588235294117647058823529

So using that formula on a user with 100 will would give them a 4.1176470588235294117647058823529% chance of the user succeeding.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example 2a.

((WILL*0.4)/39)
User's will: 531

You start by running the functions in the parentheses.

So it would end up being:

((212.4)/39)

After that you just run the formula

212.4/39

Which Equals:

5.4461538461538461538461538461538

So using that formula on a user with 531 will would give them a 5.4461538461538461538461538461538% chance of the user succeeding.

-----------------------------

(LEVEL/4)

This pretty much explains itself.

This formula decides how the user's level affects a user's chance of succeeding a crime.

Lets show a few more examples.

Example 1b.

(LEVEL/21)
User's level: 51

Basically all you would be doing is:

51/21

So just run the formula which equals:

2.4285714285714285714285714285714

So if this was the only formula the user would have a 2.4285714285714285714285714285714% chance of succeeding.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example 2b.

(LEVEL/54)
User's level: 98

As the other formula goes:

98/54

So that would equal:

1.8148148148148148148148148148148

If that was the only formula the user would have a 1.8148148148148148148148148148148% chance of succeeding.

-----------------------------

Now we combine the formulas...

-----------------------------

Formula 1

Example 1a+example 1b

4.1176470588235294117647058823529+2.4285714285714285714285714285714=6.546218487394957983193277310923

So by combining the 2 formulas with each-other the chance of succeeding the crime is 6.546218487394957983193277310923%.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Formula 2

Example 2a+example 2b

4.1176470588235294117647058823529+1.8148148148148148148148148148148=5.932461873638344226579520697166

So by combining the 2 formulas with each-other the chance of succeeding the crime is 5.932461873638344226579520697166%.
Posted

Re: V2 crimes formular need tutorial

for 50/50 i think it would be like...

$rand(0,1)

don't quote me on that as i'm beginning to learn scripting right now as we speak, been reading multiple tutorials

Posted

Re: V2 crimes formular need tutorial

This is how i've got it to work using percentages :-D

((LEVEL*50)/LEVEL)

I've made mine a starting percentage that slowly gets a higer percentage as they gain levels...

((LEVEL*90)/LEVEL)+(LEVEL*0.25)

  • 3 months later...

Join the conversation

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

Guest
Reply to this topic...

×   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.

×
×
  • Create New...