Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - SadoDeomeoon

#1
In an attempt to start a new game, I've encountered a problem. I wanted a dialogue to start when the player first starts the game (which works, dBeginning, in this case) and then after the dialogue is over, make the objects visible (which show instructions.) I decided to use option-off in the dialogue script (since it's fairly easy and I'm still a noob) to turn the 1st option off, then only make the objects visible if it is off, to make sure the dialogue is over.

However, using the code below, all I get is an error saying "Error (line 36): expected semicolon after ')'" Line 36 is line 4 below. No matter how many semi colons (which I don't think I need) I stick into that line of code, I simply cannot get it to work.

What am I doing wrong?

Code: ags

function room_FirstLoad()
{
dBeginning.Start(); // Run the dialogue
if (dBeginning.GetOptionState(1)=eOptionOff) // The line with the error
{
    oRightMouse.Visible=true;// Make all these objects visible
    oWalkCursor.Visible=true;
    oLookCursor.Visible=true;
    oInteractCursor.Visible=true;
    oTalkCursor.Visible=true;
}
}


Edit - Like the idiot I am, I forgot to put a double = in line 4 :grin:
SMF spam blocked by CleanTalk