Set wild pokémon level dynamically.
Check settings.rb
for configuration.
relative
means that the minimum level is the difference between the average player's party level and the minimum level the pokémon actually can have. The same thing happens for the maximum level.
absolute
means that the minimum level is actually the minimum level the wild pokémon can have. Same for the maximum.
The whitelist is used to set specific parameters for a single map. The scaling will be always on on these maps. The syntax is the following: <map id> => [<type>, <minimum level>, <maximum level>]
.
<type>
can be "relative"
or "absolute"
.
WHITELIST = {
5 => ["relative", 3, 3],
81 => ["absolute", 5, 10]
}
The blacklist contains the map ids where the level scaling is never applicable, even if the scaling is enable.
BLACKLIST = [26, 11]
Information | Description |
---|---|
WildLevelScaling.relative(2,5) |
The wild pokémons will have a level between [party average level - 2, party average level + 5]. |
WildLevelScaling.absolute(10,20) |
The wild pokémons will have a level between [10, 20]. |
WildLevelScaling.disable |
Turn off the scaling. The pokémons will have the level as defined in the PBS file. |
WildLevelScaling.min |
Return the current minimum level setted. Nil if disabled. |
WildLevelScaling.max |
Return the current maximum level setted. Nil if disabled. |
WildLevelScaling.status |
Return: "rel" / "abs" or Nil if disabled. |
Installation: instructions.