Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split by "||" not working... - High Priority #3019

Closed
emergenitro opened this issue May 29, 2020 · 12 comments
Closed

split by "||" not working... - High Priority #3019

emergenitro opened this issue May 29, 2020 · 12 comments
Labels
invalid Not a Skript issue, already implemented, does not apply, etc.

Comments

@emergenitro
Copy link

Look, I know this may seem like #719 but, it's not because my version is dev25 and hence, is not working... I tried ("") and even [split "%{_lore::*}%" by "||"]

I need help ASAP. Thanks in advance!!!

@emergenitro
Copy link
Author

image

@emergenitro emergenitro changed the title split by "||" not working... split by "||" not working... - High Priority May 29, 2020
@Vrganj
Copy link
Contributor

Vrganj commented May 29, 2020

Yeah, but have you tried ("string") split at "||"

@emergenitro
Copy link
Author

hmm lemme try that!

@emergenitro
Copy link
Author

No, but, I am using a complex method... Because the skript I'm making is a custom enchants skript!

@Vrganj
Copy link
Contributor

Vrganj commented May 29, 2020

Split at is working, whatever you're doing is wrong

@emergenitro
Copy link
Author

set lore of player's tool to "%{_lore::*}%" split at "||"

How do I make it work with that?

@Vrganj
Copy link
Contributor

Vrganj commented May 29, 2020

I literally just told you to use () around the first string

@emergenitro
Copy link
Author

okay okay one sec

@emergenitro
Copy link
Author

image

There

@Vrganj
Copy link
Contributor

Vrganj commented May 29, 2020

Can't your read the error..? Just don't split the string

@emergenitro
Copy link
Author

Bruh the lore will become

like Efficiency and Fortune and Flying And Explosive

@Whimsyturtle Whimsyturtle added the invalid Not a Skript issue, already implemented, does not apply, etc. label May 29, 2020
@Whimsyturtle
Copy link
Member

command /ex:
    trigger:
        set {_x} to diamond pickaxe
        set {_x}'s lore to split "1||2||3||4" at "||"
        broadcast "%{_x}'s lore%"

Run /ex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Not a Skript issue, already implemented, does not apply, etc.
Projects
None yet
Development

No branches or pull requests

3 participants