Param


Calculates a parameter.

Sample

Reference

Command Description Arg1 Arg2 Arg3 Arg4 Arg5 Arg6
Param Parameter calculation Calculation formula

Calculation Formula

You can use variables by setting them in the Param sheet as bool, int ,float , or string.
This is basically the same as general programs written in C or C#.
If you are using a logical expression such as an ‘if’ statement, you must make sure that the result is a bool type value.
It will not consider an expression that returns the value of 0, as in point=0 in the C language, as being equivalent to ‘false’.

List of available operators:

Type Operators
Basic arithmetic operators + - / * % 
Comparison operators == != >= <= > < 
Unary operators ! - 
Brackets ( ) 
Logical operators && || 
Substitution operators = += -= *= /= %= 

Examples:
point_roboko+=1
point_roboko<=1
flag_roboko=true

Built-in Functions

Built-in functions can be used within calculation formulas.
If you have any additional requests for built-in functions, please contact us through Q&A.

Name Description Sample Sample description
Random(min,max) Random integer between min and max point=Random(1,6) Random integer between 1 and 6
RandomF(min,max) Random floating point number between min and max point=RandomF(0,1) Random floating point number between 0 and 1