Tutorial 3
Controlling faded lights

RTS Online: Tutorial 4
Triggering multiple line types
Start
RTS Online Start


Using a trigger to trigger multiple line types:
This trigger function can take special events to a whole new level. In DOOM, you can only trigger one line type function with a line trigger, like opening a door.

Using RTS to trigger a line type, you can use literally dozens of different line types with a single event.

The best example of this is QDOOM's E3M1, near the exit. There is a super detailed 3D elevator that controlled by a radiustrigger which activates 7 custom line types to move all the different parts of the elevator in sync. Once QDOOM is released, you can dig into it and see how it all works for yourself. :)

In the meantime, let's tear up DOOM2 MAP01 once more:
-open the door to the blue computer room
-lower the platforms in the blue room
-open the secret door to the green armor
-open the secret door to the rocket launcher
-open the door that leads to the outside area
-open the exit room door
-open the secret door South of the Imp cage
-lower the large, square lights West of the Imp cage
Note that you cannot use activate_linetype for sectors that have no trigger number. You will have to use sectorv for these. So in the tutorial below, we will use a combination of both sectorv and activate_linetype, since we are using a normal DOOM2 map.

Again, the tagged_immediate function is there for completeness, but is not required because of the radiustrigger's radius.

1) add the start_map function:
-use e1m1 for DOOM, and map01 for DOOM2 -this defines what map the following radiustrigger is applied to, and the start of this map block
2) add the radiustrigger function:
-set x=0, y=0, and radius=-1, leave high and low z blank -this puts the triggers center at 0,0, and -1 means the radius covers the entire map, and defines the start of this trigger
3) add the tagged_immediate function:
-this makes the trigger active when the map starts
4) add the sectorv functions:
-this set is for sectors that have no trigger number assigned to them

-NOTE ABOUT HEIGHT VALUES: negative height make the ceiling go up, but make the floor go down, positive height make the ceiling go down, but make the floor go up

-set sector number=55, height=-68, and select ceiling -this instantly raises sector 55's ceiling up 68 units, to 4 units below the surrounding ceiling, this is the door that leads to the blue computer room

-hit the Clear Fields button and add the rest of the sectorv functions with the following attributes:
sector=37, height=-68, ceiling
(instantly open the exit door)

sector=29, height=-60, ceiling
(instantly open the secret door South of the Imp cage)

sector=20, height=-32, floor
(instantly lowers the West large square tech light floor)

sector=40, height=-32, floor
(instantly lowers the East large square tech light floor)

5) add the activate_linetytpe functions:
-set linetype=103, and sector tag=4, this triggers the "open door" line trigger, and targets the secret door to the green armor

-hit the Clear Fields button and add the rest of the activate_linetype functions with the following attributes:
linetype=102, sector tag=3
(this lowers the platforms in the blue computer room)

linetype=2, sector tag=6
(this opens the secret door to the rocket launcher)

linetype=103, sector tag=2
(this opens the secret door to the outdoor area)
6) add the end_radiustrigger function:
-this defines the end of this trigger
7) add the end_map function:
-this defines the end of this map block
Your code output should look like this: