Difference between revisions of "range"

From OpenKore Wiki
Jump to navigation Jump to search
(By the way, there are no jlvl option in openkore trunk.)
(No difference)

Revision as of 10:10, 17 September 2012

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})