Suggestion: Change dialog portrait position in dialog script

Started by deltamatrix, Wed 16/05/2007 16:13:13

Previous topic - Next topic

deltamatrix


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.

BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

Pumaman

You can already do this via the "Alternate" option for positioning the portraits, or are you thinking of something else?

SSH

I think he means dialog script explicit positioning. You can do it via run-script, though:

Code: ags

 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.
12

deltamatrix

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.
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

SMF spam blocked by CleanTalk