Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Wed 16/05/2007 16:13:13

Title: Suggestion: Change dialog portrait position in dialog script
Post by: deltamatrix on Wed 16/05/2007 16:13:13

I am experimenting with alternating the position of class portraits LEFT to RIGHT as different characters speak. I just thought it would be useful if you could change the position of the dialog pictures via the dialog script.

Just a suggestion.

Title: Re: Suggestion: Change dialog portrait position in dialog script
Post by: Pumaman on Wed 16/05/2007 19:05:11
You can already do this via the "Alternate" option for positioning the portraits, or are you thinking of something else?
Title: Re: Suggestion: Change dialog portrait position in dialog script
Post by: SSH on Thu 17/05/2007 11:33:57
I think he means dialog script explicit positioning. You can do it via run-script, though:


function dialog_request (int xvalue) {
   if (xvalue==1) { SetGameOption (OPT_PORTRAITPOSITION, 0); }
   else if (xvalue==2) { SetGameOption (OPT_PORTRAITPOSITION, 1); }
}


Then to make portrait be on the left, put run-script 1 before the dialogue, and use run-script 2 to put it on the right.
Title: Re: Suggestion: Change dialog portrait position in dialog script
Post by: deltamatrix on Thu 17/05/2007 18:31:14
Yeah I know you can do it using run-script. I already have done. I just thought it might be useful to have a dialog script command that does it.

Like I said, just a suggestion.