Template:CreatureTable

From UO Outlands Wiki
Revision as of 21:31, 10 November 2024 by TheGmaster (talk | contribs) (→‎Editing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


CreatureTable generates a table for a creature with data pulled from a data module, like the example below of a Blood Daemon:

Blood Daemon
Slayer Difficulty Gold Value Hits Melee Damage Wrestling Armor Magic Resist
Daemonic 151.3 1,513 8,000 50 - 60 120 25 175
Parry Attack Speed Magery Spell Damage Poison Poison Resist Stealth AI
? 150 30 - 40 MeleeMage

Along with wild creatures this template can also display creatures from Strangelands or creatures found on ships, if specified. Creatures found in these circumstances often share their name and appearance with creatures found elsewhere but have unique stats; For example a Blood Daemon found on a daemon ship has the following stats:

Ship Creature
Ship Creature
Blood Daemon
Slayer Difficulty Gold Value Hits Melee Damage Wrestling Armor Magic Resist
Daemonic 132.6 1,326 8,000 50 - 60 110 25 100
Parry Attack Speed Magery Spell Damage Poison Poison Resist Stealth AI
? 100 20 - 30 MeleeMage

Parameters

Name Alias Default Value Function Example
name 1 {{PAGENAME}} The name of the creature to display, case-sensitive . Sun Wyrm
image 2 <creaturename>.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. sunwyrm.jpg
type 3 wild* The type of creature to display; Wild, Ships, Strangelands. Not case-sensitive SHIPS/Ship/ShiP
section 4 The section to add before the table, if a value is given Creature Stats

*Default value assigned by the module instead of in the template/invoke

Editing

This template is generated by Module:Creatures, which conditionally formats the creature data, this cannot be edited without a basic understanding of Lua, or at least general programming. However the creature's data is pulled from one of three sources depending on the type specified:

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.