Event sounds.

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

Okay, I've been looking through the ROM coding, and was wondering if there was a way to play a sound when an item (for example a ROM) is used (Invoked, etc.). can anyone help?
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

I thi9nk you'd just need to add the sound tag (sound= "&snChickenLaughter;"), and it'll play whenever you invoke/use the item.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

I'll try it...

EDIT: no such luck. Don't work.
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Not sure why it wouldn't work. Take a look at the sound code for explosions, shield hit and such. There doesn't seem to be anything besides the "sound=..." code for them unless they're hidden deeper inside the main coding somewhere. :?

You could try: <Invoke key="R"> or any letter or number I suppose and see if that makes any difference?
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

Its already:

Code: Select all

<Invoke key="T"> 
It does bring up an error, I can't remember it... I've had 2. One where I use

Code: Select all

<Invoke key="T"> 
(sound= "&snBeep")
</Invoke>
I think that brings up a message saying "no binding for "sound="" or something. I had another within (block or something, and that brought up a different error.
User avatar
dvlenk6
Militia Captain
Militia Captain
Posts: 519
Joined: Sun Mar 05, 2006 6:56 am
Location: Sanctuary and beyond
Contact:

I don't have any sounds to toy with, but try something like this:

Code: Select all

<Invoke key="T" sound="&snBeep">
... 
</Invoke>
All of the sounds I've seen are inside of tags, instead of xml commands.
"War is hell."
-William Tecumseh Sherman
http://dvlenk6.blackraven3d.com/transgals.html
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

I think the use of "Invoke" requires an executable function to call on.
Could also try setting it up as an effect and then try the invoke:

Code: Select all

<Effect UNID="&efBeep;"
			sound="&snBeep;"
			>
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

I'll try them both, get back to you later.
User avatar
Blinzler
Commonwealth Pilot
Commonwealth Pilot
Posts: 75
Joined: Sat Feb 17, 2007 9:28 pm
Location: yah man, where di sun is shining

whats the latest on this? I could add it to the list i'm doing right now if you got it working.
Post Reply