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

Messages - Tomatoworm

#1
That was it!I keep on forgetting about the closing braces. Thank for for you reply! :-D
#2
Hello,
I have been trying to use the else statement when I use an inventory item on a object ,but I keep getting "unexpected else" error. I'am trying to make it where only one inventory item works.
Here is the script:
function Painting_UseInv()
{
  if (cBert.ActiveInventory == iPscraper)
  cBert.Walk(445, 218, eBlock, eWalkableAreas);
  cBert.FaceObject(Painting);
  Painting.Visible = false;
  PaintingSide.Visible = true;
  RemoveWalkableArea(4);
}
  else{
  cBert.Walk(445, 218, eBlock, eWalkableAreas);
  Display("This won't work");
}

Has anyone else had this problem?
#3
I finally got the script to work! You were right the error was in the line above. Thank you for all your help!!  ;D
#4
Thank you for the reply! :) Here is the line I've been having trouble with:

function oOpenDoor_Interact()
{
cBert.Walk(171, 240, eBlock, eWalkableAreas);
oOpenDoor.Visible = false;
GiantDoor.Visible = true;
RemoveWalkableArea(2);
RestoreWalkableArea(3);
}

The error says "Nested functions not supported (you may have forgotten a closing brace)". It refers to the top line.
#5

The last time I opened my game it seemed to work fine ,but now for some reason I keep on getting errors whenever I try to run it. It is really frustrating, because it seems to choose random lines even if they are correct :-[. Sometimes it even says there is an error on line -10! I tried the game on different computers and reinstalled AGS. Has anyone else had this problem?
SMF spam blocked by CleanTalk