HI. Hope someone can help me. I am trying to add voiced dialog to my character's wife. I have searched every combination of key words of which I can think and nothing doing. Is it possible to add sounds to dialog? Can someone post a link to a guide or give the steps. Thanks very much.
Edit: I have studied the dog dialogs as that is probably the way to go but can't figure out: $player_dog_agent_no
i.e.
[anyone|plyr, "dog_talk_2",[],"Go, {s1}, go!", "close_window",[(assign, "$dog_order", 0),(agent_play_sound, "$player_dog_agent_no", "snd_dog_bark"),]],
a search of the source files listed "player_dog_agent_no" only occurs in variables.txt
knowing that. I:
1. placed my wifehello.wav file in VC modded Sounds folder
2. placed wife_hello in variables.txt
3. added ("wife_hello", sf_vol_12|sf_priority_5|sf_stream_from_hd,["wife_hello.wav"]), after the last line but above the final ] of module_sounds.py
4. Changed this line in the spouse_talk section of module_dialogs.py:
],
"Yes, my husband?", "spouse_talk",[
]],
to
],
"Hello, {playername}?", "spouse_talk",[ (agent_play_sound, "$wife_hello", "wife_hello"),
]],
got two errors in module.dialog.py
unrecognized tag in object: wife_hello
illegal identifier wife_hello
any suggestions?
thanks a million.
EDIT 2:
Thanks Motomataru!! that did the trick. Voiced dialog really adds to immersion. Now to give some other npc companions some things to speak by adding sounds,