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 add stats when player is holding an item

Discussion in 'Skript' started by _ExtraGames_, Oct 25, 2021.

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

    _ExtraGames_ Member

    Joined:
    Apr 3, 2021
    Messages:
    11
    Likes Received:
    0
    Hello, I've been trying to make a stats sistem but I can't do it.

    Code (Text):
    1. on item hold:
    2.     if player is holding a wooden sword named "Wooden  Katana":
    3.         add 5 to {damage}
    it work but when the player is changing the item he keeps the damage stat. any ideas how I can fix it?
     
  2. Best Answer:
    Post #2 by yea rite, Oct 26, 2021
  3. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    60
    Likes Received:
    3
    should work
    Code (Text):
    1.  
    2. on damage:
    3.   if name of held item of attacker is "name of item":
    4.     increase damage by 5
     
  4. _ExtraGames_

    _ExtraGames_ Member

    Joined:
    Apr 3, 2021
    Messages:
    11
    Likes Received:
    0
    tyvm, it works
     
Thread Status:
Not open for further replies.

Share This Page

Loading...