You can use all kinds of Events to control how and when your characters speak. Here’s code that makes a prospector shout “Eureka” when he discovers gold!
You can make your actors respond to key presses and mouse-clicks, too!