RastaBlast Posted May 6, 2019 so my scripts compile without eror but when i go to script exicute i only have script 1 in the drop down menu. im sure im just being stupid so hears my ACS can anyone say whats wrong? #include "zcommon.acs" Script 1 (VOID) { PlaySound(0,"TWGB"); } Script 2 (VOID) { PlaySound(0,"ITYC"); } i also tried #include "zcommon.acs" Script 1 (VOID) { PlaySound(0,"TWGB"); } #include "zcommon.acs" Script 2 (VOID) { PlaySound(0,"ITYC"); } but it coughed out an eror invalid identifer zspecial acs (line 9) as i said i dont get this eror if i only have #include "zcommon.acs" as a header but i dont get a script 2 option either can anybody help me? (im sure im just being an idoit) 0 Quote Share this post Link to post
1 Gez Posted May 6, 2019 It's probably because your scripts are one-liner and the DB parser probably expects to find the script's closing brace on a different line. Try a formatting like this: #include "zcommon.acs" Script 1 (VOID) { PlaySound(0,"TWGB"); } Script 2 (VOID) { PlaySound(0,"ITYC"); } That said: with scripts that short, do you actually need to use the drop-down? 0 Quote Share this post Link to post
0 Nevander Posted May 6, 2019 What happens if you test map and type "puke 2" in the console? Does the sound play? If so, your scripts are fine and it's just the editor unable to see script 2. You can always enter 2 into the dropdown manually as well. As far as why it's not showing up, I don't know. My only suggestion would be to put the closing brace on its own line, but that shouldn't matter. 0 Quote Share this post Link to post
0 RastaBlast Posted May 6, 2019 OK so it doesn't give me the sound or silence or any errors for puke 2 snappy response btw 0 Quote Share this post Link to post
0 RastaBlast Posted May 6, 2019 (edited) oh the brace did it thanks guys im overwhelmed that the community responds this quickly thanks a bunch :) also theirs going to be a lot of stupid sound effects in this wad so the drop down will save me time Edited May 6, 2019 by RastaBlast 0 Quote Share this post Link to post
Question
RastaBlast
so my scripts compile without eror but when i go to script exicute i only have script 1 in the drop down menu.
im sure im just being stupid so hears my ACS can anyone say whats wrong?
i also tried
but it coughed out an eror invalid identifer zspecial acs (line 9) as i said i dont get this eror if i only have #include "zcommon.acs" as a header
but i dont get a script 2 option either can anybody help me? (im sure im just being an idoit)
Share this post
Link to post
4 answers to this question
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.