Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Monk on Sat 17/07/2010 06:42:51

Title: Run Script Command in the middle of dialog [SOLVED]
Post by: Monk on Sat 17/07/2010 06:42:51
Hello friends,
I'm looking for help on this matter,

say i want to execute a script command in the middle of dialog, for example :

when the character is talking with NPC, in the middle i want to put "cEgo.FaceCharacter(NPC);" so the character can change where he's facing at that time.

i wonder if its possible, looking forward for your help.

thank you!  ;D
Title: Re: Run Script Command in the middle of dialog
Post by: Calin Leafshade on Sat 17/07/2010 07:54:32
yep.. simply put some white space before the command in the dialogue.

so like:


Ego:Hi there!
   cEgo.FaceCharacter(NPC);
Ego:How are you?
Title: Re: Run Script Command in the middle of dialog
Post by: Monk on Sat 17/07/2010 08:00:54
that sir, is the killer! thank you so much!