setnum

Script Reference Set

setnum (name ; values) //Advanced

Used for : Generell.

Parameters :

- name - Name of a number variable.
- values - Number, other variables or calculations.

Description :

Sets a number variable. [Variables] can be used as parameters. You can also make calculations with the operators +, - , * and /. Multiplication and division before addition and subtraction. Example :

setnum (number ; [value1] + [valie2] * [value3])

If a + or a - is the first letter the current value of the variable will be used.

The additional operator : divides like / but rounds down.

When you output a number, it will be rounded. Internaly the number will be saved as the exact value.

There are predefined variables that cannot be altered except [mousex] and [mousey]. Altering these will move the position of the mouse cursor.