This Error...

Started by metalmario991, Tue 28/07/2015 18:35:53

Previous topic - Next topic

metalmario991

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
// 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.");
}

Snarky

On line 58 you have "Guybrush" instead of "cGuybrush"

Billbis

Also one missing end quote:
Code: ags
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.");
}

SMF spam blocked by CleanTalk