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

Problem with scripts

Recommended Posts

I'm using Doom Builder, and I typed the following in Scripts>Edit BEHAVIOR lump:

Script 1 OPEN {
Sector_SetColor(1, 128, 0, 0);
Sector_SetColor(2, 0, 128, 0);
}

So, AFAIK, I need to compile the script so it actually runs in the map. When I click "Compile", the following message pops up:

Line 2 in file "script.acs" ...
script.acs:2: Function sector_setcolor is used but not defined.
script.acs:3: Function sector_setcolor is used but not defined.

The ACS compiler did not compile your script.

What's wrong?

Share this post


Link to post

It needs to be this:

Script 1 OPEN
{
Sector_SetColor(1, 128, 0, 0);
Sector_SetColor(2, 0, 128, 0);
}

The { needs to be one line down. It always goes on a line of its own.

Share this post


Link to post

That won't help (and actually is complete nonsense) because it only moves some whitespace. What you forgot is to add

#include "zcommon.acs"

at the top of your script.

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
×