Template:FollowerTable

From UO Outlands Wiki
Jump to navigation Jump to search

Editing this template will not change what the template displays, see #Editing for more information


FollowerTable generates a table for a follower with data pulled from a data module, like the example below of a Polar Bear:

Attack Class
Attack Class
Polar Bear
Min Taming Control Slots Hits Class Melee Damage Armor Wrestling
55 1 175 Attack 18 - 22 25 55
Attack Speed Magic Resist Poison Resist Special Resist Poison Poisoning Stealth Underdog Scalar
? 50 1.371


If the requested creature is not a known tameable, the template will look for a summon-able creature with the same name. There are some creatures summoned with the "Summon Creature" spell that are also tameable, in these instances the "summon" type can be specified:

Summon Creature (Pool 1)
Summon Creature
(Pool 1)
Polar Bear
Spell Control Slots Hits Melee Damage Armor Wrestling
Summon Creature 1 175 18 - 22 25 55
Attack Speed Magic Resist Poison Resist Special Resist Poison Poisoning Stealth
? 50

As of writing summoned creatures have identical stats to their tameable counterparts, so the type really only changes the table's format. In the event that this changes the data is stored separately.

Parameters

Name Alias Default Value Function Example
name 1 FollowerTable The name of the follower to display, case-sensitive. Warpig
type 2 tame* The type of follower to display; Tame or Summon. Not case-sensitive tame/TaMeaBle/summon/sUmMoNable
image 3 <followername>.jpg The name of the image file of the creature, by default the template links a jpg image with the creature's name, in all lowercase with no spaces. warpig.jpg
section 4 The section to add before the table, if a value is given Tameable Creature Stats

Editing

This template is generated by Module:Creatures, which conditionally formats the follower's data, this cannot be edited without a basic understanding of Lua, or at least general programming. However the data can be edited with little to no knowledge of programming. The follower's data is pulled from one of two sources depending on the type specified, and some from the normal creature data:


Each modules documentation (linked at the top of their pages) gives details on how to structure data in the Lua tables, after editing it is recommended that editors make sure the template still functions properly.

These modules were created by User:TheGmaster, feel free to dm any questions/concerns/requests directly via Discord @thegmaster1.