Skript icon indicating copy to clipboard operation
Skript copied to clipboard

new expression "colors"

Open FUZIK opened this issue 6 years ago • 5 comments

hello, add "[all] colors" expression --> return all colors from lang file.

thanks

FUZIK avatar Apr 07 '18 08:04 FUZIK

There are only a few colours. You could make a custom aliases in your english-aliases.sk and then use all colours if you were to add it.

TheLimeGlass avatar Apr 09 '18 04:04 TheLimeGlass

The aliases file is for items so I don't know if you could create an alias for colors. Regardless, I can see the benefit of this assuming you're correct in there not being a way to do so already, but as Lime said it would be very easy to solve yourself (such as by creating a list variable containing all colors) and it's also an issue that is rarely relevant, so it will be low prio.

TheBentoBox avatar Apr 11 '18 15:04 TheBentoBox

this could be expanded a bit and we could get something like (all|every) %*classinfo% which would be useful for this and other classinfos (types) that are enum values or could be get from the language files.

Snow-Pyon avatar Apr 11 '18 15:04 Snow-Pyon

https://github.com/TheLimeGlass/skquery/blob/master/SkQuery/src/com/w00tmast3r/skquery/elements/expressions/ExprValues.java

TheLimeGlass avatar Apr 11 '18 15:04 TheLimeGlass

@TheLimeGlass yeah, pretty much what I was talking about but this being "broader" since it could also try to parse values from the language files, something I'm pretty sure skQuery's expression does not.

Snow-Pyon avatar Apr 11 '18 15:04 Snow-Pyon