GUI Help

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

Dovkin

Member
Oct 10, 2018
11
0
0
33
code_language.skript:
        if text-arg is not set:
            if player-arg is not set:
                set {_p} to "%player%" parsed as player
                open chest with 2 rows named "&7Coins - You have %{coins::%uuid of player%}%" to player
                format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to" and "&fplayer particles!" and " " and "&f&lYour Coins Balance:" and "&a%{coins::%uuid of player%}%" to be unstealable
                format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here." and "&fUpdated often with tons" and "&fof new items!" to close then run [make player execute command "coin shop"]
                format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]

code_language.skript:
to close then run [make player execute command "buy"]
This part doesn't work? No errors in Console when starting/reloading and no in game errors when reloading the skript itself.
 
code_language.skript:
        if text-arg is not set:
            if player-arg is not set:
                set {_p} to "%player%" parsed as player
                open chest with 2 rows named "&7Coins - You have %{coins::%uuid of player%}%" to player
                format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to", "&fplayer particles!", " ", "&f&lYour Coins Balance:" and "&a%{coins::%uuid of player%}%" to be unstealable
                format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here.", "&fUpdated often with tons" and "&fof new items!" to close then run [make player execute command "coin shop"]
                format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]

This might be your problem, when you have more than 2 lines of lore I believe you need to have it like "line 1", "line2", "line 3" and "line 4".
Though I might be wrong, cause I am slightly new to skript.
 
You must use ''II'' to make a new line in lore:
code_language.skript:
format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to||&fplayer particles!|| ||&f&lYour Coins Balance:||&a%{coins::%uuid of player%}%" to be unstealable
format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here||&fUpdated often with tons||&fof new items!" to close then run [make player execute command "coin shop"]
format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]
 
You must use ''II'' to make a new line in lore:
code_language.skript:
format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to||&fplayer particles!|| ||&f&lYour Coins Balance:||&a%{coins::%uuid of player%}%" to be unstealable
format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here||&fUpdated often with tons||&fof new items!" to close then run [make player execute command "coin shop"]
format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]
Depends on your Skript version. If it works, fine, use it but if not: replace || with "" and ""
 
You must use ''II'' to make a new line in lore:
code_language.skript:
format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to||&fplayer particles!|| ||&f&lYour Coins Balance:||&a%{coins::%uuid of player%}%" to be unstealable
format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here||&fUpdated often with tons||&fof new items!" to close then run [make player execute command "coin shop"]
format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]

"||" Isn't supported in the latest version of skQuery
 
You have to use Tuske because SkQuery will not be further developed. If you want to add a new line use this
code_language.skript:
format gui slot 0 of player with stone named "It won't do anything" with lore "Line1", "Line2" and "Line3"

SkQuery will not be further developed and the lore's was removed and were add to Skript
 
Status
Not open for further replies.