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 - Tomatoworm

#1
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?
#2

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