Here's the script for the first and currently only area. The final product will be a close copy of a japanese game called LSD.
Code: Select all
#include "zcommon.acs"
int dice = 0;
int rdice = 0;
//Apartment complex script
SCRIPT 1 OPEN
{
//day/night randomizer
dice = random(1,2);
if(dice == 1)
{//night
ChangeSky("night","");
Sector_SetFade (1, 0, 0, 10);
Sector_SetFade (2, 0, 0, 10);
Sector_SetFade (3, 0, 0, 10);
dice = 0;
}
else
{//day
ChangeSky("skyfog","");
Sector_SetFade (1, 150, 150, 150);
Sector_SetFade (2, 150, 150, 150);
Sector_SetFade (3, 150, 150, 150);
dice = 0;
}
//Texture randomizer
dice = random(1,4);
rdice = random(1,2);
if(dice == 1)
{//White window/building walls
SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding1");
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding1");
SetLineTexture(2, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding1");
SetLineTexture(3, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding1");
dice = 0;
rdice = 0;
}
else
{
if(dice == 2)
{//Dark building/window walls
SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding2");
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding2");
SetLineTexture(2, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding2");
SetLineTexture(3, SIDE_FRONT, TEXTURE_MIDDLE, "Bilding2");
dice = 0;
rdice = 0;
}
else
{
if(dice == 3)
if(rdice == 1)
{//Solid brick walls
SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "Awall48");
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "Awall48");
SetLineTexture(2, SIDE_FRONT, TEXTURE_MIDDLE, "Awall48");
SetLineTexture(3, SIDE_FRONT, TEXTURE_MIDDLE, "Awall48");
dice = 0;
rdice = 0;
}
else
{
if(dice == 4)
if(rdice == 2)
{//Asian text on walls
SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "CHINA4");
SetLineTexture(1, SIDE_FRONT, TEXTURE_MIDDLE, "CHINA4");
SetLineTexture(2, SIDE_FRONT, TEXTURE_MIDDLE, "CHINA4");
SetLineTexture(3, SIDE_FRONT, TEXTURE_MIDDLE, "CHINA4");
dice = 0;
rdice = 0;
}
}
}
}
}
EDIT:
I fixed it by renaming the map to MAP01. If you were using the normal Doom 1 format (E1M1) and switched to a Doom 2 IWAD format (MAP01), then just remember to rename your maps.