If you want to change actor's graphics completely, the easiest way would be to have two .actor files, each referencing different sprites. In the script you'd simply unload the old actor and load a new one (into the same variable).
But if you only want to have special talking animations, there are two possible ways:
1) there is an actor.ForceTalkAnim(filename) method, which will override the talking animation for the subsequent Talk call:
actor.ForceTalkAnim("MyCustomTalkAnim.sprite");
actor.Talk("blah blah"); // this talk command will use custom animation
actor.Talk("qwert"); // and this talk command will revert back to default
2) there can be multiple talk "stances" defined in the .actor file.
TALK
{
SPRITESET
{
NAME = "stance name"
LEFT = "filename.sprite"
RIGHT = "filename.sprite"
...
}
}
TALK_SPECIAL
{
SPRITESET
{
NAME = "another stance name"
LEFT = "filename.sprite"
RIGHT = "filename.sprite"
...
}
}
...
(the demo "Molly" actor has only one stance defined, without a name, but you can have as many talk stances as you want)
Now, when you call the Talk method, you can specify a list of stances to be used for the talking.
actor.Talk("Blah blah", "blah.ogg", 0, "stance1,stance2,stance3");
In the example above, the actor will say "Blah blah", it will play a "blah.ogg" sound, the duration is set to zero (i.e. autodetect) and animations defined in stances "stance1", "stance2" and "stance3" will be used.
To complicate things some more, there are two types of talk stances: normal and special (see the above definition, TALK and TALK_SPECIAL). If you don't specify the list of talk stances when you call the Talk method, the engine will choose random stances. But it will never use the special talk stances, you must explicitly name them if you want them to be used.
So, the conclusion: If you want some special talk animations, either use the ForceTalkAnim method, or add a TALK_SPECIAL section to your .actor file and request this stance to be used in the Talk method.
This is rather advanced topic, so if there's any confusion feel free to ask.