range

From OpenKore Wiki
Revision as of 10:10, 17 September 2012 by EternalHarvest (talk | contribs) (By the way, there are no jlvl option in openkore trunk.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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})