Implementing logical puzzles for Stendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Storyteller Adding and defining different kinds of switches. |
imported>Storyteller Adding automatic doors. |
||
| Line 80: | Line 80: | ||
* These are different mechanisms for switches. ''Pushing'' is to understand as ''triggering'', as the mechanisms work with different kind of switches, not only with Push-Buttons. |
* These are different mechanisms for switches. ''Pushing'' is to understand as ''triggering'', as the mechanisms work with different kind of switches, not only with Push-Buttons. |
||
=== Tap-On Switch === |
==== Tap-On Switch ==== |
||
Tap-Switch, which is ''active'' when pushed continuously and ''inactive'' when released. |
Tap-Switch, which is ''active'' when pushed continuously and ''inactive'' when released. |
||
=== Toggle Switch === |
==== Toggle Switch ==== |
||
On/Off-Switch, which is ''active'' when pushed and stays ''active'' after releasing. Gets ''inactive'' when pushed again. |
On/Off-Switch, which is ''active'' when pushed and stays ''active'' after releasing. Gets ''inactive'' when pushed again. |
||
=== Linked-Toggle Switch === |
==== Linked-Toggle Switch ==== |
||
On/Off-Mechanism, works like a Toggle Switch, but has two seperated but linked switches which affects each other. One of the linked switches (the On-Switch) is ''inactive'', the other one (the Off-Switch) ''active'' by default. When switching the On-Switch to ''active'', the Off-Switch switches automatically to ''inactive''. Only the ''inactive'' switch can be pushed, pushing the ''active'' switch again has no effect. |
On/Off-Mechanism, works like a Toggle Switch, but has two seperated but linked switches which affects each other. One of the linked switches (the On-Switch) is ''inactive'', the other one (the Off-Switch) ''active'' by default. When switching the On-Switch to ''active'', the Off-Switch switches automatically to ''inactive''. Only the ''inactive'' switch can be pushed, pushing the ''active'' switch again has no effect. |
||
=== Multi Switch === |
==== Multi Switch ==== |
||
More-way-switch, is ''inactive'' in the default setting and can be pushed in different directions to change the ''output number''. |
More-way-switch, is ''inactive'' in the default setting and can be pushed in different directions to change the ''output number''. |
||
=== Incremental Switch === |
==== Incremental Switch ==== |
||
More-way-switch, is ''inactive'' in the default setting and increases the ''output number'' by 1, every time when pushed. After reaching the maximum ''output number'' it switches to ''inactive'' again. |
More-way-switch, is ''inactive'' in the default setting and increases the ''output number'' by 1, every time when pushed. After reaching the maximum ''output number'' it switches to ''inactive'' again. |
||
=== Delay-On Switch === |
==== Delay-On Switch ==== |
||
Time-delayed switch, delays the time before switching to ''active'' after pushing. |
Time-delayed switch, delays the time before switching to ''active'' after pushing. |
||
=== Delay-Off Switch === |
==== Delay-Off Switch ==== |
||
Time-delayed switch, switches immediately to ''active'' when pushed, but switches back to ''inactive'' after the delay. |
Time-delayed switch, switches immediately to ''active'' when pushed, but switches back to ''inactive'' after the delay. |
||
== Advanced mechanisms == |
|||
* These mechanisms contain more complex elements than a single switch. |
|||
=== Automatic entities === |
|||
* Automatic entities do some actions without being triggered by the player. |
|||
==== Delayed Time Door ==== |
|||
Automatic door, at default it can be opened, but after a player passed it, the door stays locked for a specific time and unlocks itself after this time again. |
|||
==== Set Time Door ==== |
|||
Automatic door, has individually set times for being open or closed, checking the server time. |
|||
==== Date Door ==== |
|||
Automatic door, opens only at specific dates, set to ''single time'' (only opens at the set dates), ''repeating yearly'' (opens at the set dates every year again), ''repeating weekly'' (opens for example every saturday) or ''repeating monthly'' (opens for example every third friday in a month). Also has optional time parameters like the ''Set Time Door'' to specify the opening and closing times even more exactly. |
|||
== Backend implementation == |
== Backend implementation == |
||