range
Jump to navigation
Jump to search
Overview
User-specified interval for an option.
Value Format
Value | Description |
---|---|
X | {X} |
X..Y | [X, Y] |
X-Y | |
> X | (X, +∞) |
>= X | [X, +∞) |
< X | (-∞, X) |
<= X | (-∞, X] |
Examples
Level is greater than 10:
lvl > 10
Zeny amount is equal to 5000:
zeny 5000
Job level is between 10 and 15:
jlvl 10..15
API
Features and plugins MUST use Utils::inRange(<current value>, <option contents>) to check any kind of options with range values.
Examples
inRange($char->{hp}, $config{someHpRangeOption})