cant understand this Condition/Effect

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

herohos

Member
Jul 8, 2019
1
0
0
20
on script load:
command:/shop
trigger:
open chest with <6> named "Games" to player
wait 1 tick
format slot 0 with diamond sword named "PVP" with lore "Just like ffa " to <close/be unstealable> then run "/Pvp Join"
 
I'm not really sure what's going on here, since you didn't format your code I have no clue where your indentations are. Are you creating a command within your script load event?!?!
 
on script load:
command:/shop
trigger:
open chest with <6> named "Games" to player
wait 1 tick
format slot 0 with diamond sword named "PVP" with lore "Just like ffa " to <close/be unstealable> then run "/Pvp Join"
tenor.gif

[doublepost=1562652644,1562652359][/doublepost]
on script load:
command:/shop
trigger:
open chest with <6> named "Games" to player
wait 1 tick
format slot 0 with diamond sword named "PVP" with lore "Just like ffa " to <close/be unstealable> then run "/Pvp Join"
You wrote the code wrong.

code_language.skript:
command /shop:
    trigger:
        open chest with 6 rows named "Games" to player
        wait a tick
        set {_ffa} to diamond sword named "PvP"
        set line 2 of lore of {_ffa} to "Just like FFA"
        format a gui slot 0 of player with {_ffa} to close:
           player command "pvp join"
 
tenor.gif

[doublepost=1562652644,1562652359][/doublepost]
You wrote the code wrong.

code_language.skript:
command /shop:
    trigger:
        open chest with 6 rows named "Games" to player
        wait a tick
        set {_ffa} to diamond sword named "PvP"
        set line 2 of lore of {_ffa} to "Just like FFA"
        format a gui slot 0 of player with {_ffa} to close:
           player command "pvp join"
Guys, PLEASE don't use SkQuery's format slot. It's... buggy. Use set slot instead and then an "on inventory click" event to do something when the slot is clicked.

herohos, I'm guessing you're new to Skript. Access this link for its documentation:

http://skriptlang.github.io/Skript/expressions.html

Also, use bensku's Skript fork, not the original plugin since it's outdated.

https://github.com/SkriptLang/Skript/releases
 
Status
Not open for further replies.