Full Version : How to play sound on xmlquest system
xmlspawner >>XMLSpawner - How do I? >>How to play sound on xmlquest system


<< Prev | Next >>

Elassar- 07-28-2008
Hi Arte,
i have a simple question for you...
Im using your XmlQuest system to create some Bard npc where the player can found the scroll with the new Bard Powers that we created...
Everything works good, dialog gump and adding the scroll to the player backpack are perfect... But i would like to let the system play a sound when the npc give the scroll to the player...
Actualy the ACTION gump have only that:

CODE
GIVE/BardScrollName


What i have to add to that to hear also the sound?

Ps:
Im sorry for my bad English:)

Elassar- 08-03-2008
QUOTE (Pink Floyd)
Is anybody out there?

Mideon- 08-03-2008
You can try the "SOUND,soundID" control keyword. Not sure if it's the same for quests, but it should be.


Elassar- 08-16-2008
sad.gif
Already tryed... Didn't work... Or i don't understand how to do it well...

Ednyved- 08-19-2008
Have you considered having a spawner that looks for the completed questholder? If you have autoreward set to false, you can have a spawner handle the reward giving, then you can use the SOUND keyword in the spawner.

I have a few quests that work this way, so if you need a more specific example, let me know.

Elassar- 08-19-2008
That's looks like a good way to try...
When i have some time i do that...
If you want to give me some working example i'll thank you!

Ednyved- 08-20-2008
It occurs to me that in the meantime, you might try SETONTHIS/SOUND,xxx in the dialog entry. It'll set the sound on whatever you have attached the dialog to and might just work. I haven't tried it, but you might want to... could simplify the whole works. wink.gif