Adventure Game Studio

AGS Games => Hints & Tips => Topic started by: on Fri 28/03/2008 23:29:07

Title: I am still stuck on okey if you can believe it...
Post by: on Fri 28/03/2008 23:29:07
on they okey scripting, okey.visible yada yada,well,I completed all that.Ok so im going to the green arrow and I click on it and what?I get a parse error at okey.so I change okey to oKey.parse error.you guys probably think this is minor but I really need help,so please,I would enjoy a reply.



thanks!
Title: Re: I am still stuck on okey if you can believe it...
Post by: TwinMoon on Sat 29/03/2008 00:05:03
Wrong forum! Post this in the Beginners Technical Question.

I think  oKey.Visible   is what you need.

Yes, you need to be very precise, but then again programming is talking to a computer and computers only do what you tell them. They don't try to understand you.

Title: Re: I am still stuck on okey if you can believe it...
Post by: Emerald on Sat 29/03/2008 00:16:12
If I were you, I'd double-check exactly what you coded in.

You don't strike me as the extra-careful, meticulous type...
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 03:11:25
I have re checked it over and over.it says:



Okey_Interact
{
45 oKey.Visible - false;
46 player.AddInventory(iKey)
47 GiveScore (5)
{

Error (line 45):peo4 parse error at 'oKey'
Title: Re: I am still stuck on okey if you can believe it...
Post by: ThreeOhFour on Sat 29/03/2008 07:47:56
Could it have something to do with the fact that in one instance you have "Okey" and in another you have "oKey"?

Not much of a programmer, but this looks odd to me.
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 13:30:20
whoops sorry,i meant to capitalize okey. so it looks the same just with them both capitalized,and it still says parse error.
Title: Re: I am still stuck on okey if you can believe it...
Post by: Akatosh on Sat 29/03/2008 13:53:02
Replace the "-" with a "=" and you should be fine.
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 14:05:05
thank you,it worked!thank you so much.
Title: Re: I am still stuck on okey if you can believe it...
Post by: Akatosh on Sat 29/03/2008 14:05:34
You're welcome. It's always the small things...

/EDIT: Oh, and you're probably lacking a ; at the end of line 46 and 47. ;)
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 14:24:56
thank you again.but what does'(' expected mean?
Title: Re: I am still stuck on okey if you can believe it...
Post by: Akatosh on Sat 29/03/2008 14:32:55
It means that the application expected a ( when there wasn't any. In this case, it means changing "GiveScore (5)" to "GiveScore(5);" - just remove the space sign.

You might want to consider proofreading in the future...  ;)
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 14:36:30
I also accidentaly erased something on the globalscript,something like:




397 if(!gpanel.visible) mouse.usedefualtgraphic...erased
398}
399
400 function ikey_Interact

error line 398 ')' expected

if i erase the }then its expected error at line 400?
Title: Re: I am still stuck on okey if you can believe it...
Post by: Akatosh on Sat 29/03/2008 14:39:26
You need a (). It's mouse.UseDefaultGraphic(); . Seriously, you might want to get somebody to introduce you to this whole thing first. These little icons below the avatars are there for a reason... look for somebody foolish enough to offer their services in terms of "AGS tutoring" (this icon: (http://www.adventuregamestudio.co.uk/images/tutoring.gif)) and PM them.
Title: Re: I am still stuck on okey if you can believe it...
Post by: on Sat 29/03/2008 14:55:04
thank you so much again,im so sorry to bother u,but thank you so much.
Title: Re: I am still stuck on okey if you can believe it...
Post by: MrColossal on Mon 31/03/2008 05:49:01
Register for an account and post in the right forum or I will just lock your threads as soon as I see them.