Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

# Triggers/Category Math

Jump to: navigation, search

## Arithmetic

### Arithmetic (Integer)

• Function. Returns the addition, subtraction, multiplication or division of the specified integer values.

### Clamp (Integer)

• Action. Adjust the value to make sure it stays within the provided bounds.

### Arithmetic Multiple (Integer)

• Function. Returns the addition, subtraction, multiplication or division of the specified integer values in multiple instances.

### Arithmetic (Real)

• Function. Returns the addition, subtraction, multiplication or division of the specified real values.

### Clamp (Real)

• Action. Adjust the value to make sure it stays within the provided bounds.

### Arithmetic Multiple (Real)

• Function. Returns the addition, subtraction, multiplication or division of the specified real values in multiple instances.

### Ceiling (Real)

• Function. Returns the smallest value that is not less than the argument.

### Ceiling (Integer)

• Function. Returns the smallest value that is not less than the argument.

### Cycle

• Function. Increments an integer variable by 1, but keeps it within a given range. If this increment causes the variable to exceed the Max value, the variable is reset to the Min value.

### Floor (Real)

• Function. Returns the largest value less than or equal to the specified number.

### Floor (Integer)

• Function. Returns the largest value less than or equal to the specified number.

### Log2 (Real)

• Function. Returns the log base 2 of a number.

### Log2 (Integer)

• Function. Returns the log base 2 of a number.

### Modulo (Real)

• Function. Uses real values. Returns the remainder after the dividend has been divided by the divisor.

### Modulo (Integer)

• Function. Uses integer values. Returns the remainder after the dividend has been divided by the divisor.

### Power (Real)

• Function. Returns a value raised to a given power or exponent.

### Pow2 (Real)

• Function. Returns 2 to the power of a value.

### Pow2 (Integer)

• Function. Returns 2 to the power of a value.

### Power (Integer)

• Function. Returns a value raised to a given power or exponent.

### Round (Real)

• Function. Returns the value rounded to zero decimal places.

### Round (Integer)

• Function. Returns the value rounded to zero decimal places.

### Square Root (Real)

• Function. Returns the square root of a number.

### Square Root (Integer)

• Function. Returns the square root of a number.

### Trunc (Real)

• Function. Strips off the fractional portion of a real.

### Trunc (Integer)

• Action. Strips off the fractional portion of a real.

## Conditionals

### Absolute Value (Real)

• Function. Returns the value of the real without regard to the sign of the real.

### Absolute Value (Integer)

• Function. Returns the value of the integer without regard to the sign of the integer.

### Maximum (Real)

• Function. Returns the highest of the two real values specified.

### Maximum (Integer)

• Function. Returns the highest of the two integer values specified.

### Minimum (Real)

• Function. Returns the lowest of the two real values specified.

### Minimum (Integer)

• Function. Returns the lowest of the two integer values specified.

## Random

### Random Angle

• Function. Returns a random angle between 0 and 360 (inclusive).

### Random Real

• Function. Returns a random real between the specified values (inclusive).

### Random Integer

• Function. Returns a random integer between the specified values (inclusive).

### Random Percent

• Function. Returns a random percentage between 0 and 100 (inclusive).

## Trigonometry

### Arccosine

• Function. Returns the arccosine of a number. Allowed range is -1 to 1. The returned value is given in degrees.

### Arcsine

• Function. Returns the arcsine of a number. Allowed range is -1 to 1. The returned value is given in degrees.

### Arctangent From Value

• Function. Returns the arctangent of a number. The returned value is given in degrees.

### Arctangent From Deltas

• Function. Returns the arctangent of a set of X and Y deltas. The returned value is given in degrees.

### Cosine

• Function. Returns the cosine of an angle. The angle should be specified in degrees.

### Sine

• Function. Returns the sine of an angle. The angle should be specified in degrees.

### Tangent

• Function. Returns the tangent of an angle. The angle should be specified in degrees.