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 our 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 Wait X time

Discussion in 'Skript' started by MeHow, Dec 2, 2017.

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

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    128
    Likes Received:
    11
    Hello everybody, I search everywhere how to do
    Code (Skript):
    1. wait {_sec} seconds
    .
    If you can, help me :I

     
  2. Best Answer:
    Post #4 by Snow-Pyon, Dec 2, 2017
  3. y

    yee Member

    Joined:
    Feb 14, 2017
    Messages:
    3
    Likes Received:
    1
    If you cant get it working any other way, you could just
    Code (Skript):
    1. loop {_sec} times:
    2.     wait 1 second
     
  4. St0medy

    St0medy Member

    Joined:
    Nov 26, 2017
    Messages:
    18
    Likes Received:
    1
    you can do it without variables, you put wait x ticks
     
  5. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,233
    Likes Received:
    170
    Medals:
    The syntax isn't:
    Code (Skript):
    1. wait %number% (seconds|ticks|hours|minutes|days|years)
    it is:
    Code (Skript):
    1. wait %timespan%
    So, that means if you want wait x seconds, x being a number in a variable you would have to parse it:
    Code (Skript):
    1. wait "%{_my-var}% seconds" parsed as timespan
     
Thread Status:
Not open for further replies.
Loading...