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.

About loop the variable

Discussion in 'Skript' started by sklake, Mar 30, 2018.

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

    sklake New Member

    Joined:
    Mar 30, 2018
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1.  
    2. command /status:
    3.     trigger:
    4.         add 1 to {Player::player1::kills}
    5.         add 2 to {Player::player2::kills}
    6.         add 3 to {Player::player3::kills}
    7.  
    8.         loop {Player::DONT KNOW HERE::kills::*}:
    9.             broadcast "%loop-index% : %loop-value%"
    10.  

    Hello, i have a question about loop all the player kills status.
    let's say there have 3 player , player1 , player2 and player3.
    Thanks
     
  2. LimeGlass

    VIP Supporter ++ Regular Diner Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    622
    Likes Received:
    439
    Medals:
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...