Dead Simple like mechanics in UDMF

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Posts: 25
Joined: Sun Jan 31, 2021 9:18 am
Location: Poland

Dead Simple like mechanics in UDMF

Post by Korni27 »

I've been wondering if you can create Dead Simple like mechanics, where after killing for example 5 hell knights, the floor will lower. i already know how to make actions happen after picking up or killing a monster, but I was wondering if you can do it with multiple.
Posts: 1326
Joined: Sun Jul 21, 2019 8:54 am

Re: Dead Simple like mechanics in UDMF

Post by Jarewill »

You can do it with a script using ThingCount:

Code: Select all

#include "zcommon.acs"

Script 1 OPEN
    While(ThingCountName("HellKnight",0)>0) {Delay(1);}
    //Do stuff once all hell knights are dead
User avatar
Posts: 26403
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Dead Simple like mechanics in UDMF

Post by Enjay »

And, just to add to that, if you do it by tid (thing tag), then it doesn't even have to be all hell knights - just the ones that have the specified tag. In fact, the enemies with tag can be of different types too.

Return to “Mapping”