S.Cosmin Posted May 15, 2011 Share Posted May 15, 2011 How can i make the success rate at robbery a little bit big? For example i have this one ((WILL*0.8)/1)+(LEVEL/4) but i don't understand to much what there it is. Can anyone help me the users to have more success? Quote Link to comment Share on other sites More sharing options...
galdikas Posted May 15, 2011 Share Posted May 15, 2011 well... I personally cant tell for sure without seeing the rest of the code. But for higher success I would increase the WILL multiplier and decrease LEVEL divider... Just blind guess since I do not know which way does the outcome of this formula affects the outcome of the crime :) Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 15, 2011 Share Posted May 15, 2011 Wasnt there a file in mccodes that explained this? And I do think there is a topic about this. Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 15, 2011 Author Share Posted May 15, 2011 Wasn't not. Because the new version of mcc 2.0.3 has just the script files, no info's...So...i must to post on forum what i don't know. Simple Quote Link to comment Share on other sites More sharing options...
Mystical Posted May 15, 2011 Share Posted May 15, 2011 How can i make the success rate at robbery a little bit big? For example i have this one ((WILL*0.8)/1)+(LEVEL/4) but i don't understand to much what there it is. Can anyone help me the users to have more success? 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%. Please note : You can also use html codes in crime texts , initial , success failure etc eg : If you want result to show in red use that color code with text in the result form. Quote Link to comment Share on other sites More sharing options...
Dominion Posted May 15, 2011 Share Posted May 15, 2011 Wasn't not. Because the new version of mcc 2.0.3 has just the script files, no info's...So...i must to post on forum what i don't know. Simple It's a formula so have a play, and see what fits your game. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted May 15, 2011 Share Posted May 15, 2011 (edited) formula=math!! lol if you don't know math then you may be lost... mystical explained it for you... ((WILL*0.8)/1)+(LEVEL/4) players Will multiplied by 0.8 then divided by 1 level of the player divided by 4 then add those two numbers together that is your success formula... If you dont understand it echo it by $formula=(($ir['will']*0.8)/1)+($ir['level']/4) ; echo $formula; Edited May 15, 2011 by lucky3809 Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 15, 2011 Author Share Posted May 15, 2011 Damn, thats mathematic ! what ever, i think i understand...thank you guys Quote Link to comment Share on other sites More sharing options...
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.