Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
RastaBlast

No Script 2 Option Available GZDB-BF

Question

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)

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1

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?

Share this post


Link to post
  • 0

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.

Share this post


Link to post
  • 0

OK so it doesn't give me the sound or silence or any errors for puke 2 snappy response btw

Share this post


Link to post
  • 0
Posted (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 by RastaBlast

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×