Can someone help me with color format isn't replaced
Method 1: #looping
Method 2: #Manual set (double "&&")
Method 3: #Manual (Single "&")
All the method above isn't working.
I still have one more method, but I don't know the syntax.
Like this: set {_var} to first character after "&"
Can somebody help me?
Method 1: #looping
code_language.skript:
command /acac [<text>]:
trigger:
if arg is not set:
set {_arg} to "null"
set {_name} to "null"
if arg is set:
set {_arg} to "%arg%"
set {_name} to "%arg%"
add "&a" to {_color::*}
add "&b" to {_color::*}
add "&c" to {_color::*}
add "&d" to {_color::*}
add "&e" to {_color::*}
add "&f" to {_color::*}
add "&r" to {_color::*}
add "&0" to {_color::*}
add "&1" to {_color::*}
add "&2" to {_color::*}
add "&3" to {_color::*}
add "&4" to {_color::*}
add "&5" to {_color::*}
add "&6" to {_color::*}
add "&7" to {_color::*}
add "&8" to {_color::*}
add "&9" to {_color::*}
loop {_color::*}:
replace all "%loop-value%" in {_name} with ""
set {_l} to length of {_name}
set {_l} to {_l} parsed as integer
send "&bArgument: &a%{_arg}% => %length of {_arg}%"
send "&bVar: &a%{_name}% => %{_l}%"
send "&bHashed Argument: &a%hashed {_arg}%"
send "&bHashed Var: &a%hashed {_name}%"
stop
Method 2: #Manual set (double "&&")
code_language.skript:
command /acac [<text>]:
trigger:
if arg is not set:
set {_arg} to "null"
set {_name} to "null"
if arg is set:
set {_arg} to "%arg%"
set {_name} to "%arg%"
replace all "&&a" in {_name} with ""
replace all "&&b" in {_name} with ""
replace all "&&c" in {_name} with ""
replace all "&&d" in {_name} with ""
replace all "&&e" in {_name} with ""
replace all "&&f" in {_name} with ""
replace all "&&r" in {_name} with ""
replace all "&&0" in {_name} with ""
replace all "&&1" in {_name} with ""
replace all "&&2" in {_name} with ""
replace all "&&3" in {_name} with ""
replace all "&&4" in {_name} with ""
replace all "&&5" in {_name} with ""
replace all "&&6" in {_name} with ""
replace all "&&7" in {_name} with ""
replace all "&&8" in {_name} with ""
replace all "&&9" in {_name} with ""
set {_l} to length of {_name}
set {_l} to {_l} parsed as integer
send "&bArgument: &a%{_arg}% => %length of {_arg}%"
send "&bVar: &a%{_name}% => %{_l}%"
send "&bHashed Argument: &a%hashed {_arg}%"
send "&bHashed Var: &a%hashed {_name}%"
stop
Method 3: #Manual (Single "&")
code_language.skript:
command /acac [<text>]:
trigger:
if arg is not set:
set {_arg} to "null"
set {_name} to "null"
if arg is set:
set {_arg} to "%arg%"
set {_name} to "%arg%"
replace all "&a" in {_name} with ""
replace all "&b" in {_name} with ""
replace all "&c" in {_name} with ""
replace all "&d" in {_name} with ""
replace all "&e" in {_name} with ""
replace all "&f" in {_name} with ""
replace all "&r" in {_name} with ""
replace all "&0" in {_name} with ""
replace all "&1" in {_name} with ""
replace all "&2" in {_name} with ""
replace all "&3" in {_name} with ""
replace all "&4" in {_name} with ""
replace all "&5" in {_name} with ""
replace all "&6" in {_name} with ""
replace all "&7" in {_name} with ""
replace all "&8" in {_name} with ""
replace all "&9" in {_name} with ""
set {_l} to length of {_name}
set {_l} to {_l} parsed as integer
send "&bArgument: &a%{_arg}% => %length of {_arg}%"
send "&bVar: &a%{_name}% => %{_l}%"
send "&bHashed Argument: &a%hashed {_arg}%"
send "&bHashed Var: &a%hashed {_name}%"
stop
All the method above isn't working.
I still have one more method, but I don't know the syntax.
Like this: set {_var} to first character after "&"
Can somebody help me?