Jump to content

ThingCountName doesn't check dead monsters.


apatuka

Recommended Posts

Greetings, i'm making some maps with Doombuilder 2 and i got a problem when monsters with specifed TID are dead doesn't trigger the action, instead it trigers even if they are alive (looks like the ThingCountName is equal to 0).

 

I assigned TID 668 and 669 to each group of monsters, but it wont work, my map format is Doom in Hexen Format.


 

#include "zcommon.acs"

script 1 OPEN
{
    While(ThingCountName(T_NONE, 669) > 0)
        Delay(35);
    
  Door_Open(15, 64);
}

script 2 OPEN
{
    While(ThingCountName(T_NONE, 668) > 0)
   Delay(35);

 Floor_LowerByValue(18, 8, 64);
}

What i'm doing wrong ?

Thanks !

Share this post


Link to post

If you want to count things regardless of their type, you should be using ThingCount instead. ThingCountName expects a class name string, so the T_NONE identifier shouldn't be used with it, as it maps to a number rather than a string.

 

//ThingCount    
While (ThingCount (T_NONE, 669) > 0)
	Delay(35);

//ThingCountName
While (ThingCountName ("BaronOfHell", 669) > 0)
	Delay(35);

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...