1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I detect a player's EXP level?

Discussion in 'Skript' started by Nerf Thiss, May 9, 2020.

Thread Status:
Not open for further replies.
  1. Nerf Thiss

    Nerf Thiss New Member

    Joined:
    Apr 19, 2020
    Messages:
    8
    Likes Received:
    0
    Hey,
    I'm trying to make a leveling system in one of my servers, where the higher your level is, the higher the maximum health you have.
    At first, I tried this:
    Code (Text):
    1. if players exp level is equal to 3:
    2.     set the maximum health of the player to 6
    But Skript can't seem to understand the event. (skript 1.15.2)
    Is there any other way I could have Skript detect a player's level?
     
  2. simply replace "exp" with "experience"
     
  3. Nerf Thiss

    Nerf Thiss New Member

    Joined:
    Apr 19, 2020
    Messages:
    8
    Likes Received:
    0
    It still doesn't work..
    Skript can't recognize the event.
     
  4. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    what's players? I think you meant player's
     
  5. Nerf Thiss

    Nerf Thiss New Member

    Joined:
    Apr 19, 2020
    Messages:
    8
    Likes Received:
    0
    I tried with "player's" earlier as well, but it still wouldn't work.
     
  6. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Code (Text):
    1. on level change:
    2.     if player's level is 3:
    3.         set player's max health to 6
     
  7. Nerf Thiss

    Nerf Thiss New Member

    Joined:
    Apr 19, 2020
    Messages:
    8
    Likes Received:
    0
    This works, thank you!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...