mustafa saed Posted June 20, 2002 is there any way to place ambient sounds in a legacy wad? i got to the point where you cross a line and the sound plays thats about it! i looked it up in the legacy editing pages but it didn't say jack about it! could someone make a small box wad with a ambient sound in it and with the text file show the fraggle script what it looks like please? 0 Share this post Link to post
Kaiser Posted June 20, 2002 yup. create a sound and name something like dsmysound.wav -or- dsyourname.snd whatever format you plan on importing. go ahead and import it into your wad. now, this is done through fragglescript. so let me start it off for you: [level info] music = d_runnin levelname = yourmap creator = you [scripts] include("things.h"); //global variables script 0 { startsectorsound(1, "mysound" ); } what this script does, it plays dsmysound on sector tagged 1. be sure you don't put "ds" in front of the sound name or else it won't work. just copy that and insert it into your wad. and have a linedef trigger the script. (assuming you know how to enable Legacy mode in Deepsea or Wadauthor, if you got one of those..) 0 Share this post Link to post
Kaiser Posted June 20, 2002 oh yeah, I forgot, here's a sample map you requested. soundwad.zip 0 Share this post Link to post
mustafa saed Posted June 21, 2002 thanks a lot deathman! i just started workin on legacy. im tryin to make a dark 7 like wad for legacy with the 3d stuff it should be pretty cool! 0 Share this post Link to post
mustafa saed Posted June 22, 2002 now i need a small demo script showing that after you hit three switchs a door opens. and im done! 0 Share this post Link to post
Kaiser Posted June 22, 2002 int doorhit = 0; script 2 { doorhit++; if(doorhit == 3) { "your actions here" } } -OR- if that doesn't work, try this one: int doorhit = 0; script 2 { doorhit = doorhit + 1; if(doorhit == 3) { "your actions here" } } now be sure you assign ONE of these scripts to all 3 switches that you want to be affected gl 0 Share this post Link to post