Author Topic: I am still stuck on okey if you can believe it...  (Read 2449 times)

firestarrules

  • Guest
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!

Re: I am still stuck on okey if you can believe it...
« Reply #1 on: 29 Mar 2008, 00:05 »
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.


Re: I am still stuck on okey if you can believe it...
« Reply #2 on: 29 Mar 2008, 00:16 »
If I were you, I'd double-check exactly what you coded in.

You don't strike me as the extra-careful, meticulous type...

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #3 on: 29 Mar 2008, 03:11 »
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'

ThreeOhFour

  • AGS Baker
  • Wild colonial boy.
    • Lifetime Achievement Award Winner
    • ThreeOhFour worked on one or more games that won an AGS Award!
    •  
    • ThreeOhFour worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #4 on: 29 Mar 2008, 07:47 »
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.

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #5 on: 29 Mar 2008, 13:30 »
whoops sorry,i meant to capitalize okey. so it looks the same just with them both capitalized,and it still says parse error.

Akatosh

  • Mostly retired, but I still drop by occasionally
    • Best Innovation Award Winner 2007, for '_Access'
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Akatosh worked on one or more games that won an AGS Award!
    •  
    • Akatosh worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #6 on: 29 Mar 2008, 13:53 »
Replace the "-" with a "=" and you should be fine.

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #7 on: 29 Mar 2008, 14:05 »
thank you,it worked!thank you so much.

Akatosh

  • Mostly retired, but I still drop by occasionally
    • Best Innovation Award Winner 2007, for '_Access'
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Akatosh worked on one or more games that won an AGS Award!
    •  
    • Akatosh worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #8 on: 29 Mar 2008, 14:05 »
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. ;)

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #9 on: 29 Mar 2008, 14:24 »
thank you again.but what does'(' expected mean?

Akatosh

  • Mostly retired, but I still drop by occasionally
    • Best Innovation Award Winner 2007, for '_Access'
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Akatosh worked on one or more games that won an AGS Award!
    •  
    • Akatosh worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #10 on: 29 Mar 2008, 14:32 »
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...  ;)

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #11 on: 29 Mar 2008, 14:36 »
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?

Akatosh

  • Mostly retired, but I still drop by occasionally
    • Best Innovation Award Winner 2007, for '_Access'
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • Akatosh worked on one or more games that won an AGS Award!
    •  
    • Akatosh worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #12 on: 29 Mar 2008, 14:39 »
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: ) and PM them.

firestarrules

  • Guest
Re: I am still stuck on okey if you can believe it...
« Reply #13 on: 29 Mar 2008, 14:55 »
thank you so much again,im so sorry to bother u,but thank you so much.

MrColossal

  • Time Traveler
  • Mittens Baronet
  • "Adventure games are dead." -Nietzsche
    • Lifetime Achievement Award Winner
    • MrColossal worked on one or more games that won an AGS Award!
    •  
    • MrColossal worked on one or more games that was nominated for an AGS Award!
Re: I am still stuck on okey if you can believe it...
« Reply #14 on: 31 Mar 2008, 05:49 »
Register for an account and post in the right forum or I will just lock your threads as soon as I see them.
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!