Solved add stats when player is holding an item

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

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

_ExtraGames_

Member
Apr 3, 2021
11
0
1
23
Hello, I've been trying to make a stats sistem but I can't do it.

Code:
on item hold:
    if player is holding a wooden sword named "Wooden  Katana":
        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?
 
Hello, I've been trying to make a stats sistem but I can't do it.

Code:
on item hold:
    if player is holding a wooden sword named "Wooden  Katana":
        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?

should work
Code:
on damage:
  if name of held item of attacker is "name of item":
    increase damage by 5
 
Status
Not open for further replies.