When i go to use my code, it causes tons of errors in the console.
Error here
Function Usage: randomString("a|b|c|d|e|f")
Outputs Random character that is defined, which could be a, b, c, d, e, f
Skript Version: 2.2-dev34
Minecraft Version: 1.12.2
Running:
SkQuery 1.6.0
Skellett 1.9.6b
SkUtilities
TuSke
Error here
Function Usage: randomString("a|b|c|d|e|f")
Outputs Random character that is defined, which could be a, b, c, d, e, f
code_language.skript:
function randomString(char: text) :: text:
set {_characters::*} to {_char} split at "|"
replace all "|" in {_char} with ""
set {_length} to length of {_char}
set {_return} to "%index (a random integer between 1 and ({_length})) of {_characters::*}%"
return "%{_return}%"
Skript Version: 2.2-dev34
Minecraft Version: 1.12.2
Running:
SkQuery 1.6.0
Skellett 1.9.6b
SkUtilities
TuSke