Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: FinalSin on Tue 29/06/2004 17:50:39

Title: Changing the Speaker
Post by: FinalSin on Tue 29/06/2004 17:50:39
Scripting is great! Really wonderful. But when I insert speech I can't seem to change the speaker to EGO. It mentions it in the tutorials, but doesn't clarify it much. Is it even possible?
Title: Re: Changing the Speaker
Post by: LordHart on Tue 29/06/2004 17:54:37
Um, you mean by playing a voice file with the text speech that comes up?

If so, you need to have the file named something like ego1.wav and then when you want the player talking:
DisplaySpeech(EGO, "&1 I am talking...");
And don't forget to Rebuild all VOX files...
Title: Re: Changing the Speaker
Post by: FinalSin on Wed 30/06/2004 10:23:15
I need this to be spoken by EGO, not the narrator:


if (my_counter == 0) {
    Display("It's a first edition of 'Mufkin's Big Book Of Secret Bookcase Passageways");
  }
  if (my_counter == 1) {
    Display("Chapter 1 - Bookcases often have hidden secret passages in them."); 
  }
  if (my_counter == 2) {
    Display("Chapter 2 - Often, secret books need to be placed in the gaps. They may have suggestive names or other clues.");
  }
  if (my_counter == 3) {
    Display("That's all it says. Odd."); 
  }
  if (my_counter < 3) {
    my_counter += 1;
  }


If I put in EGO before the speech marks then it says there is a "parse error near 0"
Title: Re: Changing the Speaker
Post by: Mr Jake on Wed 30/06/2004 10:57:45
DisplaySpeech (EGO, "blah");

EDIT: I should add that what you had wasnt displaying any speech it was a message.