Button: Difference between revisions

From WonderWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''Buttons''' come in different colors. The Button that is the same color as a [[Gates|Gate]] opens it.
'''Buttons''' are the triggers of certain kinds of events in Wonderland. They come in different colors, and the button that is the same color as a [[Gates|Gate]] opens it.
Buttons have many different colors and shapes. In [[Wonderland Adventures]] games a button can have 4 different colors with 4 subcolors for them.
In WA Editor they don't open just gates,they activate/deactivate all objects with matching ID.
Is a very simple way to calculate buttons color ID:
500+Color*5+SubColor=ID


Here are a various of buttons from [[Wonderland Adventures]].
== In the Classic Trilogy ==
In the [[Classic Trilogy]], there are three kinds of buttons:
* Square buttons. Once pressed, these buttons open the gate and it will stay open, regardless of the gate's current state.
* Round buttons. They will open the gate when pressed, but will close it again when unpressed.
* Star buttons. Once pressed, they will open the gate for a certain amount of time.


[[File:Buttons_in_wa.PNG]]
The buttons come in 7 colors: purple, yellow, green, blue, red, indigo, and white. Additionally, there are two special button colors that deactivate conveyors. These look the same, but control two separate sets of conveyors.


== In Wonderland Adventures ==
=== Colored Buttons ===
[[File:Buttons_in_wa.PNG|200px|thumb|right|A variety of buttons in Wonderland Adventures.]]
In [[Wonderland Adventures]], buttons come in five kinds:
* Square buttons. Once pressed, these buttons open the gate and it will stay open, regardless of the gate's current state.
* Round buttons. They will open the gate when pressed, but will close it again when unpressed.
* Star buttons. Once pressed, they will open the gate for a certain amount of time.
* Diamond buttons. When pressed they will toggle the gate's state. These buttons can be pressed any number of times.
* DiamondOnce buttons. When pressed they will toggle the gate's state, but can be pressed only once.


{{stub}}
Buttons also come in 14 colors, of which up to 4 can be assigned to one: red, orange, yellow, green, blue, indigo, purple, white, rainbow, stone, forest, metal, fire, and mushroom. These colors are numbered 0-13 in the level editor.
 
==== Functions ====
Unlike in the Classic Trilogy, colored buttons in Wonderland Adventures are not only used to open gates: they can also open or close [[cages]], change the state of [[bridges]], and move [[transporters]].
 
==== SubColors ====
Besides the 14 colors available for button systems, each can also be assigned a certain SubColor. SubColors, despite their names, are not actual colors but numerical values from 0 to 4. This feature allows you to construct up to 70 button-powered systems without them being related to each other.
 
==== IDs ====
Buttons, when pressed, send a [[CMD|command]] to [[activation|activate or deactivate]] a gate with a certain [[ID]], which is determined by its color and subcolor. The formula to calculate a gate's color ID is 500 + Color × 5 + SubColor.<ref>[http://www.midnightsynergy.com/adventures/editor/tutorial3.htm Editor Manual]</ref> Going by this formula, a yellow gate (color 2) with subcolor 3 would have the ID 500 + 2 × 5 + 3 = 513, and a stone gate (color 9) with subcolor 1 would have the ID 500 + 9 × 5 + 1 = 546.
 
The same formula can be used on buttons to find out the ID that a certain button color refers to. This allows you to have, for example, an orange button that will activate a gold star.
 
==== ColX2Y Buttons ====
ColX2Y buttons are used to change a gate's color and subcolor. They come in the same types that normal buttons come in: Square, Round, Star, Diamond and DiamondOnce.
 
==== Rotators ====
Rotator buttons change the direction of transporters and [[springs]]. They look like round buttons but function as square buttons: they will rotate the transporter or spring and it will remain rotated.
 
=== General Command Buttons ===
General Command buttons (abbreviated GCs) are invisible buttons that can send any type of command. {{#ifexist: CMD|The full list of commands can be found [[CMD|here]].|}}
 
== Button Priority ==
Buttons have different priorities. One has to be very careful when designing levels that use buttons of the same color but of different kinds. For example, a square button will keep a gate open, but once something presses and leaves a round button that is responsible for the same gate, it will close.
 
== References ==
<references />
[[Category:Tiles]]
[[Category:Tiles]]

Revision as of 13:09, 19 April 2011

Buttons are the triggers of certain kinds of events in Wonderland. They come in different colors, and the button that is the same color as a Gate opens it.

In the Classic Trilogy

In the Classic Trilogy, there are three kinds of buttons:

  • Square buttons. Once pressed, these buttons open the gate and it will stay open, regardless of the gate's current state.
  • Round buttons. They will open the gate when pressed, but will close it again when unpressed.
  • Star buttons. Once pressed, they will open the gate for a certain amount of time.

The buttons come in 7 colors: purple, yellow, green, blue, red, indigo, and white. Additionally, there are two special button colors that deactivate conveyors. These look the same, but control two separate sets of conveyors.

In Wonderland Adventures

Colored Buttons

A variety of buttons in Wonderland Adventures.

In Wonderland Adventures, buttons come in five kinds:

  • Square buttons. Once pressed, these buttons open the gate and it will stay open, regardless of the gate's current state.
  • Round buttons. They will open the gate when pressed, but will close it again when unpressed.
  • Star buttons. Once pressed, they will open the gate for a certain amount of time.
  • Diamond buttons. When pressed they will toggle the gate's state. These buttons can be pressed any number of times.
  • DiamondOnce buttons. When pressed they will toggle the gate's state, but can be pressed only once.

Buttons also come in 14 colors, of which up to 4 can be assigned to one: red, orange, yellow, green, blue, indigo, purple, white, rainbow, stone, forest, metal, fire, and mushroom. These colors are numbered 0-13 in the level editor.

Functions

Unlike in the Classic Trilogy, colored buttons in Wonderland Adventures are not only used to open gates: they can also open or close cages, change the state of bridges, and move transporters.

SubColors

Besides the 14 colors available for button systems, each can also be assigned a certain SubColor. SubColors, despite their names, are not actual colors but numerical values from 0 to 4. This feature allows you to construct up to 70 button-powered systems without them being related to each other.

IDs

Buttons, when pressed, send a command to activate or deactivate a gate with a certain ID, which is determined by its color and subcolor. The formula to calculate a gate's color ID is 500 + Color × 5 + SubColor.[1] Going by this formula, a yellow gate (color 2) with subcolor 3 would have the ID 500 + 2 × 5 + 3 = 513, and a stone gate (color 9) with subcolor 1 would have the ID 500 + 9 × 5 + 1 = 546.

The same formula can be used on buttons to find out the ID that a certain button color refers to. This allows you to have, for example, an orange button that will activate a gold star.

ColX2Y Buttons

ColX2Y buttons are used to change a gate's color and subcolor. They come in the same types that normal buttons come in: Square, Round, Star, Diamond and DiamondOnce.

Rotators

Rotator buttons change the direction of transporters and springs. They look like round buttons but function as square buttons: they will rotate the transporter or spring and it will remain rotated.

General Command Buttons

General Command buttons (abbreviated GCs) are invisible buttons that can send any type of command. The full list of commands can be found here.

Button Priority

Buttons have different priorities. One has to be very careful when designing levels that use buttons of the same color but of different kinds. For example, a square button will keep a gate open, but once something presses and leaves a round button that is responsible for the same gate, it will close.

References