Due to the recent resurgence of spam, we have temporarily disabled user creation and page editing/creation as we resolve the issue.
Difference between revisions of "Number"
From Snapwiki
(Created page with "== Number == A Number variable can be set to a number with decimal places and used to control certain properties on other objects. {| class="wikitable" style="width: 60%;" !...") |
|||
Line 3: | Line 3: | ||
A Number variable can be set to a number with decimal places and used to control certain properties on other objects. | A Number variable can be set to a number with decimal places and used to control certain properties on other objects. | ||
− | {| class="wikitable" | + | == Details == |
− | + | {| class="wikitable" | |
+ | |- | ||
+ | |[[File:Number.PNG]]|| | ||
+ | '''Object''': Number | ||
+ | |||
+ | '''Category''': Integer | ||
+ | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {| class="wikitable" style="width: 60%;" | + | == Inputs == |
− | !''' | + | {| class="wikitable" style="width:60%;" |
+ | !colspan="3"|'''INPUTS''' | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Set (Number)'''||Set the Number to the value specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Add (Number)'''||Increase the Number by the amount specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Subtract (Number)'''||Decrease the Number by the amount specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Multiply (Number)'''||Set the Number to the product of its current value and the value specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Divide (Number)'''||Set the Number to the quotient from dividing the current value by the value specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Modulo (Number)'''||Set the Number to the remainder after dividing the current value by the value specified in the input's properties. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Min (Number)'''||Set the Number to the value specified in the input's properties if it is less than the current value. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Max (Number)'''||Set the Number to the value specified in the input's properties if it is greater than the current value. | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Input:]]||'''Random (Number)'''||Set the Number to a random value between the allowed minimum and maximum. | ||
|} | |} | ||
− | ;On Changed | + | |
+ | == Outputs == | ||
+ | {| class="wikitable" style="width:60%;" | ||
+ | !colspan="3"|'''OUTPUTS''' | ||
+ | |- | ||
+ | |[[File:.png|64px|link=Output:On Changed]]||'''On Changed'''||When the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables. | ||
+ | |} | ||
+ | |||
+ | |||
+ | == Properties == | ||
+ | {| class="wikitable" style="width: 60%;" | ||
+ | !colspan="3"|'''PROPERTIES''' | ||
+ | |- | ||
+ | |'''Property'''||'''Type'''||'''Description''' | ||
+ | |- | ||
+ | |'''Name'''||String||The name of this object. Rename an object to make it easy to identify. | ||
+ | |- | ||
+ | |'''Icon'''||Grid Picker||Icon of this object. Change the icon to make it easy to identify. | ||
+ | |- | ||
+ | |'''Initial Value'''||Number||The starting value for this variable. | ||
+ | |} |
Revision as of 2016-06-03T16:28:28
Contents
Number
A Number variable can be set to a number with decimal places and used to control certain properties on other objects.
Details
Object: Number Category: Integer |
Inputs
INPUTS | ||
---|---|---|
64px | Set (Number) | Set the Number to the value specified in the input's properties. |
64px | Add (Number) | Increase the Number by the amount specified in the input's properties. |
64px | Subtract (Number) | Decrease the Number by the amount specified in the input's properties. |
64px | Multiply (Number) | Set the Number to the product of its current value and the value specified in the input's properties. |
64px | Divide (Number) | Set the Number to the quotient from dividing the current value by the value specified in the input's properties. |
64px | Modulo (Number) | Set the Number to the remainder after dividing the current value by the value specified in the input's properties. |
64px | Min (Number) | Set the Number to the value specified in the input's properties if it is less than the current value. |
64px | Max (Number) | Set the Number to the value specified in the input's properties if it is greater than the current value. |
64px | Random (Number) | Set the Number to a random value between the allowed minimum and maximum. |
Outputs
OUTPUTS | ||
---|---|---|
64px | On Changed | When the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables. |
Properties
PROPERTIES | ||
---|---|---|
Property | Type | Description |
Name | String | The name of this object. Rename an object to make it easy to identify. |
Icon | Grid Picker | Icon of this object. Change the icon to make it easy to identify. |
Initial Value | Number | The starting value for this variable. |