Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Ending Level When Monsters Dead
 
Author
All times are GMT. The time now is 14:43. Post New Thread    Post A Reply
22Alpha22
Green Marine


Posts: 48
Registered: 11-09


How would I in Zdoom, cause the level to end when a group of monsters, sharing the same TID are completely eradicated? I tried using a monster special, but it ended the level when one monster of the group was killed.

Old Post 04-01-10 08:40 #
22Alpha22 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


Use ACS.
ThingCount
ThingCountName

Old Post 04-01-10 08:46 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
22Alpha22
Green Marine


Posts: 48
Registered: 11-09


Pardon my ignorance, but how would I setup the script. I map for Zdoom frequently, but don't use ACS very often. When I do, it is for simple things like changing ceiling and floor heights.

Old Post 04-01-10 09:02 #
22Alpha22 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


First example on ThingCount:
code:
script 1 OPEN { While(ThingCount(T_BARON, 10) > 0) Delay(35); Floor_LowerToLowest(15, 20); }


Obviously, replace Floor_LowerToLowest by Exit_Normal(0). And also obviously adapt the ThingCount parameters are needed for your maps. If, say, the monsters are varied (a group of cacos, pinkies, and imps) but have all a TID of 66, then use ThingCount(T_NONE, 66).

If all the monsters are of the same type, and there are no other monsters of that type in the map, and this is a monster type with the BOSSDEATH flag, you can also use the SpecialAction MAPINFO keyword.

Old Post 04-01-10 10:34 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Karnizero
Junior Member


Posts: 180
Registered: 07-08



Gez said:
First example on ThingCount:
code:
script 1 OPEN { While(ThingCount(T_BARON, 10) > 0) Delay(35); Floor_LowerToLowest(15, 20); }


Obviously, replace Floor_LowerToLowest by Exit_Normal(0). And also obviously adapt the ThingCount parameters are needed for your maps. If, say, the monsters are varied (a group of cacos, pinkies, and imps) but have all a TID of 66, then use ThingCount(T_NONE, 66).

If all the monsters are of the same type, and there are no other monsters of that type in the map, and this is a monster type with the BOSSDEATH flag, you can also use the SpecialAction MAPINFO keyword.



FORGET IT, lol

Last edited by Karnizero on 04-01-10 at 11:35

Old Post 04-01-10 11:30 #
Karnizero is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Kappes Buur
Member


Posts: 497
Registered: 11-02



Karnizero said:FORGET IT, lol

Why forget it. It's easy enough.

@ 22Alpha22
To help you out, here is a small example map
http://files.drdteam.org/index.php/...LZQ/all-gone.7z

Last edited by Kappes Buur on 04-02-10 at 05:20

Old Post 04-02-10 00:10 #
Kappes Buur is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
AzaryDoom2020
Mini-Member


Posts: 81
Registered: 03-10


Thanks for everything! I will try it now!

Old Post 04-07-10 12:26 #
AzaryDoom2020 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 14:43. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Ending Level When Monsters Dead

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory