Solved Make items glowing

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

Crocie

Member
Jul 2, 2021
36
0
6
16
So i made this, it works and all but when im on the menu i want the item that is selected to be glowing, and the make the other glowing (if there is) to stop.

Please help me

Code:
variables:

    {chatcolor.%player%} = "&f"

on chat:
    set the chat format to "%player% &8>> %{chatcolor.%player%}% %message%"

command /chatcolor:
    trigger:
        open virtual chest inventory with size 6 named "&c&lC&6&lo&e&ll&a&lo&b&lr&d&ls" to player
        format gui slot 10 of player with white stained glass named "&f&lWhite" to run:
            set {chatcolor.%player%} to "&f"
        format gui slot 19 of player with Yellow stained glass named "&e&lYellow" to run:
            set {chatcolor.%player%} to "&e"
        format gui slot 28 of player with Magenta stained glass named "&d&lMagenta" to run:
            set {chatcolor.%player%} to "&d"
        format gui slot 37 of player with pink stained glass named "&c&lLight Red" to run:
            set {chatcolor.%player%} to "&c"
        format gui slot 11 of player with light blue stained glass named "&b&lCyan" to run:
            set {chatcolor.%player%} to "&b"
        format gui slot 20 of player with lime stained glass named "&a&lLight Green" to run:
            set {chatcolor.%player%} to "&a"
        format gui slot 29 of player with Light blue stained glass named "&9&lLight Blue" to run:
            set {chatcolor.%player%} to "&9"
        format gui slot 38 of player with gray stained glass named "&8&lGrey" to run:
            set {chatcolor.%player%} to "&8"
        format gui slot 12 of player with Light gray stained glass named "&7&lLight Grey" to run:
            set {chatcolor.%player%} to "&7"
        format gui slot 21 of player with orange stained glass named "&7&lOrange" to run:
            set {chatcolor.%player%} to "&6"
        format gui slot 30 of player with purple stained glass named "&7&lPurple" to run:
            set {chatcolor.%player%} to "&5"
        format gui slot 39 of player with Red stained glass named "&7&lRed" to run:
            set {chatcolor.%player%} to "&4"
        format gui slot 13 of player with Cyan stained glass named "&3&lCyan" to run:
            set {chatcolor.%player%} to "&3"
        format gui slot 22 of player with Green stained glass named "&2&lGreen" to run:
            set {chatcolor.%player%} to "&2"
        format gui slot 31 of player with Blue stained glass named "&1&lBlue" to run:
            set {chatcolor.%player%} to "&1"
        format gui slot 40 of player with Black stained glass named "&0&lBlack" to run:
            set {chatcolor.%player%} to "&0"
 
Like so:
Code:
        if {chatcolor.%player%} is "&f":
            format gui slot 10 of player with shiny white stained glass named "&f&lWhite"
        else:
            format gui slot 10 of player with white stained glass named "&f&lWhite" to run:
                set {chatcolor.%player%} to "&f"



But: Use list variables
 
Status
Not open for further replies.