Case-sensitive index output?

  • 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 community!

    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.

CrimZ0N

Member
Jan 28, 2017
56
3
8
Long story short I was curious if it was possible to have the @index output be case-sensitive ?

I'm trying to basically have a most blocks broken leaderboard, I am using

set {sorted.most.blocks.broken::*) to sorted {most.blocks.broken::*} from highest to lowest with output "&7@index with @value""

basically from Offlinezz's EloSk skript (sorry if you feel ripped off :emoji_frowning:) but they're not case sensitive, example, TeST1 would be Test1, so basically only the first letter is capitalized, the rest aren't. I tried enabling the case-sensitive thingy in the Skript config but it didn't seem to help.

Does anyone have an idea/replacement/solution that I can use or do I just find another way around it? Thanks anyways, appreciated.
 
Last edited:
Variables are always converted to lower case. In this case, I'm guessing parsing as an offline player will fix your issue
 
Variables are always converted to lower case. In this case, I'm guessing parsing as an offline player will fix your issue

I have no absolute idea on how I'd do that, example please? How do I parse the @index as an offline player?
 
I have no absolute idea on how I'd do that, example please? How do I parse the @index as an offline player?
Set the index to a local variable, then parse the local variable as an offline player.
 
Set the index to a local variable, then parse the local variable as an offline player.

I did try this in this way

set {_mostblocks.players} to %@index% parsed as offline player
set {_mostblocks.players} to %index% parsed as offline player
set {_mostblocks.players} to {@index} parsed as offline player
set {_mostblocks.players} to {index} parsed as offline player
set {_mostblocks.players} to {%@index%} parsed as offline player
set {_mostblocks.players} to {%index%} parsed as offline player

None of them worked :/
 
If it's a list variable, you need to loop it. Then set loop-index to local variable.
 
If it's a list variable, you need to loop it. Then set loop-index to local variable.

Can you just spoon feed me and give me an example so that I don't have to bother you due to any more errors or is that out of the question ?
 
Status
Not open for further replies.