Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: wackojacko on Wed 11/08/2004 10:26:39

Title: Deleting and Dialog scrolling
Post by: wackojacko on Wed 11/08/2004 10:26:39
This may be a dumb question but how can you delete views and topics? I made a new topic accidentily and now I can't delete it anymore, the same is for the options in the topic, once I made one, I can't delete it anymore. Can anyone help?
???
And I have another question, I have my dialog options shown in my GUI, but when I have more than three dialog options the 4th and 5th and 6th, etc. aren't visible, beacuse there is not enough room. How can I scroll between my dialog options? Like in MI games
:o
Title: Re: Deleting and Dialog scrolling
Post by: Radiant on Wed 11/08/2004 11:18:52
There are several things in AGS that you cannot delete. Such as views and topics. I'd suggest emptying them of content, and then using them whenever you need a new one. They don't take up much memory anyway.

I believe the solution to your second problem would be to create your own dialog GUI, or use a standard textbox for that.
Title: Re: Deleting and Dialog scrolling
Post by: wackojacko on Wed 11/08/2004 12:56:54
thanx, but I still have one other question? How can you change the name of an object or character in the script?
Like There's a man called MAN, but if you talk to him he wil be called JIM
;)
Title: Re: Deleting and Dialog scrolling
Post by: Proskrito on Wed 11/08/2004 15:40:15
you cant scroll dialog options at the moment. You could make an option called 'more..' or something like that, and make it hide the upper options and show the lower ones.

character[CHARID].name is the variable that stores character CHARID's name, so you can change that. However, you cant change hotspots/objects/ inventory items name.

Both things should be in chris' list.
Title: Re: Deleting and Dialog scrolling
Post by: Skio on Wed 11/08/2004 21:45:00
Well, you can use a textbox GUI, which will automatically resize to fit the options (as in 5DaS) but this GUI will (i think) always appear at the CENTER of the screen. You cannot place it where you like.

To change the name of a character you have to use the character[CHARID].name variable as Proskrito said, but in conjuction with the StrCopy command. that is:

StrCopy(character[MAN].name, "JIM");     // correct

character[MAN].name="JIM"        // incorrect