Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: hawkofrawk on Wed 24/04/2013 00:41:42

Title: Object parse error (from tutorial)
Post by: hawkofrawk on Wed 24/04/2013 00:41:42
Howdy, I downloaded AGS a few days ago and I've started work on my first little game.  I read and went through the manual but on step 4 (objects) i've got a problem.  I've been following the manual pretty spot on but for some reason I keep getting a " Error (line 17): PE04: parse error at 'oFoyerKey' " can someone tell me where I goofed? I've been following the manual pretty closely (changing the name of the key in every place the key is referenced as oKey so it shouldn't matter)


http://puu.sh/2FSbS.jpg properties
http://puu.sh/2FSdy.jpg event
http://puu.sh/2FSfU.png Room script
http://puu.sh/2FSgX.png Inventory key
Title: Re: Object parse error (from tutorial)
Post by: Crimson Wizard on Wed 24/04/2013 00:52:19
You have the line:
Code (ags) Select

oFoyerKey.Visible-true;

It should be  "=true", not "-true".
Title: Re: Object parse error (from tutorial)
Post by: hawkofrawk on Wed 24/04/2013 01:00:57
[imgzoom]http://puu.sh/2FSRj.png[/imgzoom]

I swear I'll kill the man who took the screenshot
Title: Re: Object parse error (from tutorial)
Post by: Crimson Wizard on Wed 24/04/2013 02:01:52
Err.... what?
Now it is "false"...
Anyway, you need to use "=" operator to assign value to variable.
Title: Re: Object parse error (from tutorial)
Post by: Khris on Wed 24/04/2013 04:23:51
hawkofrawk  is talking about this screenshot from the tutorial (http://www.adventuregamestudio.co.uk/manual/acintro4.htm) :)

(http://www.adventuregamestudio.co.uk/manual/images/intro4_5.jpg)
Title: Re: Object parse error (from tutorial)
Post by: Crimson Wizard on Wed 24/04/2013 08:43:55
Quote from: Khris on Wed 24/04/2013 04:23:51
hawkofrawk  is talking about this screenshot from the tutorial (http://www.adventuregamestudio.co.uk/manual/acintro4.htm) :)

Oooh...  (wtf)
lol, yes, it may cause confusion.
Title: Re: Object parse error (from tutorial)
Post by: Cerno on Wed 24/04/2013 18:37:46
Quote from: hawkofrawk on Wed 24/04/2013 01:00:57
I swear I'll kill the man who took the screenshot

Wow, that escalated quickly ;)