Skocz do zawartości
  • 0

Zamiana z "tekst" na "TEKST"


Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
21 minut temu, Sh1ft_S napisał:

on chat:

    if message contains "test": 

        replace all with "TEST"

Nie wiem czy będzie działać

Test to taki przykład i chodzi o zmienne np. {_test} a nie chat.

Edytowane przez ThatsVylence
Odnośnik do komentarza
https://skript.pl/temat/27923-zamiana-z-tekst-na-tekst/#findComment-184965
Udostępnij na innych stronach

  • 0
function toUpper(t: text) :: text:
	replace all "a" with "A" in {_t}
	replace all "b" with "B" in {_t}
	replace all "c" with "C" in {_t}
	replace all "d" with "D" in {_t}
	replace all "e" with "E" in {_t}
	replace all "f" with "F" in {_t}
	replace all "g" with "G" in {_t}
	replace all "h" with "H" in {_t}
	replace all "i" with "I" in {_t}
	replace all "j" with "J" in {_t}
	replace all "k" with "K" in {_t}
	replace all "l" with "L" in {_t}
	replace all "m" with "M" in {_t}
	replace all "n" with "N" in {_t}
	replace all "o" with "O" in {_t}
	replace all "p" with "P" in {_t}
	replace all "q" with "Q" in {_t}
	replace all "r" with "R" in {_t}
	replace all "s" with "S" in {_t}
	replace all "t" with "T" in {_t}
	replace all "u" with "U" in {_t}
	replace all "w" with "W" in {_t}
	replace all "z" with "Z" in {_t}
	return {_t}

Zastosowanie:
 

command /check [<text>]:
	trigger:
  		if arg 1 is set:
			set {_text} to toUpper(%coloured arg%)
			send {_text} to player

 

Odnośnik do komentarza
https://skript.pl/temat/27923-zamiana-z-tekst-na-tekst/#findComment-184967
Udostępnij na innych stronach

  • 0

Dokładnie chodzi o np,

set {_tekst} to "Wiadomość testowa"

set {_tekst2} to [powiększ] {_tekst}

send "%{_tekst2}%" [Wynik "WIADOMOŚĆ TEKSTOWA"]

 

Edytowane przez ThatsVylence
Nieaktywny

znacznik code ^>^

Odnośnik do komentarza
https://skript.pl/temat/27923-zamiana-z-tekst-na-tekst/#findComment-184968
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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