Hi! I'm selling this fine leath... Uhm.. So;
I have this player. His Script-o-name is MARK. And in one situation, he talks to JACKIE on cellphone. Now, I used set-speech-view MARK 18 in dialogs script, but the problem is, that view is only when he talks, when JACKIE talks, it's back on his normal view(not holding cellphone). That would be great help, because i can use it in much different situations. Thank you!
QuoteHis Script-o-name is MARK
Just to clarify: That is his script name, his script-o-name would be cMark.
Now, I guess the speech view is only shown when the character actually speaks, so you will have to change his normal view to a cell phone-holding one as well before the dialog, then revert back to the old one after the dialog.
So for the interaction that starts the dialog, add a "Run script" action, then enter:
cMark.ChangeView(MARKCELLPHONEA); // or whatever the view's name is
cMark.SpeechView = MARKCELLPHONEB; // so you don't have to do it in the dialog script
RunDialog(42); // start the dialog
Close and save, then add another "Run script" action directly after this and enter:
// this code will be executed after the dialog ends:
cMark.ChangeView(MARKNORMAL);
cMark.SpeechView = MARKSPEECH;
You have to split the code like this because RunDialog commands are always executed last in a script.