Template:LootChest

From TibiaCraft
Jump to navigationJump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:LootChest, a script written in Lua.

Usage

Thie template accepts any number of chest parameters, and any number of column parameters. The parameters can be used in any order too.

Only one set of parameters is required, and the others are optional:

  • If no chest parameters are listed, then all chest parameters, matching each of the column parameters, will be used automatically.
  • If no column parameters are listed, then all column parameters, matching each of the chest parameters, will be used automatically.

The general syntax is one of these 3:

{{LootChest | <chestParam1> | <chestParam2> | ... | <chestParamN> | <columnParam1> | <columnParam2> | ... | <columnParamN>}}

{{LootChest | <chestParam1> | <chestParam2> | ... | <chestParamN>}}

{{LootChest | <columnParam1> | <columnParam2> | ... | <columnParamN>}}

Chest parameters

  • ancient-city-ice-box
  • ancient-city
  • bastion-bridge
  • bastion-generic
  • bastion-hoglin-stable
  • bastion-treasure
  • bonus-barrel
  • bonus
  • brushable-cold-ocean-ruins
  • brushable-desert-temple
  • brushable-desert-well
  • brushable-trail-ruins-rare
  • brushable-trail-ruins
  • brushable-warm-ocean-ruins
  • buried-treasure
  • desert-temple (alternative name: desert)
  • end-city
  • igloo
  • jungle-temple-dispenser
  • jungle-temple (alternative name: jungle)
  • mineshaft
  • monster room
  • moon-lab
  • moon-resuply
  • nether-fortress (alternative names: nether, nether-fortress)
  • pillager-outpost (alternative name: outpost)
  • ruined-portal
  • shipwreck-map
  • shipwreck-supply
  • shipwreck-treasure
  • stronghold-altar (alternative name: altar)
  • stronghold-library (alternative name: library)
  • stronghold-storeroom (alternative name: storeroom)
  • trial-chambers-chamber-dispenser
  • trial-chambers-corridor-dispenser
  • trial-chambers-corridor-pot
  • trial-chambers-corridor
  • trial-chambers-entrance
  • trial-chambers-intersection-barrel
  • trial-chambers-intersection
  • trial-chambers-reward-ominous
  • trial-chambers-reward (alternative name: trial-vault)
  • trial-chambers-supply
  • trial-chambers-trial-spawner-ominous
  • trial-chambers-trial-spawner (alternative name: trial-spawner)
  • trial-chambers-water-dispenser
  • underwater-ruin-big
  • underwater-ruin-small
  • village-armorer (alternative name: armorer)
  • village-butcher (alternative name: butcher)
  • village-cartographer (alternative name: cartographer)
  • village-desert-house (alternative name: desert-house)
  • village-fisherman (alternative name: fisherman)
  • village-fletcher (alternative name: fletcher)
  • village-mason (alternative name: mason)
  • village-plains-house (alternative name: plains-house)
  • village-savanna-house (alternative name: savanna-house)
  • village-shepherd (alternative name: shepherd)
  • village-snowy-house (alternative name: snowy-house)
  • village-taiga-house (alternative name: taiga-house)
  • village-tannery (alternative name: tannery)
  • village-temple (alternative name: temple)
  • village-toolsmith (alternative name: toolsmith)
  • village-weaponsmith (alternative name: weaponsmith)
  • woodland-mansion (alternative name: mansion)

Column parameters

chance: The odds of finding any of this item in a single chest.,
chests: The average number of chests the player should expect to search to find any of this item.,
items: The number of items expected per chest, averaged over a large number of chests.,
stacksize: The size of stacks (or for unstackable items, number) of this item on any given roll.,
weight: The weight of this item relative to other items in the pool.

Example

{{LootChest|mineshaft|monster room|chance|stacksize}} shows loot for mineshaft and dungeon chests, and only shows the data for the 'stacksize' and 'chance' columns

Lua error in Module:LootChest at line 1611: attempt to call field 'gfind' (a nil value).

[view] [edit] [history] [purge]The above documentation is transcluded from Template:LootChest/doc.


Cite error: <ref> tags exist for a group named "FN", but no corresponding <references group="FN"/> tag was found