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;
// 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.");
}
On line 58 you have "Guybrush" instead of "cGuybrush"
Also one missing end quote:
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.");
}