Kogama Wiki
Frisk (talk | contribs)
m (Revert consecutive edits by 68.183.37.227 (talk) (gphelp:GRASP revert) Reason: Vandalism)
Tag: Rollback
Line 1: Line 1:
  +
This [[Tutorial: Logic Systems|logic tutorial]] will show you how to create a button that alternates between 4 outputs. Only one of the four outputs is active at a time.
{{PlayerInfoBox
 
  +
Required Logic Cubes:
| name = {{PAGENAME}}
 
  +
* [[And Cube|AND Box]] (x3)
| image =
 
  +
* [[Negate Cube|Negate Box]] (x5)
| Live = []
 
  +
* [[Toggle Cube|Toggle Box]] (x2)
| BR =
 
| Friends =
 
}}
 
'''{{PAGENAME}}''' hakerzy grozni boje sie ich.
 
   
==fajni ludzie==
+
== Construction ==
  +
To construct the system, recreate the logic circuit as seen in the image. All important connections and boxes are in view; you may ignore any wires that go off-screen. [[File:4StateButton2.png|400px]]
{{Main|}}
 
[[File:]]
 
aethus / micai / GFHUJ / al1en / kubus123pl
 
   
  +
The cubes have been highlighted and numbered for convenience. Cubes outlined in orange are negate boxes, cubes outlined in purple are toggle boxes, cubes outlined in green are AND boxes, and the cubes outlined in black are the outputs.
[[Category:Founders]]
 
  +
[[Category:Moderators]]
 
  +
'''Input Cube:''' Connect the negate cube marked "Input" to a [[pressure plate]] or target trigger.<br>
  +
'''Numbered Cubes:''' The cubes numbered 1-4 provide the system's output. The cube marked #1 is the first to be activated by the system, the cube marked #2 is the second to be activated, and so on.<br>
  +
'''Outputs:''' In the example image, the 4 output cubes are [[Skybox Cube|skyboxes]]. Each time the system is activated (by, say, a pressure plate), a different skybox is turned on. You can replace the skyboxes with other cubes to fit your game's needs.
  +
  +
== Usage ==
  +
This system allows for a pressure plate or target trigger to alternate between 4 different outputs, with only one output active at a time. This 4-state system can be used for a variety of things:
  +
* A button that switches between 4 different skyboxes (as seen in the image)
  +
* A button that activates 4 different [[Cube Model Hider|model enablers]], with only one model visible at a time (or only one model hidden at a time)
  +
* A simple scoreboard or counter that ranges from 1-4 or 0-3 (depending on the [[Text|text boxes]] you use)

Revision as of 15:39, 20 April 2019

This logic tutorial will show you how to create a button that alternates between 4 outputs. Only one of the four outputs is active at a time. Required Logic Cubes:

Construction

To construct the system, recreate the logic circuit as seen in the image. All important connections and boxes are in view; you may ignore any wires that go off-screen. 4StateButton2.png

The cubes have been highlighted and numbered for convenience. Cubes outlined in orange are negate boxes, cubes outlined in purple are toggle boxes, cubes outlined in green are AND boxes, and the cubes outlined in black are the outputs.

Input Cube: Connect the negate cube marked "Input" to a pressure plate or target trigger.
Numbered Cubes: The cubes numbered 1-4 provide the system's output. The cube marked #1 is the first to be activated by the system, the cube marked #2 is the second to be activated, and so on.
Outputs: In the example image, the 4 output cubes are skyboxes. Each time the system is activated (by, say, a pressure plate), a different skybox is turned on. You can replace the skyboxes with other cubes to fit your game's needs.

Usage

This system allows for a pressure plate or target trigger to alternate between 4 different outputs, with only one output active at a time. This 4-state system can be used for a variety of things:

  • A button that switches between 4 different skyboxes (as seen in the image)
  • A button that activates 4 different model enablers, with only one model visible at a time (or only one model hidden at a time)
  • A simple scoreboard or counter that ranges from 1-4 or 0-3 (depending on the text boxes you use)