Dungeon Master - Chaos Strikes Back
Actuator Documentation
All the pushbuttons, pressure pads, counters, etc. have the same format. Also see Introduction to Actuators. But they behave very differently because of special cases in the code. Here I have tried to document the behaviour of the various actuators by drawing a sort of 'flowchart' for the code that processes each type of actuator.
Pushbuttons are very complex....they implement all sorts of seemingly different kinds of objects in the dungeon. A Wall Switch operated by an Empty Hand. A Torch Holder. A Keyhole. A wall Niche that is operated by removing a Worm Slice. All are examples of 'Pushbuttons'. So the documentation is divided into several basic types:

- Type 1 -A Simple Pushbutton...Diagram ...and ... Description
- Type 2 - A Hand-Operated PushButton... Diagram...and...Description
- Types 3 and 4 - Pushbuttons operated by special objects...Diagram...and...Description
- Type 12 - Gift from God. If empty hand and last on list then rotate and give gift....Diagram
- Type 16 - Swap Object Pushbutton... Diagram...and...Description

Most of the pushbuttons utilize a common function (named QueueSwitchAction) to queue the resulting action.
The Pressure Pad actuator is quite simple in structure compared to Pushbuttons. True, there are eight different varieties of Pressure Pad, each operated by a different kind of action or Object. But as the diagram indicates, these different types only change how it is decided whether the Pressure Pad has been activated and the rest of the processing is identical for all types.

- Pressure Pad...General Diagram...and Particular Diagrams...and...Description

Then there are the actuators that perform special functions. They are all actuated by timer messages rather than directly by party or monster actions.

- Type 5 - And/Or Gate...Diagram...and...Description
- Type ?? - Counter...Diagram...and...Description
- Type ?? - Monster Generator...Diagram...and...Description

Paul Stevens
BACK