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
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?
// 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?