Thread: Tones!?
View Single Post
  #11  
Old 09-06-2001, 03:41 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

If you make an instrument script... for the love of god, don't use if (keydown(1)) and if (keydown(2)) and so on x.x

If you want a nice script... ah hell, here...

NPC Code:
if (playertouchsme){
toweapons ¤ Ocarina;
}
if (weaponfired || keydown(4) && strequals(#w,¤ Ocarina)){
this.mode=1-this.mode;
timeout=.05;
}
if (timeout && this.mode=1){
freezeplayer .05;
for (i=0;i<4;i++){
if (keydown(i) && !keydown(5)){play ocarina#v(i+1).wav;}
if (keydown(i) && keydown(5)){play ocarina#v(i+5).wav;}
}
timeout=.05;
}



This is, of course, assuming you have the .wav files of ocarina1 through ocarina8... you can modify the instrument, just make sure they all end in a number from 1-8

And to do instruments, I suggest doing something as simple as getting:
a) Good midi sound card
b) Good sound recording program
And then hooking the in/out sound ports together and recording the midi into a .wav

*sits back and waits for Kaimetsu to point something out that he did wrong or not exactly perfect in script*
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)

Last edited by entravial; 09-06-2001 at 04:03 AM..
Reply With Quote