Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: khalilsajadi on Wed 13/04/2011 02:23:54

Title: How to make npc disappear automatically at end of conversation?
Post by: khalilsajadi on Wed 13/04/2011 02:23:54
I have a mythical creature I would like to disappear after he gives the main char a clue. I know to make him disappear you use, in my example, cLeshy.ChangeRoom(0); but I'm not sure where to put it so that he disappears directly when the conversation ends. I tried adding a hotspot right next to the one that makes the npc appear, but it's an awkward delay to wait for the main char to walk, hit the hotspot, and THEN make the npc disappear. Any suggestions?
Title: Re: How to make npc disappear automatically at end of conversation?
Post by: Khris on Wed 13/04/2011 06:52:53
You can put standard script commands into Dialog scripts, just indent the line(s).
Title: Re: How to make npc disappear automatically at end of conversation?
Post by: khalilsajadi on Fri 15/04/2011 01:54:54
Worked fine, thanks.