Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HeyLuigi on Tue 01/10/2013 18:13:53

Title: Start another Dialog after looking at a Hotspot
Post by: HeyLuigi on Tue 01/10/2013 18:13:53
Hey everyone,
so I'm using AGS for 4 weeks because we make a game for a schoolproject. Everything works very well but now I have one problem.
I want to start another Dialog when the mc looks at a Hotspot.
For example:
When Mc talks to CharacterX its dDialog1
but after talking to CharacterX the mc look at a hotpot and want to tell the CharacterX about that in dDialog2.
So my Question is, how can I sricpt this well?

hope you understand me, my english isn't very weel

Thanks :)
Title: Re: Start another Dialog after looking at a Hotspot
Post by: Andail on Tue 01/10/2013 20:59:21
Add the option that talks about the object in the dialogue, and uncheck "show".
In the part of the script that is triggered by looking at the object, you can turn the option on by using
DDialog2.SetOptionState();
Or something like that, writing from memory so make sure to look it up in the manual.
Title: Re: Start another Dialog after looking at a Hotspot
Post by: HeyLuigi on Thu 03/10/2013 08:54:26
thank you, it worked!