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.

Help with a skript error

Discussion in 'Skript' started by smorfo, Jan 7, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. smorfo

    smorfo Member

    Joined:
    Jan 5, 2022
    Messages:
    3
    Likes Received:
    0
    I keep struggling and always end up with this one error when i try to fix it i just get more error's
    Here's the skript

    command /brutesword:
    aliases: bsw,brutesword
    permission: brutesword.use
    permission message: &c&lNo permission
    trigger:
    give player golden sword named "&c&lBRUTE &e&lSERIES" with lore "&4Brute strength"
    on damage:
    if attacker is player
    if attacker's tool is a golden sword named "&c&lBRUTE &e&lSERIES" with lore "&4Brute strength"
    Chance of 15%:
    apply potion of strength 2 to attacker for 6 seconds
    stop

    skhelp.png
     
  2. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    82
    Likes Received:
    8
    You have to indent after every colon( : ), and you need colons after your conditions
     
  3. smorfo

    smorfo Member

    Joined:
    Jan 5, 2022
    Messages:
    3
    Likes Received:
    0
    I know but im new to skript can you give me an example on how to do that?
     
  4. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    82
    Likes Received:
    8
    Code (Text):
    1. command /brutesword:
    2.     aliases: bsw,brutesword
    3.     permission: brutesword.use
    4.     permission message:  &c&lNo permission
    5.     trigger:
    6.         give player golden sword named "&c&lBRUTE &e&lSERIES" with lore "&4Brute strength"
    7.  
    8. on damage:
    9.     if attacker is player:
    10.         if tool of attacker is a golden sword named "&c&lBRUTE &e&lSERIES" with lore "&4Brute strength":
    11.             Chance of 15%:
    12.             apply potion of strength 2 to attacker for 6 seconds
     
  5. rsrsamr

    rsrsamr New Member

    Joined:
    Jan 25, 2022
    Messages:
    8
    Likes Received:
    0
Thread Status:
Not open for further replies.

Share This Page

Loading...