NPC that repeatedly talk...

Started by krogoth5, Wed 07/05/2003 22:04:02

Previous topic - Next topic

krogoth5

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

bspeerslemontart

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

krogoth5


Scummbuddy

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.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk