Solved Indentation Error with command

  • 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.
Jul 25, 2019
20
2
0
27
I'm trying to make a command that summons an amount of zombies(that you choose) and skript comes up with the error:
Cant understand effect on line 3


Here is my code:
Code:
command /zombie <amount>
    trigger:
        spawn %arg 1% zombies 3 blocks above the player
 
Last edited:
Hello fellow gamer!

Can you replace <amount> with <number> and provide feedback? :emoji_slight_smile:

I have now done this as i have been doing my own research for this but this doesn't help as there is still an error where skript says it doesnt understand
Code:
spawn %arg 1% zombies 3 blocks above the player
 

Attachments

  • PROOF.PNG
    PROOF.PNG
    9.2 KB · Views: 154
Fellow gamer, you have to put that inside a function, example:
Code:
command /zombie [<number>]:
    trigger:
        set {_loc} to player's location
        add 3 to y-coordinate of {_loc}
        spawn %arg-1% zombies at {_loc}

I have just tried this and it has come up with the same error


I was testing this to see if it worked and the error was for the line with %arg 1%
Code:
command /zombie [<number>]:
    trigger:
        loop %arg 1% times:
            make the player shoot a zombie at speed 0
 
make the player shoot a zombie at speed 0

What is that??

Also what Addons do you have on plugins folder

What? Addons for Skript?
If so I have Skript and Skquery

and the shoot zombie thing make the player shoot a zombie like a player would shoot a arrow from a bow its quite a fun effect
 
Code:
command /zombie <integer>:
    trigger:
        spawn arg of zombies 3 blocks above the player
Can you try that?
Edit: Please copy paste
 
Sorry for the mistake.
Code:
command /zombie <integer>:
    trigger:
        spawn arg of zombie at block 3 above player
Tried and worked.
 
Status
Not open for further replies.