Different music for different skill levels ?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Different music for different skill levels ?

Post by Sandro »

I'm working on a project where the skill level changes the gameplay quite much, so depending on which one you choose I want to propose different musics to fit better with certain atmospheres set in the levels. Is it even possible ?
My first thought was with using a script with [wiki]GameSkill[/wiki] and [wiki]SetMusic[/wiki] like this example below, but it seems it's not working.
Spoiler:
Any help please ?
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Different music for different skill levels ?

Post by Nevander »

How exactly is it not working? Does it try to change the music at all?

I would suggest changing it to OPEN and then make sure you have music lumps in your project named MUSIC1 exactly. Remember the D_ prefix is only appended if you prefix the lump name; meaning $MUSIC1 would look for D_MUSIC1, whereas just MUSIC1 expects a lump named MUSIC1 exactly.
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Re: Different music for different skill levels ?

Post by Sandro »

It simply seems nothing happens, as if the script was incorrect.
A quick example :
You do not have the required permissions to view the files attached to this post.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Different music for different skill levels ?

Post by Graf Zahl »

The scripts haven't been compiled. There's only the source version which ZDoom does not use.
User avatar
Sandro
Posts: 183
Joined: Sat Oct 05, 2013 8:03 am
Location: Erathia

Re: Different music for different skill levels ?

Post by Sandro »

Ah thanks ! :o Apologies for this careless mistake ; I'm not really used to scripts yet.

(Actually it's the first I wrote with Slade and I did not know it needed a path to an acc exe, as my previous scripts were made with GZDB which already contains one...)

Return to “Editing (Archive)”