Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Nine Toes on Tue 24/02/2004 21:59:33

Title: DisplaySpeech causes problems with the current character view.
Post by: Nine Toes on Tue 24/02/2004 21:59:33
Hey.

I'm having some problems with any interaction that includes the DisplaySpeech command.

I have several different views for my main character, as in the game, you can equip different weapons to the main character, so one view is the character with a pistol, one view is the character with a bat, etc.

If I have any of these veiws set as the current view, and I interact with something, say the character has a pistol in his hand, and I look at something, the character will speak about what it's looking at.  But when it's done speaking, the character's view will switch back to the default that I have defined in the character editor (where the character is holding nothing at all).

Now, I have found a way to fix this, a way that I have tested and know works... I can have the game check the variable that tells the game which view should be used for that character, and I place that script after every DisplaySpeech command... and I mean EVERY one.

But I want to know, is there an easier way around this?  So that I don't have to put this script after every DisplaySpeech command?

If needed, I can show you the script.

Thanks in advance,
~Sully
Title: Re:DisplaySpeech causes problems with the current character view.
Post by: a-v-o on Tue 24/02/2004 23:25:14
If you use SetCharacterView then you should probably use ChangeCharacterView instead.
Title: Re:DisplaySpeech causes problems with the current character view.
Post by: Nine Toes on Wed 25/02/2004 00:07:27
Hey, it worked.  Thanks for saving me all of that work! ;)