Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: StarLite on Thu 13/04/2006 03:46:06

Title: Getting Custom GUI to work without Script
Post by: StarLite on Thu 13/04/2006 03:46:06
Hi Again Everyone:

I know everyone is probably sick of me belly aching over script, but believe me I tried it. I even tried using BlueGui's script, the demo's script and kept getting errors galore. I even tried using some of the users on here's script and no luck. Here is my question.

I made my own Custom Gui. My Gui1 is the popup bar which consists of a Inventory button to bring up the Inventory window, two CD pics for save and load and a crystal ball with quit on it to quit the game.  I can get the quit to work because all I have to do is type,

Quitgame (0);

Is there a way of getting this Gui to work without script and if so where do I find the tread or BFAQ to show me how to do it.

I've gone through I don't know how many messages here trying to get this to work. I've got to say hats off to everyone who has the patience for scripting, you're geniuses. I'm just glad we don't keep guns in the house.

I can do practically everything else in the engine but scripting I just can't get it to work for me at all. Thank you all for your time and patience. I greatly appreciate any help. Thanks in advance

StarLite
Title: Re: Getting Custom GUI to work without Script
Post by: Gilbert on Thu 13/04/2006 04:25:41
Unfortunately, if you want to come to an original working GUI scripting is essential.
Without using scripting, you can't do much with GUI buttons apart from simple stuff like setting cursor mode.
If you really don't like scripting (or using templates) you may use the limited original Sierra GUI instead.
It would make life easier for non-scripters if GUIs support the interaction events but sadly it's not the case (not that the interaction editor can do everything though).
Title: Re: Getting Custom GUI to work without Script
Post by: A�rendyll (formerly Yurina) on Thu 13/04/2006 09:26:39
If you really want this GUI, try asking around if someone can get it to work for you. You can import and export GUI's, so that shouldn't be any trouble, right?

~Yurina
Title: Re: Getting Custom GUI to work without Script
Post by: StarLite on Thu 13/04/2006 15:15:33
Thank you for your replies. I think I'll take my husband's advice and just grab a bunch of scripts and try to work on learning how to script that way.  I hope people on here don't mind if I use their scirpts to learn from. I don't like stealing someone elses work, I know how hard this stuff can be.  I don't really like to ask someone to do it for me, for a couple of reasons: one is,  I won't be able to learn that way and two people are busy enough with their own projects. I greatly appreciate everyone's help though, thank you once again for writing. Take care

StarLite
Title: Re: Getting Custom GUI to work without Script
Post by: JD on Thu 13/04/2006 17:57:27
Learning how to script probably sounds harder than it is :) Once you figure out the basics you can really do anything. And I think learning from other scripts is the best way to do it. It's a good way to find out how the commands work and stuff.
Title: Re: Getting Custom GUI to work without Script
Post by: StarLite on Thu 13/04/2006 19:37:54
Hi Def:

Thanks for the input. I'm going to try scripting a little later. My brain (what's left of it) hurts. I noticed that when I hit Ctrl-G a long list of script comes up. Could I use what's in there and sort of configure the script that's in there? I think I'm going to work on some more of the graphics. I need to work on a bathroom scene. Thanks again. Take care

StarLite
Title: Re: Getting Custom GUI to work without Script
Post by: A�rendyll (formerly Yurina) on Thu 13/04/2006 19:47:08
Well, the main script is a big, very BIG pile of script where your head will get hurt of more.

I'd suggest making a "fake" game with the default game template to study the standart Sierra GUI first.

I hope you'll be able to learn what you need.

~Yurina
Title: Re: Getting Custom GUI to work without Script
Post by: JD on Thu 13/04/2006 19:48:04
When you press Ctrl+G you get the Global Script. For stuff that isn't room-bound. I guess you should start with taking a look at http://www.adventuregamestudio.co.uk/actutor.htm for a start. Good luck!
Title: Re: Getting Custom GUI to work without Script
Post by: StarLite on Thu 13/04/2006 20:46:12
Thanks again Def. I printed out that tutorial and read it. Actually the only thing I need script for is for stuff I can't do within the Interaction Events. At the moment the biggest is getting started with the Gui scripts. I copied a bunch I found on the forums here, but I think I'm going to give it a break for a little while. Thanks again.

StarLite