Display level feature #71

Closed
opened 6 months ago by kimimaru · 1 comments
Owner

Set up a new table in the database called UserDisplayRank with the following columns:

  • ID - Used as the primary key and auto-generated. Noted for completeness.
  • Rank - The rank, represented as an integer.
  • ExpRequirement - The amount of "exp" required to achieve this rank. Use the user's ValidInputCount.
  • Label - The label associated with the rank.

As indicated by the name, ranks are for display purposes only. Display the rank in the UserInfoCommand and the LevelCommand.

The user's rank is determined by the highest input count they reached. For instance, if Rank 5, Warlock is achieved at 1000 inputs and Rank 6, Archmage is achieved at 1050 inputs, the user is at Rank 5 if they have between 1000 and 1049 inputs.

Start with a default set of ranks.

Set up a new table in the database called **UserDisplayRank** with the following columns: * **ID** - Used as the primary key and auto-generated. Noted for completeness. * **Rank** - The rank, represented as an integer. * **ExpRequirement** - The amount of "exp" required to achieve this rank. Use the user's `ValidInputCount`. * **Label** - The label associated with the rank. As indicated by the name, ranks are for display purposes only. Display the rank in the `UserInfoCommand` and the `LevelCommand`. The user's rank is determined by the highest input count they reached. For instance, if *Rank 5, Warlock* is achieved at 1000 inputs and *Rank 6, Archmage* is achieved at 1050 inputs, the user is at Rank 5 if they have between 1000 and 1049 inputs. Start with a default set of ranks.
kimimaru added the
enhancement
label 6 months ago
kimimaru added this to the TRBot 2.4 project 6 months ago
Poster
Owner

Completed in a6099667cb.

By default, there are 20 ranks. A message is be displayed when a user's display rank changes.

Completed in https://codeberg.org/kimimaru/TRBot/commit/a6099667cb309245cf1ca639da0fe7783a79ed62. By default, there are 20 ranks. A message is be displayed when a user's display rank changes.
kimimaru closed this issue 4 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.