random

From Arx Libertatis Wiki
Revision as of 18:36, 2 June 2022 by Ds (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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