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 How can i check a sword

Discussion in 'Skript' started by AKRODOGY, Mar 20, 2019.

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

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    Hello, how can i check if A player keeps a sword in his hand or To have the armor on it or not. Please

     
  2. Best Answer:
    Post #4 by novastosha, Mar 20, 2019
  3. Harvey

    Harvey Member

    Joined:
    Jan 16, 2018
    Messages:
    18
    Likes Received:
    0
    Hello, this is how you check if players item is a sword:
    Code (Text):
    1. if player's tool is sword:
    Not sure what you mean on the armour enquiry. Can you please explain further?
     
  4. AKRODOGY

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    I mean if the man has armor on it, for example I want to make a challenge in which you have to fight without armor
     
  5. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Code (Text):
    1. on damage:
    2.     if {Challenge.%attacker%} is true:
    3.         if attacker is not wearing armor:
    4.             send "GG"
    5.         else:
    6.             send "you are wearing armor"
    7.        
     
  6. AKRODOGY

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    Thanks bro <3
     
  7. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    No problem!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...