Why don't you just set up a talking animation for him (specify a talking view in his character pane)? Then AGS will trigger his talk animation whenever he's speaking.
If it's some other kind of animation (blacksmith stops hammering, then talks to you), you have to specify what you're trying to do. Also, you cannot run functions directly from inside dialog scripts. You'd have to use e.g. "run-script 1" and setup a function call within the global "dialog_request" function ("if (xvalue == 1) DoSomething()").
If it's some other kind of animation (blacksmith stops hammering, then talks to you), you have to specify what you're trying to do. Also, you cannot run functions directly from inside dialog scripts. You'd have to use e.g. "run-script 1" and setup a function call within the global "dialog_request" function ("if (xvalue == 1) DoSomething()").