Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 07/05/2003 22:04:02

Title: NPC that repeatedly talk...
Post by: on Wed 07/05/2003 22:04:02
I'm sure that this has been asked before, But,...

Is it possible to make an NPC that repeatedly talks,
and dosn't interfere with a player?

Example:  Player enters room, NPC repeatedly says something, player walks around without the NPC activating the "Wait" curser.

Is this situation possible?

I'm positive that this question was asked before, but I can't find it.

Well,  Thanks
Title: Re:NPC that repeatedly talk...
Post by: on Thu 08/05/2003 00:38:15
DisplaySpeech displays text, any available animation of the character speaking, and pauses action until you press a button or wait long enough.

DisplaySpeechBackground displays text.  That's it.  It turns off in time and does not interrupt the character.

Both of these are well covered in the manual.

To use these in the dialog editor (which you may be familiar with), you will have to make the dialog run a script, playing the DisplaySpeechBackground command.  This is only from within a discussion.  For info on how to run a script from dialog, you can check the demo game's scripting, or read the knowledge base on the main site, or both.

If you are running this from just a repeatedly execute event, not within an active dialog, just script DisplaySpeechBackgroud as you would DisplaySpeech.

Note that you may also want to run an animation of the char speaking concurrently.  Since the text is backgrounded, the animation for talk no longer runs automatically.  You can use the command
SetCharacterView to set the character to the correct talking view and AnimateCharacter to run the animation.

Hope this helps!

If you
Title: Re:NPC that repeatedly talk...
Post by: on Thu 08/05/2003 01:03:55
Thanks.

(Speechless)
Title: Re:NPC that repeatedly talk...
Post by: Scummbuddy on Sat 10/05/2003 14:33:50
There is also the Display Speech at Y, check that out in the manual, too.  I'm away from my computer and away from the manual, so I cant give a better description of it.