Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Error editing #38

Closed
ghost opened this issue Jan 25, 2018 · 4 comments
Closed

Error editing #38

ghost opened this issue Jan 25, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2018

Hello! When editing a global GUI, it is not possible to use with lore on the new formats. If I remove the lore of this code, it works just fine.

set {online::kitpvp} to size of all bungeecord players on server "KitPvP"
edit gui "NAVIGATE":
	make gui slot 26 with 1 of iron sword named "&c&l&nKITPVP" with lore "||&eKlik her, for at gå til serveren!|||| &8>> &c%{online::kitpvp}%":
		send "{@prefix} &7Du bliver nu sendt til vores &aKitPvP &7server!" to player
		send "%player%" to bungeecord server "KitPvP"

'::kitpvp}%"' is not a valid item data (navigate.sk, line 49: make gui slot 26 with 1 of iron sword named "&c&l&nKITPVP" with lore "||&eKlik her, for at gå til serveren!|||| &8>> &c%{online::kitpvp}%":')

@Snow-Pyon
Copy link

the with lore expression comes from skQuery so that's probably why it isn't working

@ghost
Copy link
Author

ghost commented Jan 25, 2018

Well, in that case, how am I supposed to change my lore? Does TuSKe have a special syntax for adding a lore?

Under normal circumstances like make gui slot 0 of player with 1 of stone named "Stone" with lore "Stone" to do nothing it works just fine.

There is no way this GUI aimed plugin has no way of changing GUI lores...

@Snow-Pyon
Copy link

The thing is that everyone thought it was a vanilla Skript feature but it isn't. It'll be added to vanilla Skript soon anyways.

So, meanwhile you'll have to do:

set {_item} to stone named "test"
set {_item}'s lore to "something" and "something else"
make gui slot 0 of player with {_item} to do nothing 

I know it's a bit ugly but you'll have to be patient.

@ghost
Copy link
Author

ghost commented Jan 25, 2018

Alright!

I only need to do it with 5 items anyways, so may as well work.
Thank you for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants