Never modded before, need help creating something I think is

Post » Fri May 04, 2012 8:20 am

Hello, I'm trying to create a mod that involves playing different background music in different areas, rather than just the two "Battle" and "Explore" folders.

I have a general, but not advanced, knowledge of programming. I took a few classes in high school including a college level Java class, so I can think of how this might be structured, but it's been a few years. I want to put different sound files (probably from other games) into a folder for each zone, then choosing a random file to play from that folder when I am in that zone. I don't know any of the game variables so I'll demonstrate the logic I plan to use:

Let's assume the Balmora music folder has 3 files. Balmora1, Balmora2, and Balmora3.

function Random(int, int);   //this function generates a random numberint MusicChoice;bool UpdateMusic = false;string CurrentZone;while (1){    if (CurrentZone != player.location)    {        UpdateMusic = true;        CurrentZone = player.location;        //this statement checks to see if the player changed zones, thus requiring a change in music    }    if (UpdateMusic == true)    {        if (player.location == Balmora)        {            MusicChoice = Random (1, 3);   //generates a random number between 1 and 3            Game.Music = "Morrowind\Data Files\Music\Balmora\" + "Balmora" + str(MusicChoice);        }    }    UpdateMusic = false;}

There's some C++ style code depicting how the script might flow. What I'm asking for is how I would manage this in the Construction Set, and how its variables would compare to what I have here. Any advice is appreciated.

User avatar
Kathryn Medows
 
Posts: 3547
Joined: Sun Nov 19, 2006 12:10 pm

Post » Thu May 03, 2012 11:57 pm

Are you sure http://www.gamesas.com/topic/1160550-relz-better-music-system/page__hl__music__fromsearch__1 isn't what you want?
User avatar
Mrs Pooh
 
Posts: 3340
Joined: Wed Oct 24, 2007 7:30 pm

Post » Fri May 04, 2012 11:32 am

This is exactly what I was looking for. Google searching Morrowind music mods didn't bring this up. Thanks.
User avatar
sally coker
 
Posts: 3349
Joined: Wed Jul 26, 2006 7:51 pm


Return to III - Morrowind