akshayjh / codelinkv2

Automatically exported from code.google.com/p/codelinkv2
0 stars 0 forks source link

PvP Overhaul #536

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide detailed Information about the Feature you would like to
see.

I would like to see credits, experience and/or loyalty points gained by PvP.
I would also like to see the scripts do damage based on your current level vs 
the opponent's level.

A formula to calculate credits, experience, and loyalty points would be as 
follows (as an example):

( ( ( opponent.level - player.level ) / player.level ) + 1 ) * base * ( 
opponent.level / 10 )

Example uses of formula:
(Same level opponent)
( ( ( 30 - 30 ) / 30 ) + 1 ) * 100000 * ( 30 / 10 ) = 1 * 100000 * 3 = 300000
(Lower level opponent)
( ( ( 25 - 30 ) / 30 ) + 1 ) * 100000 * ( 30 / 10 ) = 0.8333 * 100000 * 2.5 = 
208325
(Higher level opponent)
( ( ( 35 - 30 ) / 30 ) + 1 ) * 100000 * ( 30 / 10 ) = 1.6667 * 100000 * 3.5 = 
583345

As you can see, you'll get rewarded less for opponents lower than your level, 
but be rewarded with much more if they're a higher level which will compensate 
for harder opponents.

A formula to calculate damage based on levels would be as follows (as an 
example):

( ( ( player.level - opponent.level ) / player.level ) + 1 ) * 
attackScript.damage * ( player.level / 10 )

Example uses of formula:
(Attacking same level)
( ( ( 30 - 30 ) / 30 ) + 1 ) * 10 * ( 30 / 10 ) = 1 * 10 * 3 = 30 damage
(Attacking lower level)
( ( ( 30 - 25 ) / 30 ) + 1 ) * 10 * ( 30 / 10 ) = 1.1667 * 10 * 3 = 35.001 
damage
(Attacking higher level)
( ( ( 30 - 35 ) / 30 ) + 1 ) * 10 * ( 30 / 10 ) = 0.8333 * 10 * 3 = 24.999 
damage

As you can see, you'll do more damage to lower level opponents (but receive 
less rewards) and do more damage to higher level opponents (but receive more 
rewards).

The base value in the reward calculation and script damage in the damage 
calculation should be changed for whatever the values may be or different 
values altogether.

Please rate the importance of your Feature Request *for others*
[Low|Med|High]: High

Original issue reported on code.google.com by rad00...@gmail.com on 17 Sep 2013 at 6:07