Page 1 of 1

hi adding up depending on varables Please help!!!!!!

Posted: Tue Jun 13, 2006 12:10 pm
by reecec
hi

for my game i am making an organised crime script i am not sure how to determin the amount of money made

i hope you can help

for the OC i want it so that you need 4 people

i person has the car
i person has the gun
i person has the bomb
i person is the leader


i need it depneding on rank and items used to determin how much is recived back

my ranks are numbers 1-19

1 being lowest

all my items have a number 1-10 to show quality 1 beign lowest same as ranks



i would like it so if every thing used and ranks are 1 (so the absolut basic) it would make £500,000


if all best are used (10) you would make £3,000,000

and in between it would jus caluculate this

this probably iisnt even posible

please help i hope im not asking of to much

Posted: Tue Jun 13, 2006 12:31 pm
by John Cartwright
you would try

Level 1 - 500,000
...
Level 5 - 1500000
...
Level 10, 2,750,000

Code: Select all

$cash = (($level+1) * 250000);
Your values arn't really linear.. that's the closest I could come up with. Then again.. I stopped taking math in grade 10.

hi thanks

Posted: Tue Jun 13, 2006 2:27 pm
by reecec
thanks for you help


but i will have

4 people so (4 ranks)
4 items (4 items)


so 8 diferent things to depend on the amount


thanks

reece