Jump to content

Music?


Ely

Recommended Posts

I have a little abit of info on scipting, i am making a island and i would would like to make it so when u arrive some music plays, i have found some things on the web but its all a lod of rubbish to me.

 

 

Sorry if i have broke any rules or made any spelling mistakes.

 

:help:

Link to comment
Share on other sites

if you have chen buis scripting for dumbies 5 this should give you all the info you need look up detecting what cell the player is in and playing music the rest should fall into place :)
Link to comment
Share on other sites

Here is a script that someone helped me with *winks at Wookiee* when I needed it. Just adjust the variables to fit your purpose.

 

Begin ScriptName

float timer
short state

If ( GetPCCell "Your Cell Name" == 1 )
if ( state == 0 )
StreamMusic "music you want to play.mp3"
set state to 1
set timer to 0
endif
set timer to timer + GetSecondsPassed
if ( timer >= lenth of song in seconds )
 StreamMusic "music you want to play.mp3"
 set timer to 0
else
 return
endif
else
if (state == 1 )
StreamMusic "mx_explore_1.mp3"
set state to 0
endif
Endif

End ScriptName

 

Copy the music you want to play to /morrowind/data files/music, and also make a copy of mx_explore_1.mp3 (found in morrowind/data files/music/explore) in the same location. ***Make sure you COPY it, and not move it or make a shortcut to it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...