Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Speech in dialogs  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

adonf

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
    • View Profile
Speech in dialogs
« on: May 02, 2006, 06:23:28 PM »

Hi,

Sorry if it's a FAQ, I made a search in the forums and on the wiki but couldn't find an answer to my problem:

How do I add speech to a dialog ? I want to have the main actor talk their dialog lines, but it doesn't work.

I have speech in the game, the automatic speech thinggie works nicely (calling actor.Talk("/MYSPEECH000/") displays the text and plays the sound file) but it seems to be causing trouble in dialogs. It looks like the line get expanded by Game.AddResponse so when I query Game.LastResponse I get the localized line and not the original line and thus actor.Talk(Game.LastResponse) doesn't play any sound.

Is there a nice way to work around this ?

Thanks,
 Olivier
Logged
I am the Milkman. My milk is good.

adonf

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
    • View Profile
Re: Speech in dialogs
« Reply #1 on: May 02, 2006, 06:28:20 PM »

Ok, I got it, I just need to store the non-localized string in an array like you do in oldguy.script and have the actor talk the string from that array at index Game.GetResponse()...

« Last Edit: May 02, 2006, 06:31:09 PM by adonf »
Logged
I am the Milkman. My milk is good.
 

Page created in 0.036 seconds with 24 queries.