1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Set variable to armor color

Discussion in 'Skript' started by uGim, May 6, 2018.

Tags:
Thread Status:
Not open for further replies.
  1. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Can armor color be saved to a variable?
    Like this:
    Code (Skript):
    1. Set {color} to player's helmet's color
    I have also tried it with NBT but it says that NBT can only be saved temporarily and will be deleted when server stops/restarts.
    Like this:
    Code (Skript):
    1. set {color} to player's helmet's nbt
    Maybe being able to save RBG would do it but I have tried many ways yet no working result.
     
  2. Best Answer:
    Post #2 by Donut, May 6, 2018
  3. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    tuske has the expression youre looking for
    Code (Skript):
    1. set {color::*} to rgb color of player's helmet
    2. broadcast "R: %{color::1}% G: %{color::2}% B: %{color::3}%"
     
  4. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Doesn't work.
    "{color::*} can't be set to 'rgb color of player's helmet' because the latter is not an object" is the error it says.
     
  5. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    do you have tuske and bensku's skript fork
     
  6. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    I use Njol's skript
     
  7. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    use benskus
     
  8. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Could you please share a link to download of Bensku's skript for minecraft 1.8? I'd appreciate it very much.
     
  9. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
  10. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Thank you very much. You are the best.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...