Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: hms on Wed 16/03/2005 14:02:25

Title: Speech problem!
Post by: hms on Wed 16/03/2005 14:02:25
Hi all!

Ive greatet this little dialog :

// dialog script file
@S  // dialog startup entry point
EGO: &1 "Hello Peter!"
PETER: "Hello to you!"
return
@1  // option 1
PETER: "Im I'm Peter your best friend"
PETER: "You havent forgot havent you?"
EGO: "No no of course not"
return
@3  // option 3
EGO: "Im going now."
PETER: "Bye"
stop


but how do i play sounds uset as speech?
Title: Re: Speech problem!
Post by: Ishmael on Wed 16/03/2005 14:42:08
To answer the simple question:

(http://koti.mbnet.fi/tk-/img/RTFM.gif)

Quote from: The holy Manualyou can add the special character '&' to symbolise that a voice file should also be played. The file name is made up of the first four letters of the character's script name, then an ID number. For example,
ego: &10 "Hi! How are you?"
david: &7 "I'm fine."

This would play EGO10.WAV with the first line, and DAVI7.WAV with the second. When a line of text has a voice linked to it, the text on the screen will not be removed until the voice file has finished playing. If the player interrupts it by clicking the mouse or pressing a key, the text and voice will be stopped.
Title: Re: Speech problem!
Post by: hms on Wed 16/03/2005 15:17:29
ohh im very sorry!
:'(


But thanks!