View Single Post
  #2  
Old 03-20-2006, 09:46 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Use a system NPC to play the music for each level.

PHP Code:
this.midi = {"stef3", "stef23", "stef7"};
this.midi.stef3 = {"level2.nw", "level3.nw", "level4.nw"};
this.midi.stef23 = {"level5.nw", "level6.nw", "level7.nw", "level8.nw"};
this.midi.stef7 = {"level9.nw", "level10.nw"};
for (
a: this.midi) {
  if (
makevar("this.midi." @ a).index(player.level) >= 0) playlooped(a @ ".mid");
} 
Reply With Quote