Code:
Code: Select all
#include "zcommon.acs"
int coolant_lowerd;
script 1 OPEN
{
Thing_Projectile(random(const:1, 6), 150, random(0, 224), 10, -(128));
delay(2*6);
restart;
}
script 2 OPEN
{
setplayerproperty(prop_totallyfrozen, 1, 0);
changecamera(9,0,1);
thing_activate(9);
delay(35*7*2);
SetFont (const:"BigFont");
hudmessage (s:"The city was in Tatters. It\n\n",
s:"all started when the UAC\n\n",
s:"discovered the underground\n\n",
s:"ruins. The ''homeworld''\n\n",
s:"race-they found out-was\n\n",
s:"was wiped out by a more\n\n",
s:"superior race. Looks like\n\n",
s:"history has decided to\n\n",
s:"repeat iteself...\n\n";
2, //Messagetype: Plain
0, //MessageID
6, //color red
1.5, //x-coord
-0.5, //y-coord
14.0); //MessageHoldTime in secs
delay(35*6*5);
changecamera(0,1,1);
setplayerproperty(prop_totallyfrozen, 0, 0);
thing_activate(22);
}
script 3 (void)
{
changecamera(0,1,1);
setplayerproperty(prop_totallyfrozen, 0, 0);
thing_deactivate(9);
acs_terminate(2, 0);
}
script 4 (void)
{
hudmessage (s:"Front row uranium tubes lowered.\n\n",
s:"Warning, If core tube is lowered\n\n",
s:"the UAC Building will be destroyed.\n\n";
2, //Messagetype: Type in, fade out
0, //MessageID
3, //color green
1.5, //x-coord
-0.5, //y-coord
5.0); //MessageHoldTime in secs ;
floor_lowertonearest(24, 64);
}
int switchcount;
script 7 (void)
{
{
switchcount++;
switch (switchcount) {
case 1:
print (s:"This will lower the last uranium tube,\n\n",
s:"and drain the coolent. Do you want to do this?");
break;
case 2:
print (s:"are you FRIGGIN SEROIUS? this will BLOW\n\n",
s:"THE BUILDING TO HELL!");
break;
case 3:
print (s:"Alright...");
floor_lowertonearest(30, 64);
floor_lowerbyvalue(23, 26, 118);
floor_raisebyvalue(31, 26, 0);
floor_raisebyvalue(220, 26, 100);
ChangeFloor(27, "SLIME15");
ChangeFloor(31, "SLIME15");
sector_setcolor(0, 99, 0, 0);
sector_setcolor(23, 99, 0, 0);
sector_setcolor(31, 99, 0, 0);
sector_setcolor(27, 99, 0, 0);
break;
coolant_lowerd += 1;
}
}
}
script 10 (void)
{
int iTag;
setplayerproperty(prop_totallyfrozen, 1, 0);
{
scroll_texture_both(81,64,0,0,0);
scroll_texture_both(80,0,64,0,0);
scroll_floor(76, 64, 0 , 0);
For ( iTag = 67; iTag < 76; iTag++ )
{
floor_lowertolowest(iTag,999);
ChangeFloor(iTag, "FWATER1");
scroll_floor(iTag, 64, 0 , 0);
delay(15);
}
For ( iTag = 50; iTag < 67; iTag++ )
{
if ( iTag > 55 )
{
Floor_lowertolowest(iTag,255);
}
else
{
Floor_lowertolowest(iTag,999);
}
ChangeFloor(iTag, "FWATER1");
Floor_Waggle(iTag, 64, 64, 0, 0);
scroll_floor(iTag, 64, 0 , 0);
delay(15);
}
hudmessage (s:"I had escaped. I destroyed the\n\n",
s:"demons guarding the city. But that\n\n",
s:"wasn't the end of it. I knew it wasn't.\n\n",
s:"I didn't know where the ship was\n\n",
s:"going...I just let it go whever the auto\n\n",
s:"pilot took me. I\n\n",
s:"figured that would lead me to the\n\n",
s:"root of the problem...\n\n";
2, //Messagetype: Plain
0, //MessageID
6, //color red
1.5, //x-coord
-0.5, //y-coord
10.0); //MessageHoldTime in secs
delay(35*5);
changecamera(244, 0, 0);
thing_destroy(255);
delay(35*11);
exit_normal(1);
}
}
script 11 (void)
{
if (coolant_lowerd == 0)
hudmessage (s:"Door closed. Reason: Coolant is still\n\n",
s:"present. Fix: Lower coolant.\n\n";
2, //Messagetype: Plain
0, //MessageID
6, //color red
1.5, //x-coord
-0.5, //y-coord
5.0); //MessageHoldTime in secs
if (coolant_lowerd == 1)
hudmessage (s:"Access Granted.\n\n";
2, //Messagetype: Plain
0, //MessageID
6, //color red
1.5, //x-coord
-0.5, //y-coord
2.0); //MessageHoldTime in secs
door_open(233, 32);
}
any help is DEFINATLYY appreciated lolWad Author script Compiler wrote: Copyright (c) 1995 Raven Software, Corp.
Uses the PMODE/W DOS extender, v1.16
**** ERROR ****
Line 8 in file "zspecial.acs" ...
Error #15: Missing ')'.
Host byte order: LITTLE endian
zell