Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anarcho on Wed 12/01/2005 04:18:17

Title: Dialog command for animations? [SOLVED]
Post by: Anarcho on Wed 12/01/2005 04:18:17
Is there a dialog command that will run an animation in the middle of a dialog?  For example, in the middle of a dialog, I want EGO to hand another character a letter. and then continue the dialogue.  Do I have to stop the animation, run a quick animation like normal, and then start a different dialogue topic or something?

As usual, I hope this isn't a stupid question...

Title: Re: Dialog command for animations?
Post by: Gilbert on Wed 12/01/2005 04:22:14
Hmmm I think you must use run-script to launch dialog_request().
Title: Re: Dialog command for animations?
Post by: Candle on Wed 12/01/2005 04:59:32
run-script X
Runs global text script function "dialog_request", with X passed as the single parameter. This allows you to do more advanced things in a dialog that are not supported as part of the dialog script. The "dialog_request" function should be placed in your game's global script file, as follows:

  function dialog_request (int xvalue) {
    // your code here
  }

Title: Re: Dialog command for animations?
Post by: Anarcho on Wed 12/01/2005 05:12:47
Oh, I didn't know you could do a run-script in a dialog.  Is it in the help file?  I haven't seen it. 

Thanks guys, I'll try this out tomorrow night and check back.

Title: Re: Dialog command for animations?
Post by: Candle on Wed 12/01/2005 05:15:35
Yes it was in the manaul ..
Title: Re: Dialog command for animations?
Post by: Anarcho on Wed 12/01/2005 05:22:28
curses...you're right.  I've looked at that conversation section so many times, I could have sworn it wasn't there.  Sorry!
Title: Re: Dialog command for animations?
Post by: TerranRich on Thu 13/01/2005 02:41:49
AND it's in the BFAQ. Shame on you! SHAME!! :P