Random colored armor

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

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
47
Hey guys,
Im trying to write a script that give you random dyed armor with RBG.

This is the code i have now:

code_language.skript:
command /random:
    trigger:
        equip the player with a leather leggings
        set {color} to random number between 0 and 255
        set {color} to floor({color})
        message "%{color}%"
        dye player's leggings (%{color}%, %{color}%, %{color}%)

Can you guys help?
 
no % % inside the parentheses after dye player's leggings. You should also be using local variables if you do not want to save it after the command ends (assuming that you probably won't).
 
btw the color will always be a shade of gray the way you have it. The r, g, and b need to be different numbers or else its just a shade of gray
 
no % % inside the parentheses after dye player's leggings. You should also be using local variables if you do not want to save it after the command ends (assuming that you probably won't).

I dont know what you mean
 
Status
Not open for further replies.