Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: budsmoka on Sat 08/01/2005 11:25:18

Title: problem with scripting tutorial (SOLVED)
Post by: budsmoka on Sat 08/01/2005 11:25:18
okay i have version 2.62 and i want to learn the scripting language , but the problem is the tutorials listed arnt working for some reason , the example scripts in the tutorial , say to put something like, display ("message") ; but when i try it out it doesnt work and i do exactly as the tutorial says, is the information in the tutorial incorrect, or is it for a later version,?

also besides the tutorial that says, "getting started with scripting" the rest of the websites that say they have info on scripting , dont even load up.

is they any other tutorials besides the one's listed ?
Title: Re: problem with scripting tutorial
Post by: strazer on Sat 08/01/2005 12:22:04
AGS is case-sensitive, so it's
  Display("Message");
What error message did you get?
Where did you put the script?
Title: Re: problem with scripting tutorial
Post by: budsmoka on Sat 08/01/2005 17:33:31
 // script for hotspot1: Look at hotspot
Display("hello from the script.");   

okay  thats what i had then when i changed it to...

 
  // script for hotspot1: Look at hotspot
Display("Hello from the script.");   

just the h capitalized it work,,, i think i just realized i may be the dumbest person, on the planet..... anyway thanx , and ill try to make up for the stupid question by making a fun game.
 
Title: Re: problem with scripting tutorial
Post by: Necro on Sat 08/01/2005 18:20:47
Erm , that should'nt make any difference, the string could contain anything.
Title: Re: problem with scripting tutorial
Post by: budsmoka on Sat 08/01/2005 19:21:52
well apparently "anything" as long as the first letters capitalized .... i swear that h is the only thing i changed and it made it work.
Title: Re: problem with scripting tutorial
Post by: Rui 'Trovatore' Pires on Sat 08/01/2005 20:37:23
Sure you didn't write "display" instead of "Display" the first time?

BTW, do try changing that to

Display("hello from the script.");   

:P:P:P
Title: Re: problem with scripting tutorial
Post by: budsmoka on Sat 08/01/2005 23:34:47
yeah im sure.... the Display i had right it , i capitalized the H and now everything works fine...
Title: Re: problem with scripting tutorial
Post by: Rui 'Trovatore' Pires on Sun 09/01/2005 09:37:40
Well, unless you try it by changing it back to non-capital, no one will know for sure, and it's something we should be aware of...
Title: Re: problem with scripting tutorial
Post by: on Sun 09/01/2005 14:04:26
Uh... I just tested it, and Display("message."); worked perfectly.

display("message.");
Display(Message.");
Display("message.);

Are you sure you didn't do something like that? (You sound pretty sure, but if you hadn't it would have worked...) At least if it didn't work and you only changed the capitalization of the one letter, then you should post your entire global script so someone can figure out what, er..., happened... And you never actually specified what was wrong. Was it a compiling error, a run-time fatal error (caused the program to exit), or just a run-time error in which it didn't display the message? This is a tiny bit VITAL to helping solve the problem...
Title: Re: problem with scripting tutorial
Post by: on Sun 09/01/2005 23:41:00
theres no problem it works now...... and what i posted was all that was in the script.... Ã,  and i changed it to.....

display , and it still worked , then Ã, i changed it to Display and it worked, then i uncapitalized the h and it worked, and then i capitalized the h back and it, worked,, no clue what happed, i would tell what kind of error but im not getting it anymore, so i dont know. Ã, obviously something was put in wrong and got fix, so there is nolonger , a problem to be solved.

but, thx for taking the time to try to solve it for me.