Integer
The Integer node is a simple utility node that allows you to input an integer value and pass it to other nodes in your spell. It is useful when you need to provide a specific integer value as an input to another node.Inputs
a(integer, default: 0): The integer value to be passed through the node.
Outputs
result(integer): The input integer value, passed through unchanged.
Configuration
This node has no configuration options.Usage
- Add an Integer node to your spell.
- Connect the
resultoutput to the input of the node that requires an integer value. - Set the value of the
ainput to the desired integer.
Example
Suppose you have a spell that generates a random number between 0 and a maximum value. You can use the Integer node to provide the maximum value:- Add a Random Number node to your spell.
- Add an Integer node to your spell.
- Connect the
resultoutput of the Integer node to themaxinput of the Random Number node. - Set the
ainput of the Integer node to the desired maximum value, e.g., 100.
Best Practices
- Use the Integer node whenever you need to input a specific integer value into your spell.
- Consider renaming the node to something more descriptive of its purpose in your spell, e.g., “Max Random Value” or “Number of Items”.
