Raised This Month: $ Target: $400
 0% 

Logical help needed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 10-16-2011 , 09:56   Logical help needed
Reply With Quote #1

Hey, Need some logical help here.

Lets say I've 2 arrays:

KillerSkill
VictimSkill

and I want to increase KillerSkill, but the increased count should depend on KillerSkill and VictimSkill.
Now if Killer kills Victim:
* The higher KillerSkill is, the lower it increases.
* The lower VictimSkill is, the lower it increases.
* The lower KillerSkill is, the faster it increases.
* The higher VictimSkill is, the faster it increases.

And same method for dieing:
*Should depend on same things, but with decreasing.

So how can it be done with mathematical equation.
reinert is offline
8088
Veteran Member
Join Date: Jan 2008
Old 10-16-2011 , 11:08   Re: Logical help needed
Reply With Quote #2

http://en.wikipedia.org/wiki/Elo_rating_system
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 10-16-2011 , 11:28   Re: Logical help needed
Reply With Quote #3

Seems most difficult thing I've ever seen

Can't be done in simplier way ?
reinert is offline
gunsofnavarone
Junior Member
Join Date: Dec 2008
Location: New Hampshire
Old 10-16-2011 , 12:01   Re: Logical help needed
Reply With Quote #4

Quote:
Originally Posted by reinert View Post
Can't be done in simplier way ?
I don't know nothin' 'bout such stuff, but have you tried:

* Pencil ?
* Paper ?

Hey, I'm just sayin'...!
__________________

Do you want to know who you are? Don't ask. Act! Action will delineate and define you.
gunsofnavarone is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 10-16-2011 , 16:05   Re: Logical help needed
Reply With Quote #5

What do you think if I will do this with factor (coefficient) number ?
reinert is offline
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 10-16-2011 , 17:02   Re: Logical help needed
Reply With Quote #6

I think the simplest way would just be to divide the victim's skill by the killers skill to get a multiplier.

Let's say the victim's skill is 5000, and the killer's skill is 1000. 5000/1000 = 5, so the killer should get 5x the normal number of points.

Alternatively, if the victim's skill is 1000, and the killer's is 5000, 1000/5000 = 0.2, so the killer would get a fifth of the usual points.

If you want the effect to be more/less pronounced, you could use exponentials (e.g. square it to make it have more of an effect, or take the square root to have less of an effect).


EDIT: Now that I think about it, you'd get some pretty funky results whenever one of the skill levels approached zero, and it would completely fall apart if one was negative. Forget I ever said anything
__________________

Last edited by Scone; 10-16-2011 at 17:06.
Scone is offline
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 10-16-2011 , 17:24   Re: Logical help needed
Reply With Quote #7

Okay, here's a much better system to find a multiplier.

Take the difference between the victim and the killer's skills. For example, 5000 - 1000 = 4000.

Then take a number slightly larger than one to the power of this difference. For example, 1.0005:

1.0005^(5000 - 1000) = 7.4x the normal number of points
1.0005^(2000 - 1000) = 1.6x
1.0005^(1000 - 1000) = 1x (they have the same skill)
1.0005^(1000 - 2000) = 0.6x (killer is more skilled)

And it works nicely even if one of the players has a negative skill, or zero skill:

1.0005^(5000 - 0) = 12.2x

The only thing is you'll have to do some tweaking to find the optimum value - 1.0005 seems to work well with skills in this range. Hope that helps.
__________________

Last edited by Scone; 10-16-2011 at 17:37. Reason: 1.005 should have been 1.0005
Scone is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 10-16-2011 , 17:30   Re: Logical help needed
Reply With Quote #8

what does this stands for ? 1.005^
reinert is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-16-2011 , 17:36   Re: Logical help needed
Reply With Quote #9

Quote:
Originally Posted by reinert View Post
what does this stands for ? 1.005^
Quote:
Originally Posted by Scone View Post
Then take a number slightly larger than one to the power of this difference. For example, 1.0005:
http://en.wikipedia.org/wiki/Exponentiation
__________________
fysiks is offline
8088
Veteran Member
Join Date: Jan 2008
Old 10-16-2011 , 17:50   Re: Logical help needed
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
Assuming Reinert understands Dutch: http://nl.wikipedia.org/wiki/Machtsverheffen

'to the power of' = 'tot de macht'
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode