Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheFlayer on Mon 05/02/2007 20:55:37

Title: Characters
Post by: TheFlayer on Mon 05/02/2007 20:55:37
In a room, how can I make a not player character speak continuously with another.
Isn't it possible to make the speaking loop run continuously?
Title: Re: Characters
Post by: Scummbuddy on Mon 05/02/2007 22:39:34
Your "Not player character" is more often called a NPC or non-player character.

If you are using sierra speech style, or (default ags speech style) you may want to look in the manual for "Speaking property". That should be a start.

You could do a different if/else statement that checks to see if the certain NPC is not talking, and based on that return value, you can have them start up their displayedspeech again.

You would probably want to put this code correctly under a room property that, depending on when you want it to occur, it could be, when your main character enters the room, or there are other options.

And try not to double post. You can modify your first post and we will still see the difference. Let us know if we've helped you and if you want another push.
Title: Re: Characters
Post by: Ashen on Mon 05/02/2007 23:16:28
If you just want the animation of the speaking loop to play, but no actual speech (for a background character in a bar, or something like that) it's in the BFAQ (http://americangirlscouts.org/agswiki/Scripting%2C_Code_%26_Interaction#Having_a_character_continuously_animated_in_the_background). Just use the Speech view as the Idle view.