Hello, I'm trying to do code a command which sends a message with ramdonized colors. Every time a player executes the command, it sends a message with a random color. How can I do this?
I tried using this, but I can't fix it. I don't know how to make skript read it as color and not as text, because the expresion parsed as color can't be used here.
The message apears like that: "&x -------------------------------"
(The x is replaced with a color code)
I tried using this, but I can't fix it. I don't know how to make skript read it as color and not as text, because the expresion parsed as color can't be used here.
code_language.skript:
set {_&} to "1|2|3|4|5|6|7|8|9|0|a|b|c|d|e|f"
set {_x::*} to {_&} split at "|"
set {_&x} to "%random element out of {_x::*}%"
send "&%{_&x}%-------------------------------"
(The x is replaced with a color code)
Last edited: