Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: metalmario991 on Tue 28/07/2015 18:35:53

Title: This Error...
Post by: metalmario991 on Tue 28/07/2015 18:35:53
I am getting the following error but I don't know what is wrong: room2.asc(59): Error (line 59): buffer exceeded: you probably have a missing closing bracket on a previous line
What is wrong with it line 59? I don't see anything wrong with it. Here is my whole script;

Code (ags) Select
// room script file

function hEND_WalkOn()
{
}

function oStatue_Interact()
{
cGuybrush.Walk(307, 173, eBlock, eWalkableAreas);
cGuybrush.FaceObject(oStatue, eBlock);
cGuybrush.Say("Even if I could get to it, it would be too heavy to pick up.");
}

function oStatue_Look()
{
cGuybrush.Walk(307, 173, eBlock, eWalkableAreas);
cGuybrush.FaceObject(oStatue, eBlock);
cGuybrush.Say("This SMG4 character must be really narcissistic to put a statue of himself in his own pool.");
}

function oStatue_Talk()
{
cGuybrush.Walk(307, 173, eBlock, eWalkableAreas);
cGuybrush.FaceObject(oStatue, eBlock);
cGuybrush.Say("Hi!");
cGuybrush.Say("Do you know where I can find SMG4?");
}

function hDoor_Look()
{
cGuybrush.Walk(337, 120, eBlock, eWalkableAreas);
cGuybrush.FaceLocation(146, 103, eBlock);
cGuybrush.Say("This door leads into SMG4's Mansion.");
}

function hDoor_Interact()
{
cGuybrush.Walk(337, 120, eBlock, eWalkableAreas);
cGuybrush.FaceLocation(146, 103, eBlock);
cGuybrush.Say("Hmm...this door appears to be locked.);
}

function hDoor_Talk()
{
cGuybrush.Walk(337, 120, eBlock, eWalkableAreas);
cGuybrush.FaceLocation(146, 103, eBlock);
cGuybrush.Say("That doesn't seem to talk.");
}

function hDoor_UseInv()
{
cGuybrush.Walk(337, 120, eBlock, eWalkableAreas);
cGuybrush.FaceLocation(146, 103, eBlock);
cGuybrush.Say("That doesn't seem to work.");
}
function oStatue_UseInv()
{
Guybrush.Walk(307, 173, eBlock, eWalkableAreas);
cGuybrush.FaceObject(oStatue, eBlock);
cGuybrush.Say("That doesn't seem to work.");
}
Title: Re: This Error...
Post by: Snarky on Tue 28/07/2015 18:47:42
On line 58 you have "Guybrush" instead of "cGuybrush"
Title: Re: This Error...
Post by: Billbis on Tue 28/07/2015 18:49:42
Also one missing end quote:
Code (ags) Select
function hDoor_Interact()
{
    cGuybrush.Walk(337, 120, eBlock, eWalkableAreas);
    cGuybrush.FaceLocation(146, 103, eBlock);
    cGuybrush.Say("Hmm...this door appears to be locked.); // <- there
    // should be
    cGuybrush.Say("Hmm...this door appears to be locked.");
}