Help with a skript error

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

smorfo

Member
Jan 5, 2022
3
0
1
22
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
 
You have to indent after every colon( : ), and you need colons after your conditions
 
I know but im new to skript can you give me an example on how to do that?
Code:
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 tool of attacker 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
 
Status
Not open for further replies.