Jump to content

Named script


Recommended Posts

Hi, can anyone expalin me how to use named scripts?
In code editor I have:
script "test" (void)
{
Exit_Normal(0);
}

And I have a 80 switch with checked "named script" with "test" script name. But when I start map - there is error: "Error: Script number 65535 exceeds 999!"
If I set numeric sript ID to swith - there is no error.
What I'm doing wrong?

Share this post


Link to post

You can try using numbers instead of Script names, such as:

#include "zcommon.acs"

Script 1 (Void)

{
Exit_Normal(0);
}

If there are still issues afterwards make sure the Flag "When player presses use" is flagged with Script Execute (80).

I'm guessing you're using either DoomBuilder 2 or GZDoomBuilder?

Alternatively I'm fairly positive you can simply go to Line Mode, select the Line that's supposed to be the switch and just select End Normal (243). That's on GZDoomBuilder.

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
Reply to this topic...

×   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...