Yeah so im building a Gradient Script, and i want to Configure the colors with the /script command
code:
function color_1(c)
{
col1 = c;
toast("Gradient", "Color 1 set to "+c+"!");
}
function color_2(c)
{
col2 = c;
toast("Gradient", "Color 2 set to "+c+"!");
}
function color_3(c)
{
col3 = c;
toast("Gradient", "Color 3 set to "+c+"!");
}
function toast(title, text)
{
MsgPlus.DisplayToast(title, text);
}
When i do e.g "/script color_1 4", to change first color to red, i get that tost:
Gradient:
Color 1 set to !
And it doesnt change color, so the c param doesnt work oO