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

#21
Howdy! I'm poking around with AGS, my team is thinking of using this for our upcoming project, and I ran into an error when messing about with basic functions. Here's the room code:

Code: ags
// room script file

function CeilingHole_AnyClick()
{
player.Say("There's a hole in the ceiling. Great.";
}

function oBlueCup_AnyClick()
{
player.Say("This cup seems random as all hell.");
player.AddInventory(iBlueCup);
oBlueCup.Visible = false;
}


When I hit Save, it throws an Unexpected End of File error on line 14 (note that there are only 13 lines in this code...) In reading up on this, it's generally a missed bracket or quotation mark that causes these, I found... but either my brain is fizzled and I'm missing a clearly obvious error (always possible!) or something's wonky, 'cause I'd swear that code looks good... halp?
SMF spam blocked by CleanTalk