Jump to content
  • 0

No Script 2 Option Available GZDB-BF


RastaBlast

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...