Script:random

From Arx Libertatis Wiki
Jump to navigation Jump to search

The random script command is used to randomly execute or skip the next command block. This command is equivalent to if ^rnd_100 >= <chance> except that <chance> is clamped to the range [0,100]. It can be combined with else to add a block that is only executed if the condition is false.

Usage

random <chance>

Context: Ignored

Parameters:

ParameterTypeDescription
chance number or variable The chance (in percent) to skip the next command or block