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!
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.
If I were you, I'd double-check exactly what you coded in.
You don't strike me as the extra-careful, meticulous type...
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'
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.
whoops sorry,i meant to capitalize okey. so it looks the same just with them both capitalized,and it still says parse error.
Replace the "-" with a "=" and you should be fine.
thank you,it worked!thank you so much.
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. ;)
thank you again.but what does'(' expected mean?
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... ;)
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?
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.
thank you so much again,im so sorry to bother u,but thank you so much.
Register for an account and post in the right forum or I will just lock your threads as soon as I see them.