Ulysses

Ulysses Stuff => Ulysses Release Archives => Releases => Releases for ULib v1.* => Topic started by: Griff on August 11, 2006, 06:35:12 AM

Title: ULX v2:Play Sounds
Post by: Griff on August 11, 2006, 06:35:12 AM
Thanks for help by JamminR. couldnt have done this without him.

here is the link. (http://www.gs-network.co.uk/gmod/playsounds-ULX%20v2.0.lua)
Title: Re: Play Sounds
Post by: JamminR on August 11, 2006, 10:43:32 AM
Glad I could help.
Do you have the sounds? Im not sure they can be had in the Releases for v1.* forum.
I also edited your subject line so folks would know its made to compliment ULX v2.

Note to others:
Originally created by InstantDeath, then converted by Griff, this script looks for three key words or phrases, then plays a sound if they are said.
 This script wasn't modified much from its original ULX v1 version. See it in the "Releases for ULX v1.*" forum if you want the ULX v1.13 version.
(You have to be signed on as a forum member to see this forum available)

Griff, or anyone, up to the challenge of upgrading, making it more user friendly/configurable? I'm thinking tables could be used to store word/sound pairs.
table.insert(wordtosound,"word","what/to/play")
Something like that, I'm probably off.
Then perhaps a for loop to look for each word on player said, then play sound associated with word if found?
 This way, users coud more easily add/change whats played on key text by editing the table entries
Title: Re: ULX v2:Play Sounds
Post by: Griff on August 11, 2006, 08:01:44 PM
i think that would be good. but at the moment. i am still learning lua, and need to learn a of a lot more function etc before i can even begin to release, modify, re-release, upgrade, etc. i just did this one since you helped me with it, and it worked like a dream. :) but im sure i will learn pretty quick. :)