Hey, I'm new to DoomWorld, but I'm also on ST. I thought posting here would be better, because this is generally a larger forum.
Okay, I'm having an ACS problem. I'm making a monster spawn room, but some of it is not working.
I made it so that when you bump into a line in front of a switch, it displays the name of the monster.
What I don't get, is why the first one isn't working. It won't display "Zombiemen". I have no idea what's wrong.
I can assure you the linedef properties are correct. (Quadruple checked them.)
Here's the code for the bumping-into line. (sorry about the huge amount of text)
Script 15 (int MessageID)
{
if(messageID == 1)
{
print(s:"Zombiemen");
}
if(messageID == 2)
{
print(s:"Shotgunguys");
}
if(messageID == 3)
{
print(s:"Chaingun guys");
}
if(messageID == 4)
{
print(s:"Imps");
}
if(messageID == 5)
{
print(s:"Dark imps");
}
if(messageID == 6)
{
print(s:"Demons");
}
if(messageID == 7)
{
print(s:"Spectres");
}
if(messageID == 8)
{
print(s:"Cacodemons");
}
if(messageID == 9)
{
print(s:"Cacolanterns");
}
if(messageID == 10)
{
print(s:"Pain elementals");
}
if(messageID == 11)
{
print(s:"Lost Souls");
}
if(messageID == 12)
{
print(s:"Hell knights");
}
if(messageID == 13)
{
print(s:"Abaddons");
}
if(messageID == 14)
{
print(s:"Barons of hell");
}
if(messageID == 15)
{
print(s:"Arachnotrons");
}
if(messageID == 16)
{
print(s:"Revenants");
}
if(messageID == 17)
{
print(s:"Mancubus");
}
if(messageID == 18)
{
print(s:"NAZIS :D");
}
}
...And here is the spawning code. This one is activated when the player "uses" the switch.
(The first command for all of them (Ceiling lower to lowest) isn't working!!! Why won't it work!?)
Script 16 (int MessageID)
{
if(messageID == 1)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Zombiemen \cgSpawned");
SpawnSpot("Zombieman",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 2)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Shotgunguys \cgSpawned");
SpawnSpot("Shotgunguy",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 3)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Chaingun guys \cgSpawned");
SpawnSpot("Chaingunguy",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 4)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Imps \cgSpawned");
SpawnSpot("DoomImp",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 5)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"DarkImps \cgSpawned");
SpawnSpot("Darkimp",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 6)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Demons \cgSpawned");
SpawnSpot("Demon",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 7)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Spectres \cgSpawned");
SpawnSpot("Spectre",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 8)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Cacodemons \cgSpawned");
SpawnSpot("Cacodemon",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 9)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Cacolanterns \cgSpawned");
SpawnSpot("Cacolantern",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 10)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Pain elementals \cgSpawned");
SpawnSpot("Painelemental",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 11)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Lost souls \cgSpawned");
SpawnSpot("LostSoul",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 12)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Hell knights \cgSpawned");
SpawnSpot("Hellknight",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 13)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Abaddons \cgSpawned");
SpawnSpot("Abaddon",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 14)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Barons of hell \cgSpawned");
SpawnSpot("Baronofhell",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 15)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Arachnotrons \cgSpawned");
SpawnSpot("Arachnotron",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 16)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Revenants \cgSpawned");
SpawnSpot("Revenant",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 17)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"Mancubus \cgSpawned");
SpawnSpot("Fatso",55,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 18)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
print(s:"NAZI INVASION :D");
SpawnSpot("wolfensteinSS",54,51,90);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
if(messageID == 19)
{
Ceiling_lowerToLowest(58,100);
TeleportInSector (50, 54, 56, 1, 0);
Delay(35);
Print(s:"Monster room clean");
Thing_remove(51);
FloorAndCeiling_RaiseByValue (58, 100, 256);
Delay(35);
Floor_Lowertolowest(58,100);
Delay(35);
}
}
... So what the Hell is wrong? I just don't get it...
~[JP]