Workshop Error when pasting action

when i try to paste this action in workshop :

variables
{
player:
8: I_Current_Mode
63: MoonAndElizabeth
}

actions
{
Create HUD Text(Event Player, Null, Custom String(“Press {0} and {1} / {2} to”, Input Binding String(Button(Crouch)),
Input Binding String(Button(Primary Fire)), Input Binding String(Button(Secondary Fire))),
!Event Player.I_Current_Mode && Event Player.X ? Custom String(“Levitato\r\n”) : (
Event Player.I_Current_Mode == 1 ? (Event Player.MoonAndElizabeth ? Custom String(“Ribbon Lasso\r\n”): (
Event Player.I_Current_Mode == 2 && Event Player.MoonAndElizabeth ? Custom String(“Narwhal Blast\r\n”) : (
Event Player.I_Current_Mode == 3 && Event Player.MoonAndElizabeth ? Custom String(“Shield\r\n”) : (
Event Player.I_Current_Mode == 4 && Event Player.MoonAndElizabeth ? Custom String(“Winterstorm Hiperblow\r\n”): (
Event Player.I_Current_Mode == 5 && Event Player.MoonAndElizabeth ? Custom String(“Midnight Shriek\r\n”) : (
Event Player.I_Current_Mode == 6 && Event Player.MoonAndElizabeth ? Custom String(“Dreamless Sleep\r\n”) : (
Event Player.I_Current_Mode == 7 && Event Player.MoonAndElizabeth ? Custom String(“Moon’s Darkest Spell\r\n”) : (
Event Player.I_Current_Mode == 8 && Event Player.MoonAndElizabeth ? Custom String(“Total Anihilation Spell\r\n”) : (
Event Player.I_Current_Mode == 9 && Event Player.MoonAndElizabeth ? Custom String(“Black Valvet Inferno\r\n”) : (
Event Player.I_Current_Mode == 10 && Event Player.MoonAndElizabeth ? Custom String(“Winterstorm HiperBlow Targeted\r\n”) : (
Event Player.I_Current_Mode == 11 && Event Player.MoonAndElizabeth ? Custom String(“Buble Duble Difusion spell\r\n”) : Empty Array))))))))))):, Left, 4, White, Sky Blue, White,
String, Default Visibility);
}

It errors and it says “Expect “:” after “Array))))))” on line 23”, and even if i put “:” instead of “,” it says it expects a value, what value?!?
Please Help

The problem is because you script uses a lot of tenary operators, maybe workshop have some limit to that (for performance reasons). Also if you need modify string in hud text, a right way is point to certain variable and update that variable not create a lot tenary conditions to do that, and set reevaluation to string.

Invalid syntax goes here: Duble Difusion spell\r\n”) : Empty Array))))))))))):, Left, 4, White, Sky Blue, White,

tenary operator excepts an condition ? value when true : value when false you script does not have an value when false.

Also i think you are using an tool to create this script, and the problem is not with the script itself, is the tool that you have used to generate this script, that generated wrong output.