#Help with gradient chat color
1 messages · Page 1 of 1 (latest)
return gradient({_text}, ("FB0808", "FF9B00"))
newer to sk
ive read all the colorutils docs nothin
command exclusivecolors [<text>]:
aliases: ecc
permission: ecc.use
trigger:
if arg 1 is "blaze":
if player has permission "iceycc":
set %{color.%player%}% to "<gradient:489BE4:94D6EB>%message%</gradient>"
else:
send "&c(!) &7You Do not have permission to execute this command!" to player
if arg 1 is not set:
open chest with 5 rows named "<##FF00AA> Exclusive Chat-Colors" to player
wait 1 tick
format slot 10 of player with 1 pink wool named "&drainbow test" with lore "RAINBOW BABY" to close then run [execute player command "ecc blaze"]
theres my code aside from colorutils
its the <gradent> stuff
idk what to put there
messageformat: %player's displayname%&7 ⮕ %{color.%player%}%%message%
i want to make a gradient chatcolor
i cant find any docs oin it
im using the colorutils skript thing
you cant use the message expression outside of a chat event
and that last line looks suspiciously like tuske syntax
So how could I translate that to a on chat event?
Not sure what that means tbh
TuSKe is an outdated addon which is not recommended
I’m not using it
then is the last line skquery?
that cant be skript or skbee syntax
Idk but it’s what I used for my other Charcot script
Chatcolor
And it works
I just don’t know how to sup the function to run when clicked on in a gui to make the chatcolor a gradient
"sup"
set-up??
just set a variable/nbt/whatever to the players chatcolour
then use that in the chat event
Imma be honest I have no idea how to do that
Like ‘’’’on chat:
Set %{color.%player%}% to Gradientblaze(text:text) text :: text
Or wtvr
Yeah set up
just set a variable to their gradient
then set the chat format to %{}%...</gradient>
^
function*
yeah, if everyone has the same gradient
Well I want to set it up to where you need a certain permission to do it
How would I set up the variable for the message format thing
you can check if they have the permission then use the function if you want
on chat:
if player has permission "blazecc":
if {color::blaze} is true:
set chat format to %player's displayname%&7 ⮕ function GradientBlaze(text:text) :: text:
return gradient({_text}, ("FB0808", "FF9B00"))%message%
something like this?
i just started using functions
why the heck do you have a return there?
heck, I would just set message to func(message)
on chat:
if player has permission "blazecc":
if {color::blaze} is true:
set chat format to %player's displayname%&7 ⮕ function GradientBlaze(message)
legit just that?
no
- no
functionkeyword when calling - the chat format has to be set to a string
- set the message, that way it doesnt affect the whole format and you can use whatever your default one is
on chat:
if player has permission "blazecc":
if {color::blaze} is true:
set message format to %player's displayname%&7 ⮕ GradientBlaze(message)
bro has his own syntax page 💀
im using colorutils btw
Color Utils
By Mr. Darth and Sorbon
12.11.2022 Bugfix MC 1.19.2 / Skript 2.6.3
Skript broky, here fixy
You only need to update the Rainbow function
This...
does your line look like this?
is this not that?
okay, but that should happen regardless of whether the message is a gradient or not
my 3rd point here
so just get rid of it in the entirety
you set the chat format for all messages, then only add the gradient (to only the message) if they have the permission
OOOOOHHH
okay hold on
set message to GradientBlaze(message)
function GradientBlaze(text:text) :: text:
return gradient({_text}, ("FB0808", "FF9B00"))
so my function works alongside it?
you could use Skbee for this
wym
skbee text components
yea
still dont know
kind of like this
you can if you want
it seems way more simple so ill tyry
so what is this?
it wont do anything to the message format
would i set the message or the message format then?
not really sure
set {color.%player%} to <rainbow>
I want this to work with my option of my message format
messageformat: %player's displayname%&7 ⮕ %{color.%player%}%%message%
i used your example as a base
set {color.%player%} to mini message from "<rainbow>"
also doesnt work
yea im not sure how to help you
you know anything?
I would just if has permission: set message to "<gradient>%message%<reset>"
what do i replace the <gradient> with?
um alr
im so lost
thers lilke 1
and its so subtle
on chat:
if player has permission "gradient.use":
set {_chatcolor} to "<gradient:#F30A0A:#0A2AF3>"
set {_m} to mini message from "<%player%>{_ChatColor}%%{_msg}%"
broadcast "----------"
send component {_m} to all players
broadcast "----------"
~```
ts all i got out of i
wel i gotta go to bed
lmk if you findd a solution
where did you set {_msg}?
on async chat:
if player has permission "op":
set {_ChatColor} to "<gradient:#F30A0A:#0A2AF3>"
set {_m::1} to text component from formatted "&f<%player%> %{_ChatColor}%"
set {_m::2} to async chat message
set {_m} to merge components {_m::*}
set {_msg} to text component from formatted "%player's displayname%&7 ⮕ %message%"
set {_m} to mini message from "<%player%>{_ChatColor}%%{_msg}%"
broadcast "----------"
send component {_m} to all players
broadcast "----------"
im so lost bro
i looked at other players things and there was basically nothing
figure out the default chat first, ie
set the chat format to "%player% > %message%"```
Then, you can just modify the `message` expression beforehand (apply the gradient):
```on chat:
if player has perm....:
set message to "<gradient:x:y>%message%<reset>"
set the chat format to "%player% > %message%"```
what does that last line do?
on chat:
if {color.%player%} is set:
set message format to "{@messageformat}"
i already have that in my code earlier up
is chat format just message format?
<gradient:x:y>
is this just
from birdflop
just that now
on chat:
if player has permission "op":
set message to "<gradient:#9DFF00:#FF3B00%message%<reset>"
set the chat format to "{@messageformat}"
the @messageformat is not affecting it btw
Xight do i need to set that as {_msg}?
set message to formatted ...
stil
on chat:
if player has permission "op":
set message to formatted "<gradient:#9DFF00:#FF3B00>%message%<reset>"
set the chat format to "{@messageformat}"
on chat:
if player has permission "op":
set message to formatted "<gradient:#9DFF00:#FF3B00>%message%<reset>"
set the chat format to "%player's displayname%&7 ⮕ %message%"
even if i override the color.player it wont work
try minimessage then
so like
set message to formatted mini message "<gradient:#9DFF00:#FF3B00>%message%<reset>"
?
js doesnt work
I FINALLY GOT IT
ty for not spoonfeeding
how tf do i mark is as solved?
on chat:
if player has permission "op":
set message to mini message from "<gradient:#9DFF00:#FF3B00>%message%<reset>"
set the chat format to "%player's displayname%&7 ⮕ %message%"
works
right-click and edit tasg