Implementing logical puzzles for Stendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Storyteller
imported>Storyteller
Adding and defining different kinds of switches.
Line 27: Line 27:
: default: true
: default: true
: An entity only reacts to input, if it is enabled. For example a switch will ignore all player actions, if it is disabled. A door will ignore the state of its associated switches, if it is disabled. Entities should indicate disabled state visibly and/or audibly.
: An entity only reacts to input, if it is enabled. For example a switch will ignore all player actions, if it is disabled. A door will ignore the state of its associated switches, if it is disabled. Entities should indicate disabled state visibly and/or audibly.

=== Pressure plate ===
A pressure plate is a tile with a switch, that gets triggered when a character steps on it.

=== Wall switch ===
A wall switch is a switch assembled to a wall. It can have different forms, such as a huge lever or a pushbutton.

=== Door ===

A door is a barrier that prevents player from crossing unless it is ''active''.

=== Moveable block ===

=== Moveable block receiver ===


=== Timer ===
=== Timer ===
Line 63: Line 49:
: required
: required
: The new value of the property of the target entity
: The new value of the property of the target entity

=== Switches ===
* Different kinds of switches and objects which contain a switch mechanism.

==== Pressure plate ====
A pressure plate is a tile with a switch, that gets ''active'' when a player steps on it.

==== Weight plate ====
A weight plate is a tile with a switch that only gets ''active'' when the exact weight is put on it.

==== Weights ====
Weights are objects with a special weight. They exist in different sizes with different weight and have to be put on ''weight plates'' to activate them.

==== Wall switch ====
A wall switch is an entity with a switch mechanism, assembled to a wall. It can have different forms, such as a huge lever or a pushbutton.

==== Moveable block ====
A moveable block can be pushed or dragged on the floor and fits to a ''moveable block receiver''.

==== Moveable block receiver ====
A movable block receiver is an entity set on the floor with a switch mechanism that gets ''active'' when a ''moveable block'' is pushed on it.

=== Passive Entities ===
* These entities don't contain a switch mechanism itself, but are affected by one.

==== Door ====
A door is a barrier that prevents players from crossing unless the switch for opening it is ''active''.


== Switch Mechanisms ==
== Switch Mechanisms ==