Skocz do zawartości
  • 0

error


brvads

Pytanie

   set {_x} to {targ.itemy.%{name.%player%}%::%index of clicked slot+1%}
                clear line (length of lore of {_x}) of lore of {_x}
                give {_x} to the player

[21:07:33 ERROR]: Can't understand this condition/effect: clear line (length of lore of {_x}) of lore of {_x} (targ.sk, line 57: clear line (length of lore of {_x}) of lore of {_x}')

Edytowane przez xNightPower_
Nieaktywny

Naprawiam formatowanie na ciemnym stylu, umieszczam kod w code.

Odnośnik do komentarza
https://skript.pl/temat/44955-error/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
19 minut temu, brvads napisał:

   set {_x} to {targ.itemy.%{name.%player%}%::%index of clicked slot+1%}
                clear line (length of lore of {_x}) of lore of {_x}
                give {_x} to the player

[21:07:33 ERROR]: Can't understand this condition/effect: clear line (length of lore of {_x}) of lore of {_x} (targ.sk, line 57: clear line (length of lore of {_x}) of lore of {_x}')

Skoro to nie działa, spróbujemy inaczej.

set {_lore::*} to lore of {_x}
remove last element out of {_lore::*}
set lore of {_x} to {_lore::*}

 

Edytowane przez xNightPower_
Odnośnik do komentarza
https://skript.pl/temat/44955-error/#findComment-282630
Udostępnij na innych stronach

  • 0
4 minuty temu, Kormic napisał:

Skoro to nie działa, spróbujemy inaczej.


set {_lore::*} to lore of {_x}
remove last element out of {_lore::*}
set lore of {_x} to {_lore::*}

 

[21:25:24 ERROR]: [Skript] Can't understand this condition/effect: remove last element out of {_lore::*} (targ.sk, line 57: remove last element out of {_lore::*}')

Nieaktywny

Naprawiam cytat.

Odnośnik do komentarza
https://skript.pl/temat/44955-error/#findComment-282633
Udostępnij na innych stronach

  • 0
2 minuty temu, brvads napisał:

[21:25:24 ERROR]: [Skript] Can't understand this condition/effect: remove last element out of {_lore::*} (targ.sk, line 57: remove last element out of {_lore::*}')

A, zapomniałbym.

remove (last element out of {_lore::*}) from {_lore::*}

Tak powinna wyglądać druga linijka.

Odnośnik do komentarza
https://skript.pl/temat/44955-error/#findComment-282637
Udostępnij na innych stronach

  • 0

Okej, przetestowałem:

6 minut temu, brvads napisał:

length of lore of {_x}

zwraca długość poszczególnych linijek lore, dlatego ja bym to zrobił tak:

set {_x} to {targ.itemy.%{name.%player%}%::%index of clicked slot+1%}
set {_lore::*} to lore of {_x}
set {_} to "%size of {_lore::*}%" parsed as integer
clear line {_} of lore of {_x}
give {_x} to the player

 

Odnośnik do komentarza
https://skript.pl/temat/44955-error/#findComment-282638
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...