When nothing is connected to a Number input then it will default to 0. Number logic can be used to turn number inputs into a boolean output (I.E. While booleans are typically used like a light switch, numbers can do a myriad of things, such as measure the speed of a vehicle or set the throttle of an engine. While booleans can only be true or false, numbers are either constants or variables, typically the latter, and can be considered 'analog'. Numbers can be any positive or negative number (besides things like √-1 but you wouldn't be silly enough to try to break the game right? You can't have operators like + * % ÷ in a number anyways). When nothing is connected to a Boolean input it will default to false, or 'off'. The states of this kind of logic can also be referred to as: true or false, "sends/receives a signal" or "no signal", high or low, and possibly more that describes whether a signal is active or not.
When a component receives a signal it usually activates, changes state, or does something else special depending on the component.
As the name suggests, Boolean has one of two states: on or off, and can be considered 'digital'. an), which is referred to as On/Off in Stormworks.Logic typesThe most basic kind of logic is Boolean (Bool When working with microcontrollers it's possible to modify them in the properties panel by clicking the blue and white button to the right of its name, allowing you to make changes without having to delete them and putting them down again. In addition to logic nodes, some logic may have properties which can be changed by clicking on them and using the panel on the left of the screen (physical logic gates need to be selected using the Select tool). Right: a single Number output connected to multiple inputs, including a Threshold gate that activates an indicator light when the number is in a certain range. Left: multiple Boolean outputs connected to a single input using an OR gate. When connecting nodes together you can drag from the output or from the input, either will make a connection, and holding CTRL while clicking will allow making multiple connections. When hovering the mouse over any logic node any node that it is connected to will be highlighted in white. A colored line is drawn from the output node to any input nodes it is connected to along with an animated arrow pointing to the outputs. On the contrary, a single output can send signals to an unlimited number of inputs. Inputs are represented by colored circles, and outputs are represented by dots. Players with color blindness can change the color of the nodes under Options►General►Accessibility►Color Palette, but this guide is going to be referencing the default colors where applicable.Īll logic uses nodes which come in two varieties: INput and OUTput. There are two kinds of logic commonly used in Stormworks: On/Off and Number, represented with red and green colors respectively. Before getting to the logic gates there are a few rules that apply to pretty much all logic and some useful terminology that is good to know.