Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Crime Formular

 

How Do You MAke A Crime Harder And Easyer with this formular ((WILL*0.8)/2.5)+(LEVEL/4)

Well, break it down:

WILL = 10

LEVEL = 5

(random numbers)

((10*0.8)/2.5+(5/4) =

10*0.8 = 8

5/4 = 1.25

8/2.5 = 3.2

3.2 + 1.25 = 4.35

So, increase the *0.8 to make it easier, theres several ways to make this script more friendly:

I.E

LEVEL-WILL.

Simple

Posted

Re: Crime Formular

To simplify it couldn't you replace $ec with something like this...

 

$ec = "\$sucrate="(($ir['will']*$r['crimePERCFORM']/2.5)+($ir['level']/4)"";

 

Rather then having to input an equation for each new crime, you could simply input something like 0.8 for example....

I did not TEST this, just an idea

Posted

Re: Crime Formular

Good because that would be setting all crimes at the same difficulty. Being that a level 1 could do the "best" crime if they had the brave for it. In other words no need to buy a better house or get higher iq or level.

Posted

Re: Crime Formular

 

Good because that would be setting all crimes at the same difficulty. Being that a level 1 could do the "best" crime if they had the brave for it. In other words no need to buy a better house or get higher iq or level.

When you add a new crime, you have to add an equation for its success....correct?

Most people use the same equation but change a single integer in it in order to make it easier/harder....

with what I posted you could simply set (i'll call it X) X to a number...ie 0.8 or 0.6 or 1.5 .....etc

each time you inputed a different number, the outcome of the equation would be different.

example database entry

crime1 >>> crimePERCFORM is set to 0.8

crime2 >>> crimePERCFORM is set to 0.6

now lets say will = 100 and level = 5

crime1

(($ir['will']*$r['crimePERCFORM']/2.5)+($ir['level']/4)

(100 * 0.8 / 2.5) + (5 / 4) = 33.25

 

crime2

(($ir['will']*$r['crimePERCFORM']/2.5)+($ir['level']/4)

(100 * 0.6 / 2.5) + (5 / 4) = 25.25

 

See where i'm going this......its easier to add a single number than it is to add a whole equation each time you want to add a new crime. Unless you have crimePERCFORM set the same for every crime, the outcomes will be different when ran through the equation.

Posted

Re: Crime Formular

You are still screwing it up no offense. $r['crimePERCFORM']) is supposed to be = to all the numbers crunched together. Like for crime 1 it should be

$r['crimePERCFORM'])==(($ir['will']/2.5)+($ir['level']/4))

Or similar.

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