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.

Solved Periodic event error

Discussion in 'Skript' started by Oratorio, Oct 4, 2021.

Thread Status:
Not open for further replies.
  1. Oratorio

    Oratorio Member

    Joined:
    Oct 4, 2021
    Messages:
    3
    Likes Received:
    0
    Hello, I was trying to merge a sidebar with a kill counter skript and it continues to give me this error. "There's no world in a periodic event if no world is given in the event.

    Attached is code.
     

    Attached Files:

  2. Best Answer:
    Post #2 by oToghty, Oct 4, 2021
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    143
    Likes Received:
    5
    You can use this, it's way better than what you had. What you'll need to do is download Skbee and delete skrayfall or go into the config and disable scoreboards, but I'd delete it if I were you as it doens't really have any use.
    You should also really consider always using list variables as they have many advantages over nest variables (the ones you're using)
    I was gonna change them for you but I didn't want to confuse you even more as I changed a lot about your code, if you have any questions, go ahead and ask
     

    Attached Files:

    Oratorio likes this.
  4. Oratorio

    Oratorio Member

    Joined:
    Oct 4, 2021
    Messages:
    3
    Likes Received:
    0
    Looks great and much more simplified than before. My only issue is it doesn't update without relogging so i'm working on tweaking now to see what else I can do. What would you recommend?

    Edit: Changed On Join event to "every 6 seconds:"
     
    #3 Oratorio, Oct 4, 2021
    Last edited: Oct 4, 2021
  5. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    143
    Likes Received:
    5
    T
    The code was made so it updates every time someone joins (for the player count) and when the players get kills (for the kills), I completely forgot about the balance, but for that, you can use a periodical event (every x seconds) or, better yet, a while loop
     
  6. Oratorio

    Oratorio Member

    Joined:
    Oct 4, 2021
    Messages:
    3
    Likes Received:
    0
    So if I were to go about that, I would set the periodical or while loop to updateBoard(_balance) correct?
     
  7. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    143
    Likes Received:
    5
    updateBoard(player)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...