command c:
trigger:
set {_name::*} to all the files from directory "Gods/"
loop {_name::*}:
set {_t::*} to "%loop-value%"
set {_t::1} to name of file "%{_t::*}%"
wait 1 real second
send {_t::*} in lower case
replace every "_" in {_t::*} with "." # REPLACE nazwy pliku, który będzie wklejony do sounds.json.
set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case
set line {Line2} of file "sounds/sounds.json" to " ""sounds"": ["
set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case
set line {Line4} of file "sounds/sounds.json" to " ]"
set line {Line5} of file "sounds/sounds.json" to " },"
add 5 to {Line1}, {Line2}, {Line3}, {Line4} and {Line5}
rename file {_t::*} to Mała Litera I zamiana kropki na podłogę
Pytanie
Misio12320 32
Witam, pomoże ktoś z rename? Poprosiłbym o
command c: trigger: set {_name::*} to all the files from directory "Gods/" loop {_name::*}: set {_t::*} to "%loop-value%" set {_t::1} to name of file "%{_t::*}%" wait 1 real second send {_t::*} in lower case replace every "_" in {_t::*} with "." # REPLACE nazwy pliku, który będzie wklejony do sounds.json. set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case set line {Line2} of file "sounds/sounds.json" to " ""sounds"": [" set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case set line {Line4} of file "sounds/sounds.json" to " ]" set line {Line5} of file "sounds/sounds.json" to " }," add 5 to {Line1}, {Line2}, {Line3}, {Line4} and {Line5} rename file {_t::*} to Mała Litera I zamiana kropki na podłogęOdnośnik do komentarza
https://skript.pl/temat/36898-rename-z-ma%C5%82ymi-literami/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.