Strange lump problem
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
-
- Posts: 176
- Joined: Wed Mar 21, 2007 11:15 pm
- Location: Kali-FORnia
Strange lump problem
I made a lump.wad containing a MAPINFO lump. On map 11, I included a cyberdemonspecial, and a spidermastermindspecial, as well as a specialaction_lowerfloor.
There is a sector tagged 666. What I want to happen, is have that sector lower when both the cyberdemon and spider are dead.
But when the spider dies, the level ends.
There is a sector tagged 666. What I want to happen, is have that sector lower when both the cyberdemon and spider are dead.
But when the spider dies, the level ends.
- Penguinator
- Posts: 625
- Joined: Mon May 22, 2006 6:55 pm
- Location: Hell
-
- Posts: 176
- Joined: Wed Mar 21, 2007 11:15 pm
- Location: Kali-FORnia
Scripts aren't that complex, though I'd really recommend using something approaching proper spacing rather than none's mess. 
Try this:
Now just tag your sector(s) 666 and remove the MAPINFO that you created. As soon as all Cyberdemons and Spidermasterminds in the map are dead, the sectors will lower.
That wasn't so hard, was it?

Try this:
Code: Select all
#include "zcommon.acs"
script 666 OPEN {
if (!ThingCount(T_SPIDERMASTERMIND, 0) && !ThingCount(T_CYBERDEMON, 0)) {
Floor_LowerToLowest(666, 16);
}
delay(1);
restart;
}
That wasn't so hard, was it?
Code: Select all
script 1 open
{
while(thingcount(0,1)>0)
{
delay(35);
}
floor_lowertolowest(666,16);
}

-
- Posts: 176
- Joined: Wed Mar 21, 2007 11:15 pm
- Location: Kali-FORnia
And the funny part is, after I got to thinking, and trying out some other Doom as Hexen triggers, I realized that I'd rather go with it in that mode anyway. It would be insane not to take advantage of the wide range of options, especially since I made a bunch of vanilla doom maps that have all this elaborate stuff to give the appearance of complicated actions.
So yeah, I'll tackle scripts.
Though Graf Zahl, even without the two monsters for one sector thing, I couldn't get the spidermastermindspecial to perform a lower floor special action, it just ended the level regardless.
But I guess that's moot now.
So yeah, I'll tackle scripts.

Though Graf Zahl, even without the two monsters for one sector thing, I couldn't get the spidermastermindspecial to perform a lower floor special action, it just ended the level regardless.
But I guess that's moot now.