DrowzyBomber13 Posted June 7, 2021 I wanted to make the player play a song when they die, and I was wondering if there was a way to make the music for the level turn off when the player dies, and reactivates when they restart the level. Any help would be great. 0 Quote Share this post Link to post
Geckertim Posted June 7, 2021 I'm interested in this as well. Could really help sell fast-paced encounters. 0 Quote Share this post Link to post
Nevander Posted June 8, 2021 (edited) You could do two ACS scripts. One as a DEATH script to SetMusic to nothing which would stop music. Then a script for ENTER to SetMusic to whatever should play normally. https://zdoom.org/wiki/SetMusic https://zdoom.org/wiki/Script_types Edited June 8, 2021 by Nevander 1 Quote Share this post Link to post
Geckertim Posted June 8, 2021 3 hours ago, Nevander said: You could do two ACS scripts. One as a DEATH script to SetMusic to nothing which would stop music. Then a script for ENTER to SetMusic to whatever should play normally. https://zdoom.org/wiki/SetMusic https://zdoom.org/wiki/Script_types That's actually a perfect idea. Don't know why I hadn't thought of that. Thank you! 0 Quote Share this post Link to post
DrowzyBomber13 Posted June 8, 2021 12 hours ago, Nevander said: You could do two ACS scripts. One as a DEATH script to SetMusic to nothing which would stop music. Then a script for ENTER to SetMusic to whatever should play normally. https://zdoom.org/wiki/SetMusic https://zdoom.org/wiki/Script_types What would that look like? I'm not very familiar with this stuff 0 Quote Share this post Link to post
Geckertim Posted June 8, 2021 16 minutes ago, DrowzyBomber13 said: What would that look like? I'm not very familiar with this stuff This is what I did. 0 Quote Share this post Link to post
DrowzyBomber13 Posted June 8, 2021 2 minutes ago, Geckertim said: This is what I did. Dankeschon, sorry agin xp 1 Quote Share this post Link to post
DrowzyBomber13 Posted June 8, 2021 (edited) 9 minutes ago, Geckertim said: This is what I did. Mine isn't working. Do I name it "SNDINFO" in the wad or what do I name it? Sorry, I'm a terrible programmer Edited June 8, 2021 by DrowzyBomber13 0 Quote Share this post Link to post
Gez Posted June 8, 2021 It's ACS, it's not SNDINFO. This would normally go in your map's scripts (you can do that from the map editor). If your map is in a format that doesn't allow scripts, there's a workaround but it's more complicated. The so-called Hexen format and UDMF both allow scripts. The so-called Doom format doesn't. If your map is in Doom format, you have to set your script through a library instead. 0 Quote Share this post Link to post
Geckertim Posted June 8, 2021 (edited) 7 minutes ago, DrowzyBomber13 said: Mine isn't working. Do I name it "SNDINFO" in the wad or wha do I name it? Sorry, I'm a terrible programmer This goes in the scripts document for your map. You can access it through Doom Builder's script editor or by opening the wad for your map in Slade. Here is the scripts document in the wad for my map: After writing the script, save the document, then click the blue arrow to compile it: Hopefully this helps! Edited June 8, 2021 by Geckertim 0 Quote Share this post Link to post
DrowzyBomber13 Posted June 8, 2021 2 minutes ago, Geckertim said: This goes in the scripts document for your map. You can access it through Doom Builder's script editor or by opening the wad for your map in Slade. Here is the scripts document in the wad for my map: After writing the script, save the document, then click the blue arrow to compile it: Hopefully this helps! Do I copy it down for every map or is there a way to mass allow it? 0 Quote Share this post Link to post
Geckertim Posted June 8, 2021 1 minute ago, DrowzyBomber13 said: Do I copy it down for every map or is there a way to mass allow it? I believe you'll need to copy it for each individual map, but I'm not sure. 0 Quote Share this post Link to post
DrowzyBomber13 Posted June 8, 2021 1 minute ago, Geckertim said: I believe you'll need to copy it for each individual map, but I'm not sure. Ok, thanks, doc 1 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.