|
Shizuma Beginner
Joined: 24 Feb 2002 Posts: 16 Location: USA
|
Posted: Wed Apr 24, 2002 10:16 am
Adding sound to zmud 6.26a BETA ... |
Is it all #trigger related?!?
Or can I do something else to set it for the entire zone and have it loop, while in the zone? .. as well as, If able to have it loop while in a zone, how do I make it start/stop to and from the period they enter/exit the zone.
Thanks ahead of time.
Shizuma |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Apr 24, 2002 12:13 pm |
Well, since you are going to be doing it from your end, yes, you would need triggers. Have a look at the MSP Spec to get an idea on how to do this.
Kjata |
|
|
|
Shizuma Beginner
Joined: 24 Feb 2002 Posts: 16 Location: USA
|
Posted: Thu Apr 25, 2002 5:39 am |
Okay.. then, I'm building an area, and want to add the msp to the area itself, is that as well "script" related then if so, how do I go about the looping the music then, when I read it, it said do !!PLAY(music.wav .. but when I type that in the command line in zmud, it just repeats the last command (!) rolls, then if I turn parsing off, it just says huh!?.
So some help there would be appreciated as well.
Thanks again.
Shizuma |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Apr 25, 2002 4:04 pm |
If you are building an area, no script is needed in zMUD's side. You just need t send the text as it appears in the MSP spec. Perhaps you can send it in the description of the first room of the area. You would include, for example:
!!MUSIC(area.mid V=100 L=-1 C=1)
This would make zMUD play the file area.mid, at full volume, and loop it indefinately. This file must be located in the Sounds directory of the folder with the settings file for that MUD.
However, the problem with this method is that if someone uses a client that doesn't support MSP, they will see the !!MUSIC command. For this reason, you should consult the imms in charge of coding in the MUD because MSP is better done codewise, rather than areawise.
Also, if you want to use triggers to do some MSP on your side, then you need to use #SHOW. Use #SHOW to put the !!MUSIC or !!SOUND text in zMUD and zMUD should play the sounds.
Kjata |
|
|
|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Fri Apr 26, 2002 2:19 am |
I think he was looking more for something like the #play commands than at something like MSP. Something he can use and change from his end, without the MUD Imms getting involved and re-writing all the room descriptions.
|
|
|
|
Shizuma Beginner
Joined: 24 Feb 2002 Posts: 16 Location: USA
|
Posted: Fri Apr 26, 2002 4:08 am |
sorry for the confusion, I am an imm on the mud (co-owner/head builder) .. and was looking for a way to set it up for others to hear the music when they entered the city and have the music looped and when the left the city entrances, the music would stop.
We just got another coder and I don't think he really wants to code in msp, he said he'd be able to do an ifcheck on the room when someone enters it. *shrugs* .. but I don't know about coding the stuff tho.
from what I can tell if I wrote a script for it, it would only play on my end, I'm not sure if it would play on the other players end. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Apr 26, 2002 12:58 pm |
Yes, then you need to send the text like the one I put on my previous reply. You can send this right along the room description or, like your coder said, do an if check to send the text. The preferred one is the second one since you can then also check to see if the player supports MSP and has it enabled (provided you allow players to toggle MSP on/off). There are some snippets lying around to add MSP support to a MUD, have your coder look at one to get an idea.
Kjata |
|
|
|
|
|