ID:1610083
 
Keywords: error
(See the best response by LordAndrew.)
Code:
mob/Lucy
verb
Enter_Animus()
set src in oview(1)
if (usr.active = 1)
usr<<"You are currently doing something!"
return
else if (usr.mission = 1)
usr<<"You have a mission to do in the present time first!"
return
else if (usr.active = 0 && usr.mission = 0)
alert("Are you sure?","Animus Entry","Yes","No")
if ("Yes")
usr<<"Sorry, this is currently being worked on. I need some help with Altair's sprites."
return
if ("No")
usr<<"Lucy: Okay, then, check back in the next update!"
return


Problem description:
Whenever I finish the whole page, which this is, whole, it reports, to me, the error saying : "Mobs.dm:11:error: =: missing comma ',' or right-paren ')'"



P.S. Please tell me if I did something wrong with this post and I will edit it out.
Best response
The issue is that you're using the = operator (assignment operator) in your if statements when you should be using the == operator (known as the comparison operator).
I tried that just a while ago, and now it works . . . ?

Edit: I figured out why it didn't work. A while ago, I didn't use it for all of the if statements, but now I did. Thanks, by the way!