Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add support for levels and experience points (XP) #98

Open
1 task
lulunac27a opened this issue Dec 6, 2024 · 12 comments
Open
1 task

[Feature]: Add support for levels and experience points (XP) #98

lulunac27a opened this issue Dec 6, 2024 · 12 comments
Assignees
Labels
Feature New feature or request
Milestone

Comments

@lulunac27a
Copy link

What kind of feature do you want?

I want to see my level with experience points (XP) to see my progress so far.

Additional questions

  • I want to work on this feature request
@lulunac27a lulunac27a added the Feature New feature or request label Dec 6, 2024
@dromse
Copy link
Owner

dromse commented Dec 7, 2024

Hi, @lulunac27a! I'm pondering how to incorporate this feature inside the plugin.
I consider a few variants for earning points (could be implemented all or pick the most useful):

  1. Abstract Points
  2. Points based on counter
  3. Points based on coin earning
  4. Points based on difficulty
  5. Use #lvl/points to define how many points you gain

Levels:

  1. Abstract levels like 1-99 etc.
  2. User-specified levels you can define your Level or Rank in the settings.

It is currently in the design stage, so if you have more detailed thoughts on implementation, I will try to implement it.

I'm looking forward to your feedback!

Thanks for your attention.

@lulunac27a
Copy link
Author

I want to add support with unlimited levels, which has no level cap.

@dromse
Copy link
Owner

dromse commented Dec 7, 2024

Okay, what do you think about using difficulty as an XP and increase the level-up costs geometrically? For instance, the cost could be 5 coins for level 1, 10 coins for level 2, 20 coins for level 3, just multiply on 2 and so on.

@lulunac27a
Copy link
Author

When the task is completed, the user will get XP points based on the task's difficulty. The more difficult the task, the more XP points the user gets. Leveling up requires a specific amount of XP points to reach the level, so it doesn't cost anything to level up; it levels up automatically when you reach a specified amount of XP points required to level up.

@dromse
Copy link
Owner

dromse commented Dec 7, 2024

Yup, I just use a term coin to describe difficulty, but yeah XP and coins would be independent from each other.

@lulunac27a
Copy link
Author

I agree with that.

@dromse dromse added this to the 2.0.0 milestone Dec 7, 2024
@lulunac27a
Copy link
Author

Also add a progress bar where the progress is the number of XP since the user levelled up out of the number of XP required to reach the next level.

@lulunac27a
Copy link
Author

lulunac27a commented Dec 8, 2024

The user can also earn XP points using counters, so when the user clicks the + (plus) sign to increase the counter, the user earns XP points, but when the user click the - (minus) sign, the user doesn't lose any XP points.

@dromse
Copy link
Owner

dromse commented Dec 9, 2024

What to do if a user miss-clicks the counter and wants to fix it by decreasing it?

@lulunac27a
Copy link
Author

The user doesn't lose any XP points so the user doesn't lose a level.

@dromse
Copy link
Owner

dromse commented Dec 11, 2024

Okay 👍️

@lulunac27a
Copy link
Author

Is this work done yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants