DM2 Actuators

* This document is still draft version and is subjected to be changed without any notify.

Summary

There'll be 128 kind of actuators at maximum.
And there'll have to be 1024 actuators in dungeon at maximum too.

Next table shows all kind of actuators found in DM2 PC version.

Type Description
&H01Activator, trap floor
&H03Activator, trap floor
&H04Activator, trap floor
&H07Activator, trap floor
&H08Trap shooter (Wall actuator)
Activator, trap floor (Floor actuator)
&H0ATrap shooter 2
&H0BCreature killer
&H0EItem shooter
&H12The END
&H15Activator, charged item watcher
&H16Activator, cross map
&H17Activator, 2 state wall switch
&H18Activator, push button wall switch
&H1AActivator, key hole
&H1DActivator, finite relay operation canceller
&H1EActivator, infinite tick generator
&H20Activator, infinite activator relay
&H21Activator, first arrival
&H22Activator, consumer (flying item)
&H23Item teleporter (flying item)
&H26Activator, missile explosion
&H27Cross scene
&H28?
&H2AActivator, alchove item trap
&H2CInfinite ornate animator
&H2DActivator, finite activator relay
&H2ECreature generator
&H30Shop exhibition
&H31Activator, work timer
&H32Activator, ornate animator
&H3ACreature animator
&H3BItem teleporter (placed item)
&H3CItem generator
&H3D?
&H3FShop panel
&H40Item reduction
&H41Ornate step animator
&H42Set creature facing direction
&H43?
&H44?
&H45Activator, long delay
&H46Activator, push button wall switch
&H47Item capture
&H49?
&H7EActivator, resuscitation

Activator, trap floor

Activates the target when you (Players; Creatures; Items) step into the floor.

For players/creatures: players/creatures should step into floor to be activated.
For items: an item should be placed at the floor to be activated.

  Value
1st word

---------0000001
0000000000000001

2nd word General 2nd Word form
3rd word Locator

Activator, trap floor

Activates the target when you (Players) step into the floor.

For players: players should step into floor to be activated.

  Value
1st word

---------0000011
0000000000000011

2nd word General 2nd Word form
3rd word Locator

Activator, trap floor

Activates the target when you (Items) step into the floor.

For items: an item should be placed at the floor to be activated.

  Value
1st word

TTNNNNNNN0000100
0000000000000100

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Activator, trap floor

Activates the target when you (Creature) step into the floor.

For creatures: an walking creature should step into floor to be activated.

  Value
1st word

---------0000111
0000000000000111

2nd word General 2nd Word form
3rd word Locator

Trap shooter

Spells and shoots a projectile on activation.

  Value
1st word

---TTTTTT0001000
0000000000001000

2nd word General 2nd Word form
3rd word Strength

Table: Spells

  Description
TTTTTT Type of spell
&H00 Fire
&H02 Volt
&H03 Harm non-material
&H04 Zo
&H06 Poison
&H07 Poison fog
&H09 Push entity
&H0A Pull entity
&H0D Dummy

Activator, trap floor

Activates the target when you step into the floor with or without specific item.

  Value
1st word

TTNNNNNNN0001000
0000000000001000

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Trap shooter 2

Spells and shoots two projectiles at single row on activation.

  Value
1st word

---TTTTTT0001000
0000000000001000

2nd word General 2nd Word form
3rd word Strength

Table: Spells

  Description
TTTTTT Type of spell
&H00 Fire
&H02 Volt
&H03 Harm non-material
&H04 Zo
&H06 Poison
&H07 Poison fog
&H09 Push entity
&H0A Pull entity
&H0D Dummy

The END

Game ends off on activation.

  Value
1st word

---------0010010
0000000000010010

2nd word General 2nd Word form
3rd word -

Activator, charged item watcher

Activates the target if you show the charged specific item.

  Value
1st word

TTNNNNNNN0010101
0000000000010101

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Activator, cross map

Activates the target on other map when you activate this actuator.

  Value
1st word

---MMMMMM0010110
0000000000010110

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
MMMMMM Target map #

Activator, 2 state wall switch

Activates the target when you turn on or turn off the wall switch.
Switch acts as a lever.

  Value
1st word

---------0010111
0000000000010111

2nd word General 2nd Word form
3rd word Locator

Activator, push button wall switch

Activates the target when you push the wall switch.
Switch acts as a push button.

  Value
1st word

---------0011000
0000000000011000

2nd word General 2nd Word form
3rd word Locator

Activator, key hole

Activates the target when you put in or put out the Key.

The Key depends on what ornate you select in General 2nd Word form.
And what the Key is'll be defined in GRAPHICS.DAT.

  Value
1st word

---------0011010
0000000000011010

2nd word General 2nd Word form
3rd word Locator

Activator, finite relay operation canceller

If you turn on this actuator by activator, it decrements cancel_count.
If you turn off this actuator by activator, it increments cancel_count.

If you decrement for 0, it will be 511.
If you increment for 511, it will be 0.

If cancel_count is 0, this actuator turn itself on.
If cancel_count is not 0, this actuator turn itself off.

Activation for "turn on/off" or "toggle" type of this actuator occurs if "turn on" this actuator and cancel_count be 0 after above operation.

* Sample script was seizured due to inaccurate representation for its behavior.

  Value
1st word

NNNNNNNNN0011101
0000000000011101

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNNNN Current cancel count

