Witam. Mógłby ktoś poprawic ten kod by tylko działał z Skript, TuSKe, Skript-Reflect, Skent.
[Skript] Reloading sounds.sk...
[20:41:53 ERROR]: Can't understand this loop: 'loop all files in directory "/Gods"' (sounds.sk, line 3: loop all files in directory "/Gods":')
[20:41:53 ERROR]: {_name::*} can't be set to 'all the files from directory "Gods/"' because the latter is not an object (sounds.sk, line 11: set {_name::*} to all the files from directory "Gods/"')
[20:41:54 ERROR]: Can't understand this expression: 'name of file "%{_t::*}%"' (sounds.sk, line 14: set {_t::1} to name of file "%{_t::*}%"')
[20:41:54 ERROR]: Can't understand this condition/effect: set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case (sounds.sk, line 18: set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case')
[20:41:54 ERROR]: Can't understand this condition/effect: set line {Line2} of file "sounds/sounds.json" to " ""sounds"": [" (sounds.sk, line 19: set line {Line2} of file "sounds/sounds.json" to " ""sounds"": ["')
[20:41:54 ERROR]: Can't understand this condition/effect: set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case (sounds.sk, line 20: set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case')
[20:41:54 ERROR]: Can't understand this condition/effect: set line {Line4} of file "sounds/sounds.json" to " ]" (sounds.sk, line 21: set line {Line4} of file "sounds/sounds.json" to " ]"')
[20:41:54 ERROR]: Can't understand this condition/effect: set line {Line5} of file "sounds/sounds.json" to " }," (sounds.sk, line 22: set line {Line5} of file "sounds/sounds.json" to " },"')
[20:41:54 INFO]: [Skript] Encountered 8 errors while reloading sounds.sk!
Kod:
oraz poprosiłbym, bym nie musiał za każdym razem zamienić on script load:, ponieważ te zmienne są globalne.
Skrypt polega na tym iż w Minecraft można dodać custom dzwieki i własnie chciałbym je dodawać, ale przez skrypt, ponieważ sporo pracy mi zajmuje takie pisanie po kolei.
Pytanie
Misio12320 32
Witam. Mógłby ktoś poprawic ten kod by tylko działał z Skript, TuSKe, Skript-Reflect, Skent.
[Skript] Reloading sounds.sk... [20:41:53 ERROR]: Can't understand this loop: 'loop all files in directory "/Gods"' (sounds.sk, line 3: loop all files in directory "/Gods":') [20:41:53 ERROR]: {_name::*} can't be set to 'all the files from directory "Gods/"' because the latter is not an object (sounds.sk, line 11: set {_name::*} to all the files from directory "Gods/"') [20:41:54 ERROR]: Can't understand this expression: 'name of file "%{_t::*}%"' (sounds.sk, line 14: set {_t::1} to name of file "%{_t::*}%"') [20:41:54 ERROR]: Can't understand this condition/effect: set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case (sounds.sk, line 18: set line {Line1} of file "sounds/sounds.json" to " ""custom.%{_t::*}%"": {" in lower case') [20:41:54 ERROR]: Can't understand this condition/effect: set line {Line2} of file "sounds/sounds.json" to " ""sounds"": [" (sounds.sk, line 19: set line {Line2} of file "sounds/sounds.json" to " ""sounds"": ["') [20:41:54 ERROR]: Can't understand this condition/effect: set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case (sounds.sk, line 20: set line {Line3} of file "sounds/sounds.json" to " ""custom/%{_t::*}%""" in lower case') [20:41:54 ERROR]: Can't understand this condition/effect: set line {Line4} of file "sounds/sounds.json" to " ]" (sounds.sk, line 21: set line {Line4} of file "sounds/sounds.json" to " ]"') [20:41:54 ERROR]: Can't understand this condition/effect: set line {Line5} of file "sounds/sounds.json" to " }," (sounds.sk, line 22: set line {Line5} of file "sounds/sounds.json" to " },"') [20:41:54 INFO]: [Skript] Encountered 8 errors while reloading sounds.sk!Kod:
oraz poprosiłbym, bym nie musiał za każdym razem zamienić on script load:, ponieważ te zmienne są globalne.
Skrypt polega na tym iż w Minecraft można dodać custom dzwieki i własnie chciałbym je dodawać, ale przez skrypt, ponieważ sporo pracy mi zajmuje takie pisanie po kolei.
Odnośnik do komentarza
https://skript.pl/temat/45632-poprawa-skryptu-na-dzwieki/Udostępnij na innych stronach
11 odpowiedzi na to pytanie
Rekomendowane odpowiedzi