Skip to content

Player Selectable Tier / Rules (pre-defined) #464

@Kowantify

Description

@Kowantify

Is your feature request related to a problem? Please describe.
I'm running into the issue of attempting to have players be able to select their own rules / difficulty level with levelled mobs custom rules
Currently on my server I have 3 buttons that have generic names such as "easy, medium, and hard" and these buttons would apply a luck perms permission to that specific player, which then PAPI would read that as true false, meaning I would need 3 rules essentially for each "difficulty" level, this seemed to be very finicky, and only worked for one ruleset at a time, which is where I stumbled into many issues, I attempted a slew of ideas, but all didn't meet my primary ideas, the ability for the players to select their desired experience, on a permission level

Describe the solution you'd like
----IDEA UPDATED 10-26-2023----
How I would like this to work, (Thanks Buffalo) is that a player would in game type "/lm difficulty "insert vairable here"
This would then, activate a ruleset that has the condition "difficulty-selector: 'variable'"
Example:

 - enabled: true
    name: 'Custom Levelling Hard'

#THE CUSTOM CONDITION BELOW
    condition:  
      difficulty-selector: 'Hard' <-------This would be the variable provided in "/lm difficulty" so that players can select a ruleset

    strategies:
      player-levelling:
        enabled: true
        match-level: false
        use-player-max-level: false
        decrease-level: true
        recheck-players: false
        preserve-entity: 10s
        player-level-scale: 1.0
        level-cap: 50
        merge: false
        tiers:
          1-10: 1-10
        11-20: 11-20
        10-30: 10-30
        31-40: 31-40:
        41-50: 41-50
        variable: '%level%'
 - enabled: true
    name: 'Custom Levelling Easy'

#THE CUSTOM CONDITION BELOW
    condition:  
      difficulty-selector: 'Easy' <-------This would be the variable provided in "/lm difficulty" so that players can select a ruleset

    strategies:
      player-levelling:
        enabled: true
        match-level: false
        use-player-max-level: false
        decrease-level: true
        recheck-players: false
        preserve-entity: 10s
        player-level-scale: 1.0
        level-cap: 25
        merge: false
        tiers:
          1-5: 1-5
        11-15: 11-15
        10-25: 10-25
        variable: '%level%'

Describe alternatives you've considered
I've attempted to use multiple different PAPI placeholders, and with the support of strings it is proving to be very difficult to implement proper rules that include more then just a "yes / no" tier, this would allow for multiple different difficulty levels up to the server owner, and that lets the players decide their own experience

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions