Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: personalinsanity on Thu 03/02/2011 18:42:23

Title: Specific scripting commands help
Post by: personalinsanity on Thu 03/02/2011 18:42:23
I am very new to the whole scripting thing. I have searched the tutorials and forums and am sorry to say that I cant understand most of it, but from what I do understand, my answer isnt there. Maybe I'm just dense, or maybe I've missed it. If so, please let me know.

When you want to use a command to look at a hotspot in a room, you simply go to the grid, find "Look at hotspot" and click on the "..." button to put it in the script. Is this only for hotspots and objects, and I have to type out all other commands in the script, or are there other ways rather than typing a whole script full of wording that I've yet to grasp the meaning of?

Hopefully this question made sense. If not, please let me know and I'll revise it. Thank you.



Solved, thank you.
Title: Re: Specific scripting commands help
Post by: Khris on Thu 03/02/2011 19:25:58
Earlier versions of AGS had the so-called Interaction Editor; you could "click together" the reactions to user actions.

For somebody who has never scripted or programmed before, this might look appealing, but what's the big difference between selecting the Display command from a dropdown menu and entering the text in a box as opposed to writing Display("Hello!"); in between { and }?

While the Interaction Editor is sufficient for creating a simple adventure game, the equivalent scripting is as simple, sort of defeating the purpose of having the IE. I believe that's among the reasons why it was dropped.
You have already figured out on your own how to link events to script functions, which is more than some other newbies.

Here's AGS 2.72, the last version with the IE: http://db.tt/jdW0FJq
Note that the editor has been completely revamped since then.

But again, unless you get hysteric fits when confronted with a code window, I'd discourage using the old version. ;)
Also note that you are slightly less likely to get help here if you're asking about something that has been changed since AGS 2.X.