Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Sun 13/12/2009 13:54:46

Title: Main player to go to another room within a Dialog?
Post by: barefoot on Sun 13/12/2009 13:54:46
Hi

I am in a situation where if the player chooses a particular Dialog answer option he ends up in another room.. Is there a way of scripting the main player to go to another room within the Dialog script?

cheers
barefoot
Title: Re: Main player to go to another room within a Dialog?
Post by: NsMn on Sun 13/12/2009 14:27:27
If you have a 3.X version, just leave a space at the beginning of the line and then use the normal command (Character.ChangeRoom()).
Title: Re: Main player to go to another room within a Dialog?
Post by: barefoot on Sun 13/12/2009 14:40:59
Hi NsMn

many thanks...sorted...


tazman: to the stocks

    cRedpants.ChangeRoom(40);

stop


Thank you again

barefoot
Title: Re: Main player to go to another room within a Dialog?
Post by: Khris on Sun 13/12/2009 16:16:01
barefoot, please peruse the manual once. You keep posting questions that are answered already in the helpfile.
Title: Re: Main player to go to another room within a Dialog?
Post by: barefoot on Sun 13/12/2009 18:54:53
Hi Kris

Im aware of the manual and it does not always give the answers as you would expect to find them...  but i am learning with each day...

Experience obviously makes working things out easier without having to keep asking, except for extreme cases..

I am also aware of the ChangeRoom function but not that it worked within the Dialog capacity as it does.

I have been using 3.1 for just 2 weeks so im a relative newbee..and that is what this beginners forum is all about... for people like me...;)

I note that you joined in 2004 and no doubt you are well versed and have some games to your credit.

If the manual was that explanatary then this forum would be surplus to requirements..The scripting is obviously new to me, and being 54 im not so fast as i once was..;)

I say this in my defence, not as an offence to you but because if the question seems 'old hat' it does not wattant any catty remarks which are best kept to yourself sometimes.. I will indeed rersearch the manual as time goes on... and one day I will be answering what you call 'in the maual' questions, only with patience and understanding...


best regards
barefoot