xaya / taurion_gsp

Taurion - A Fully Decentralised MMO built for the Xaya Platform.
https://taurion.io
GNU General Public License v3.0
23 stars 10 forks source link

Track kills and leader board #6

Closed domob1812 closed 5 years ago

domob1812 commented 5 years ago

We should keep a list of (target, attacker) entries, to keep track of who killed some character. On this list, we want all owner names of whom characters damaged the target in the last 100 blocks.

When a character is actually killed, then 1000 points (or some other value of it) should be distributed evenly to everyone on its current kill list. With those points, we should create a leader board of Xaya names.

domob1812 commented 5 years ago

@xaya, is 100 blocks ok for the time frame? And what value should characters have - just 1000 flat for now, or do you want to base that on the owner's score or something?

domob1812 commented 5 years ago

The kill list should track characters, not owner names. If a character is killed, then it is removed from all kill lists. Otherwise it will be removed 100 blocks after having done damage last.

I'll implement the kill lists for now, while we still work out how fame should be distributed later on (based on the lists).

domob1812 commented 5 years ago

Basic tracking of damage lists is now implemented (#10). What remains is to decide on the actual fame computation formulas and implement those. @xaya

xaya commented 5 years ago

for the fame.. these levels

Fame - 0 to 999 Opponents Max Fame for Modification - 1999

Fame - 1000 to 1999 Opponents Max Fame for Modification - 2999

Fame - 2000 to 2999 Opponents Min Fame for Modification - 1000 Opponents Max Fame for Modification - 3999

Fame - 3000 to 3999 Opponents Min Fame for Modification - 2000 Opponents Max Fame for Modification - 4999

Fame - 4000 to 4999 Opponents Min Fame for Modification - 3000 Opponents Max Fame for Modification - 5999

Fame - 5000 to 5999 Opponents Min Fame for Modification - 4000 Opponents Max Fame for Modification - 6999

Fame - 6000 - 6999 Title - General Opponents Min Fame for Modification - 5000 Opponents Max Fame for Modification - 7999

Fame - 7000 to 7999 Opponents Min Fame for Modification - 6000 Opponents Max Fame for Modification - 9999

Fame - 8000 to 9999 Opponents Min Fame for Modification - 7000 Opponents Max Fame for Modification - 9999

9999 is the cap.

fame distributed between all players involved in the kill. but - the victim only loses 100. So 100 is shared amongst all the players (names).

If 2 characters of the same name are involved in a kill of 1 character then the killers name gets 100 points (not 2x 100)

If 10 characters made up of 1 name with 9 characters and 1 name of 1 character kills 1 character, both of the names involved in that kill get 50 each (not 90 to the 1 name with 9 characters).

xaya commented 5 years ago

Each name starts with 100 fame

each death has loses 100 fame, and that fame is shared amongst the killers.

domob1812 commented 5 years ago

Ok. Two questions:

1) "9999 is cap" - does that mean that noone can get fame above 9999? That would then also cap the leader board, right? Is that what we want? Or does it just mean that everyone above 8000 is on the highest "level" for the sake of distributing fame?

2) What happens when people out of the adjacent levels are killing someone? Are these examples correct:

xaya commented 5 years ago
  1. Yes once past 8000, you are on the same level (but may or may not be 1 death from lower one and the other person has 10 deaths before he gets demoted).

If someone who is 9999 kills someone who is 7999, the 9999 person gains no points, but the loser still loses 100 points.

2.

yes exactly for all 3.