swordgrunt Posted October 19, 2008 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? 0 Share this post Link to post
Mik57 Posted October 19, 2008 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. 0 Share this post Link to post
Graf Zahl Posted October 19, 2008 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. 0 Share this post Link to post
Mik57 Posted October 19, 2008 Hmm, I didn't notice that he didn't include zcommon. Sorry for any confusion. 0 Share this post Link to post
swordgrunt Posted October 19, 2008 I was going to edit my previous post when I saw yours. Thanks a lot, Graf Zahl, it worked perfectly. 0 Share this post Link to post