Template:Set drops vars

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:45, 17 October 2024 (Created page with "{{#invoke:Set drops vars|main}}<noinclude>{{/doc}}</noinclude>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Set drops vars/doc. [edit] [history] [purge]
Template:Set drops vars invokes function main in Module:Set drops vars using Lua.

This template is used to set drops variables used by {{DropsLine}} to determine the levels associated with the drop version.

The variables are of the form DropLevel_{type}_{version} and the values are a comma separated list of levels. All values will also be set on the DEFAULT version.

These variables must be defined for any version declared in a drop table template in order for the drop to store the associated level.

Params

  • type - the type of drop, for example combat or farming
  • version - comma separated list of drop versions the levels apply to
  • level - comma separated list of levels that apply to this version

Example

Example calling the template multiple times:

{{Set drops vars|type=farming|version=Regular|level=10}}
{{Set drops vars|type=farming|version=Diseased|level=32}}

Sets the following variables:

  • DropLevel_farming_Regular = 10
  • DropLevel_farming_Diseased = 32
  • DropLevel_farming_DEFAULT = 10,32