What is wrong with this? / How can I get this to work?

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

owen kruse

Member
Aug 2, 2019
2
0
0
I am very new to this and not very good at this but I want a way for hunger to go down more quickly so I wrote this
Every 30 second in "world":

subtract 2 from the player's food level

But it does not work
Do I need to specify all the players?

Thank you to anyone who can help I'm sure I seem like a lost cause.
 
I am very new to this and not very good at this but I want a way for hunger to go down more quickly so I wrote this
Every 30 second in "world":

subtract 2 from the player's food level

But it does not work
Do I need to specify all the players?

Thank you to anyone who can help I'm sure I seem like a lost cause.
There is no player in a periodical event, so you will need to loop all players, and use your effects on the loop player, like so:
code_language.skript:
every 30 seconds in "world":
    loop all players:
        remove 2 from food level of loop-player
 
Status
Not open for further replies.