sounds, sound effects?

Forum Archive - from http://theuniversal.net
Locked
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

sounds, sound effects?

Post by flametard »

I looked in one of the universal folders the other day and discovered a bunch of sound files. I was wondering if there was any way i could get my planet to use them.

can i make a script something like:


event- newbuilding
.playsound 24

and it would play a the fanfair sound when they made a new building? cause as of right now the only scriptable sound effect i know of is .thunder, which everyone hears.


can i upload a sound effect to play when a person uses a certain weapon?


can i change the menu sound effects?


if i can use sounds, can i make my own custom sounds for use in the game?!
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

no one knows ANYthing about adding sound effects to a planet?!
User avatar
fhko
VIP
VIP
Posts: 930
Joined: Sun Mar 27, 2005 10:38 pm
Location: As I awake I find myself in a strange new place.

Post by fhko »

only thing I know is that you can set a building to play a certain sound effect constantly that nearby players can hear...that's about it


Oh yeah, to make a weapon use a particular sound, you have to set up which number sound will be played. Then the correct file must be applied to that sound number using the world server's sound selector tool. The tool relies on the use of sounds in the server's sounds folder.

Image
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

lol, i hope your still not waiting for an answer.
it only would have taken 5 mins to toss that into a script and see if it worked :P

there is the .playsound # command. so i don't see why it wouldn't work.
i don't remember if the script can use . yet commands though.
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

oh... darnit, youre right. it cant!! :*(
i was thinking of *stomp not .thunder
shucks shucks shucks.

thanks for the info guys!!
:D
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

oh, i cant mess with scripts right now cause im connecting via wireless and it wont let me into my planet to test the new scripts. hopefully my spaceship will be gettin cable in the next week or so.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

note theres also
*sound (NUM)
which plays the sound on all clients
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

*customsound %player% (num) plays the sound from the custom sounds file to just the player

*soundeffect (num) plays a sound on all clients, however, i do not know how to set up these sounds, it seems to use 1-28 but the numbers dont corrospond tothe custom sounds file in the server window

.playsound and *sound seem to do nothing.
Locked