Yeah, well, it doesn't work because nothing in it actually makes sense D:
script 1 (void)
{
int i;
int roomTID;
roomTID = FindActor("20"); //There's no ACS function called FindActor()
if (roomTID != 0)
{
for (i = 0; i < 8; i++) //You're initializing a loop with int i but then you never use it
{
if (ThingCountName("4") > 0) //You're using ThingCountName wrong
{
int monsterTID = ActivatorTID();
if (monsterTID != 0)
{
Teleport(0, monsterTID, roomTID); //You're using Teleport wrong
}
}
}
}
Door_Open(2, 16, 1);
Door_Open(3, 16, 1);
Door_Open(4, 16, 1);
}
https://zdoom.org/wiki/ThingCountName
https://zdoom.org/wiki/Teleport