HITMAN 17 Posted February 25, 2008 Posted February 25, 2008 hi i need a tutorial on v2 crimes formula like to make the crimes have a 50% chance a hard one and easy one please may someone help Quote
shrek1609 Posted February 28, 2008 Posted February 28, 2008 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%. Quote
shrek1609 Posted February 28, 2008 Posted February 28, 2008 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%. Quote
HITMAN 17 Posted February 28, 2008 Author Posted February 28, 2008 Re: V2 crimes formular need tutorial ok then what wud a 50/50 code be Quote
KDawg08 Posted March 3, 2008 Posted March 3, 2008 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 Quote
shrek1609 Posted March 5, 2008 Posted March 5, 2008 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) Quote
SaMz Posted June 16, 2008 Posted June 16, 2008 Re: V2 crimes formular need tutorial i want crime formula to be depending on agility, strength and iq how i do that? Quote
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.