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 ?
AGS is case-sensitive, so it's
Display("Message");
What error message did you get?
Where did you put the script?
// 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.
Erm , that should'nt make any difference, the string could contain anything.
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.
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
yeah im sure.... the Display i had right it , i capitalized the H and now everything works fine...
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...
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...
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.