Activator, infinite tick generator

Activates the target when you activate this actuator, and it doesn't stop to work.

SUB ON_ACTIVATION()
    IF WAIT_TICK <> 0 THEN
        DO
            LAUNCH_ACTUATOR_TARGET
            WAIT WAIT_TICK
        LOOP
    END IF
END SUB

  Value
1st word

NNNNNNNNN0011110
0000000000011110

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNNNN Wait tick count between concurrent and next activation.
0 Doesn't work
From 1 to 511 It works

Activator, infinite activator relay

Activates the target when you activate this actuator

Value
1st word

---------0100000
0000000000100000

2nd word General 2nd Word form
3rd word Locator

Activator, first arrival

Activates the target when you have first arrival for the map.

  Value
1st word

---------0100001
0000000000100001

2nd word General 2nd Word form
3rd word Locator

Activator, consumer (flying item)

Activates when you knock the actuator with specified item.
Actuator teleports the item into itself.

  Value
1st word

TTNNNNNNN0100010
0000000000100010

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Item teleporter (flying item)

Activates when you throw and knock the actuator in the specified item.
Actuator teleports the item to the location which Locator points.

  Value
1st word

TTNNNNNNN0100011
0000000000100011

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Activator, missile explosion

Activates the target when you shoot the actuator by the specified spell.

  Value
1st word

---TTTTTT0100110
0000000000100110

2nd word General 2nd Word form
3rd word Locator

Table: Spells

  Description
TTTTTT Type of spell
&H00 Fire
&H02 Volt
&H03 Harm non-material
&H04 Zo
&H06 Poison
&H07 Poison fog
&H09 Push entity
&H0A Pull entity
&H0D Dummy

Activator, alchove item trap

Activator activates locator target when you take or place the specified item at alchove.

Inverse = On: Activator runs when you take out.
Inverse = Off: Activator runs when you place.

  Value
1st word

TTNNNNNNN0101010
0000000000101010

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Infinite ornate animator

This actuator reflects its switch status by controling animation status of its ornate image.

If switch status of this actuator is "on", it starts or continues to animate ornate image.
If switch status of this actuator is "off", it stop to animate ornate image.

  Value
1st word

---------0101100
0000000000101100

2nd word General 2nd Word form
3rd word -

Activator, finite activator relay

Activates the target when you activate this actuator, if relay_count is other than 0.

SUB ON_ACTIVATION()
    IF RELAY_COUNT <> 0 THEN
        RELAY_COUNT = RELAY_COUNT - 1
        LAUNCH_ACTUATOR_TARGET
    END IF
END SUB

  Value
1st word

NNNNNNNNN0101101
0000000000100000

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNNNN Remained relay_count

Creature generator

Actuator generates a specified creature when you activate this actuator.

  Value
1st word

--NNNNNNN0101110
0000000000100000

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNN Creature #

Shop exhibition

This actuator makes shop keeper exhibit the selected item, by shop panel actuator, at locator location.

  Value
1st word

---------0110000
0000000000110000

2nd word General 2nd Word form
3rd word Locator

Activator, work timer

At first activation, activator activates the target at locator, then timer of expire type starts. The period of timer is from timer count in tick unit.

At second activation, activator tests timer counter. if timer count doesn't expire, activation doesn't occur.

If timer count expires activator does same action described at first activation.

  Value
1st word

NNNNNNNNN0110001
0000000000110001

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNNNN Timer counter

Activator, ornate animator

Activator activates the target at locator (Swich status must be turned on), also it animates its ornate image once.

  Value
1st word

---------0110010
0000000000110010

2nd word General 2nd Word form
3rd word Locator

Item teleporter (placed item)

Activates when you place the specified item at the floor.
Actuator teleports the item to the location which Locator points.

If 1st word is 1111 1111 1011 1011, any item will be teleported on activation.

  Value
1st word

TTNNNNNNN0111011
0000000000111011

2nd word General 2nd Word form
3rd word Locator

Table: Item description

  Description
TT Item type
  &H0 WEAP
&H1 CLOT
&H2 MISC
&H3 POTI
NNNNNNN Item #
   

Shop panel

This actuator display merchandices and one of them can be selected to make shopkeeper exhibit the item.

Shop type is presented by delay value in 2nd word.

Creature # represents creature type of shop keeper.

  Value
1st word

--NNNNNNN0111111
0000000000111111

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNN Creature #

Ornate step animator

Actuator steps ornate image once in frame unit.

  Value
1st word

---------1000001
0000000001000001

2nd word General 2nd Word form
3rd word -

Activator, long delay

Activates the target if delay count expires (of course, it must be activated to launch).

Overlapped activation for this activator will be proceeded independently.

This actuator just transfers "activation" order from other actuator, even if this one is "turned off" by other one.

  Value
1st word

NNNNNNNNN0101101
0000000000100000

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNN Delay (from 0 to 511)

Activator, push button wall switch

Activates the target when you push the wall switch.
Switch acts as a push button.
Switch can be enabled/disabled. It is referenced at current switch state in General 2nd Word form.

  Value
1st word

---------1000110
0000000001000110

2nd word General 2nd Word form
3rd word Locator

Activator, resuscitation

Activates the target when you revive the hero.

  Value
1st word

--NNNNNNN1111110
0000000001111110

2nd word General 2nd Word form
3rd word Locator

Table: 

  Description
NNNNNNN Hero #