Solved How to continue executing the code with a loop in process

  • 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.

NewbyZ

Member
Jan 26, 2017
75
2
0
How to continue executing the code with a loop in process?

code_language.skript:
                loop 100 times:
                    show 30 of enchantment table particle at location of {_loc} offset by 0.0, 0.0, 0.0 at speed 5
                    wait 1 tick
                broadcast "Hello"
                # And more...

How can I do that while the loop is running, make a broadcast that says Hello? (example)
 
just add function... example
code_language.skript:
function loopnumber(i: integer):
    loop {_i} times:
        wait a ticks
        #But its useless... maybe you could explain us FULL what do you want

command /bla:
    trigger:
        loopnumber(100)
        broadcast "Hello!"
 
  • Like
Reactions: NewbyZ
just add function... example
code_language.skript:
function loopnumber(i: integer):
    loop {_i} times:
        wait a ticks
        #But its useless... maybe you could explain us FULL what do you want

command /bla:
    trigger:
        loopnumber(100)
        broadcast "Hello!"

And how i put the {_loc} in a function?
[doublepost=1496862232,1496859504][/doublepost]Fixed thanks :emoji_grinning:
 
Status
Not open for further replies.