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.

Find the attack damage

Discussion in 'Skript' started by Melody, Mar 1, 2021.

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

    Melody Member

    Joined:
    Jan 19, 2021
    Messages:
    17
    Likes Received:
    1
    So im trying to make a system so I can make a sword do 30% of the base attack. But I need to find the base damage to do so. This is what I have got for now and it only says "generic attack damage"

    on damage:
    if uncolored name of the tool of attacker is "Archer's Knife":
    set {damage.%attacker%} to attack damage
    send "%{damage.%attacker%}%" to attacker
    else:
    cancel event
    send "&cThis aint a weapon! Or Is it just a bug! If you believe this is a bug please report it to admins!" to attacker
     
Thread Status:
Not open for further replies.

Share This Page

Loading...