im trying to play music within a certain area, i wanted to know what is so wrong with my code
Play_Song(S as sound)
set category = "Admin"
area()<<sound(S,1)
ID:147485
May 2 2004, 2:55 pm
|
|
In response to Mellifluous
|
|
Except, you know, you shouldn't be using usr in Entered() or Exited().
|
In response to Garthor
|
|
Garthor wrote:
Except, you know, you shouldn't be using usr in Entered() or Exited(). Ya, they REALLY need to change that example in the reference. =\ |
In response to Goku72
|
|
It's there to throw off the weak-minded. *Laughs evilly on behalf of whoever typed up the DM Reference*
|
In response to Goku72
|
|
Goku72 wrote:
Garthor wrote: "They" did. Lummox JR |
That will in general work with your game, though you can't just copy and paste it due to the indentations being incorrect.
If you have to give compliments, direct them to Spuzzum, as it was he who created that for me within EoE and he deserves full credits for it.
All I deserver credits for is basically the explanation for you, I know how that runs and I know what to do with it, though the explanations are there for you to learn from it.
Anyway, like I said, Spuzzum deserves full credit for this not I.
As for your procedure, you're going to have to "use" that verb manually, as that is what it seems to be, a verb.
You set it to the Admin category, which really it should even be as a verb if you want it played in a certain area for those who enter it.
Also, with you setting "S as sound" the calling "S" in the area(), I doubt you will get anything outputted because you technically set "sound" as a list.
So to play the sounds, you would need to create a list called "sound" and have your sounds in there in a list. After that you would need to manually pick the sound, and in general you're going the wrong way.
--Lee
[EDIT; Mellifluous] I made a slight modification from changing the "usr" to "src" within the "Entered()" and "Exited()" procedures.
It was a minor mistake played on my part and I should have known better, but thanks to Garthor this was sorted.