I am trying to create a series of messages for one cast member . When the user clicks on the member it produces instructions , i am trying to create 3 messages so that its not the same message that appears all the time .
When i use this script a message comes up "script error: Expected end of statement"
---------------------------------------------------------------
on keyUp
lv_random = random(3)
if lv_random = 1 then alert("You have lost 23 the dice again"
&& gv_name && "message 1")
end if
if lv_random = 2 then alert("You have lost 23 points take too steps back "
&& gv_name && "message 2")
end if
if lv_random = 3 then alert("Go to start again" && gv_name && "message 3")
end if
When i use this script a message comes up "script error: Expected end of statement"
---------------------------------------------------------------
on keyUp
lv_random = random(3)
if lv_random = 1 then alert("You have lost 23 the dice again"
&& gv_name && "message 1")
end if
if lv_random = 2 then alert("You have lost 23 points take too steps back "
&& gv_name && "message 2")
end if
if lv_random = 3 then alert("Go to start again" && gv_name && "message 3")
end if