Difference between revisions of "User:Trang Oul/Sandbox/Template:Monster data"
< User:Trang Oul | Sandbox
Jump to navigation
Jump to search
(Created page with "<noinclude> === Sources === Built automatically from: * <code>monstats.txt</code> (cols: <code>Id</code> - tech name, <code>hcIdx</code>/<code>*hcIdx</code> - ID) * <code>data...") |
(removed monsters with no names (critters only?)) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=== Sources === | === Sources === | ||
Built automatically from: | Built automatically from: | ||
| − | * <code>monstats.txt</code> (cols: <code>Id</code> - | + | * <code>monstats.txt</code> (cols: <code>Id</code> - unique internal name, <code>hcIdx</code>/<code>*hcIdx</code> - ID) |
| − | * <code>data\local\lng\strings</code> (string | + | * <code>data\local\lng\strings</code> (localized string values; <code>Key</code> is matched with <code>NameStr</code> from <code>monstats.txt</code>; <code>enUS</code> locale was used) |
=== Usage === | === Usage === | ||
| − | <code><nowiki>{{Monster | + | <code><nowiki>{{Monster data|<monster ID or internal name>|<field>}}</nowiki></code> |
==== Parameters ==== | ==== Parameters ==== | ||
; <code>1</code> (required) | ; <code>1</code> (required) | ||
| − | : Monster ID or | + | : Monster ID or internal name from <code>monstats.txt</code> (also used as a reanimate property value). |
| + | ; <code>2</code> (optional, defaults to <code>label</code>) | ||
| + | : Field to return: | ||
| + | :* <code>id</code> - numeric monster ID. | ||
| + | :* <code>name</code> - internal name from <code>monstats.txt</code>. | ||
| + | :* <code>label</code> - localized monster name string value (currently <code>enUS</code>). | ||
| + | : Unknown monsters and unknown fields return parameter <code>1</code> unchanged. | ||
| + | |||
| + | ==== Examples ==== | ||
| + | ; Localized monster name by ID | ||
| + | : <code><nowiki>{{Monster data|0|label}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|0|label}} | ||
| + | |||
| + | ; Monster ID by internal name | ||
| + | : <code><nowiki>{{Monster data|skeleton1|id}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|skeleton1|id}} | ||
| + | |||
| + | ; internal name by ID | ||
| + | : <code><nowiki>{{Monster data|0|name}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|0|name}} | ||
| + | |||
| + | ; Omitted field (defaults to <code>label</code>) | ||
| + | : <code><nowiki>{{Monster data|0}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|0}} | ||
| + | |||
| + | ; Monster not defined | ||
| + | : <code><nowiki>{{Monster data|9999|label}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|9999|label}} | ||
| + | |||
| + | ; Field not defined (returns the input unchanged) | ||
| + | : <code><nowiki>{{Monster data|0|unknown}}</nowiki></code> | ||
| + | : {{User:Trang Oul/Sandbox/Template:Monster data|0|unknown}} | ||
</noinclude><includeonly>{{#switch: {{{1|}}} | </noinclude><includeonly>{{#switch: {{{1|}}} | ||
| − | + | | 0 | skeleton1 = {{#switch: {{{2|label}}} | |
| − | + | | id = 0 | |
| − | + | | name = skeleton1 | |
| − | + | | label = Skeleton | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 1 | skeleton2 = {{#switch: {{{2|label}}} | |
| − | + | | id = 1 | |
| − | + | | name = skeleton2 | |
| − | + | | label = Returned | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 2 | skeleton3 = {{#switch: {{{2|label}}} | |
| − | + | | id = 2 | |
| − | + | | name = skeleton3 | |
| − | + | | label = Bone Warrior | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 3 | skeleton4 = {{#switch: {{{2|label}}} | |
| − | + | | id = 3 | |
| − | + | | name = skeleton4 | |
| − | + | | label = Burning Dead | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 4 | skeleton5 = {{#switch: {{{2|label}}} | |
| − | + | | id = 4 | |
| − | + | | name = skeleton5 | |
| − | + | | label = Horror | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 5 | zombie1 = {{#switch: {{{2|label}}} | |
| − | + | | id = 5 | |
| − | + | | name = zombie1 | |
| − | + | | label = Zombie | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 6 | zombie2 = {{#switch: {{{2|label}}} | |
| − | + | | id = 6 | |
| − | + | | name = zombie2 | |
| − | + | | label = Hungry Dead | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 7 | zombie3 = {{#switch: {{{2|label}}} | |
| − | + | | id = 7 | |
| − | + | | name = zombie3 | |
| − | + | | label = Ghoul | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 8 | zombie4 = {{#switch: {{{2|label}}} | |
| − | + | | id = 8 | |
| − | + | | name = zombie4 | |
| − | + | | label = Drowned Carcass | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 9 | zombie5 = {{#switch: {{{2|label}}} | |
| − | + | | id = 9 | |
| − | + | | name = zombie5 | |
| − | + | | label = Plague Bearer | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 10 | bighead1 = {{#switch: {{{2|label}}} | |
| − | + | | id = 10 | |
| − | + | | name = bighead1 | |
| − | + | | label = Afflicted | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 11 | bighead2 = {{#switch: {{{2|label}}} | |
| − | + | | id = 11 | |
| − | + | | name = bighead2 | |
| − | + | | label = Tainted | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 12 | bighead3 = {{#switch: {{{2|label}}} | |
| − | + | | id = 12 | |
| − | + | | name = bighead3 | |
| − | + | | label = Misshapen | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 13 | bighead4 = {{#switch: {{{2|label}}} | |
| − | + | | id = 13 | |
| − | + | | name = bighead4 | |
| − | + | | label = Disfigured | |
| − | + | | #default = {{{1|}}} | |
| − | + | }} | |
| − | + | | 14 | bighead5 = {{#switch: {{{2|label}}} | |
| − | + | | id = 14 | |
| − | + | | name = bighead5 | |
| − | + | | label = Damned | |
| − | + | | #default = {{{1|}}} | |
| + | }} | ||
| + | | 15 | foulcrow1 = {{#switch: {{{2|label}}} | ||
| + | | id = 15 | ||
| + | | name = foulcrow1 | ||
| + | | label = Foul Crow | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 16 | foulcrow2 = {{#switch: {{{2|label}}} | ||
| + | | id = 16 | ||
| + | | name = foulcrow2 | ||
| + | | label = Blood Hawk | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 17 | foulcrow3 = {{#switch: {{{2|label}}} | ||
| + | | id = 17 | ||
| + | | name = foulcrow3 | ||
| + | | label = Black Raptor | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 18 | foulcrow4 = {{#switch: {{{2|label}}} | ||
| + | | id = 18 | ||
| + | | name = foulcrow4 | ||
| + | | label = Cloud Stalker | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 19 | fallen1 = {{#switch: {{{2|label}}} | ||
| + | | id = 19 | ||
| + | | name = fallen1 | ||
| + | | label = Fallen | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 20 | fallen2 = {{#switch: {{{2|label}}} | ||
| + | | id = 20 | ||
| + | | name = fallen2 | ||
| + | | label = Carver | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 21 | fallen3 = {{#switch: {{{2|label}}} | ||
| + | | id = 21 | ||
| + | | name = fallen3 | ||
| + | | label = Devilkin | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 22 | fallen4 = {{#switch: {{{2|label}}} | ||
| + | | id = 22 | ||
| + | | name = fallen4 | ||
| + | | label = Dark One | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 23 | fallen5 = {{#switch: {{{2|label}}} | ||
| + | | id = 23 | ||
| + | | name = fallen5 | ||
| + | | label = Warped One | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 24 | brute2 = {{#switch: {{{2|label}}} | ||
| + | | id = 24 | ||
| + | | name = brute2 | ||
| + | | label = Brute | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 25 | brute3 = {{#switch: {{{2|label}}} | ||
| + | | id = 25 | ||
| + | | name = brute3 | ||
| + | | label = Yeti | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 26 | brute4 = {{#switch: {{{2|label}}} | ||
| + | | id = 26 | ||
| + | | name = brute4 | ||
| + | | label = Crusher | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 27 | brute5 = {{#switch: {{{2|label}}} | ||
| + | | id = 27 | ||
| + | | name = brute5 | ||
| + | | label = Wailing Beast | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 28 | brute1 = {{#switch: {{{2|label}}} | ||
| + | | id = 28 | ||
| + | | name = brute1 | ||
| + | | label = Gargantuan Beast | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 29 | sandraider1 = {{#switch: {{{2|label}}} | ||
| + | | id = 29 | ||
| + | | name = sandraider1 | ||
| + | | label = Sand Raider | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 30 | sandraider2 = {{#switch: {{{2|label}}} | ||
| + | | id = 30 | ||
| + | | name = sandraider2 | ||
| + | | label = Marauder | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 31 | sandraider3 = {{#switch: {{{2|label}}} | ||
| + | | id = 31 | ||
| + | | name = sandraider3 | ||
| + | | label = Invader | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 32 | sandraider4 = {{#switch: {{{2|label}}} | ||
| + | | id = 32 | ||
| + | | name = sandraider4 | ||
| + | | label = Infidel | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 33 | sandraider5 = {{#switch: {{{2|label}}} | ||
| + | | id = 33 | ||
| + | | name = sandraider5 | ||
| + | | label = Assailant | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 38 | wraith1 = {{#switch: {{{2|label}}} | ||
| + | | id = 38 | ||
| + | | name = wraith1 | ||
| + | | label = Ghost | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 39 | wraith2 = {{#switch: {{{2|label}}} | ||
| + | | id = 39 | ||
| + | | name = wraith2 | ||
| + | | label = Wraith | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 40 | wraith3 = {{#switch: {{{2|label}}} | ||
| + | | id = 40 | ||
| + | | name = wraith3 | ||
| + | | label = Specter | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 41 | wraith4 = {{#switch: {{{2|label}}} | ||
| + | | id = 41 | ||
| + | | name = wraith4 | ||
| + | | label = Apparition | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 42 | wraith5 = {{#switch: {{{2|label}}} | ||
| + | | id = 42 | ||
| + | | name = wraith5 | ||
| + | | label = Dark Shape | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 43 | corruptrogue1 = {{#switch: {{{2|label}}} | ||
| + | | id = 43 | ||
| + | | name = corruptrogue1 | ||
| + | | label = Dark Hunter | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 44 | corruptrogue2 = {{#switch: {{{2|label}}} | ||
| + | | id = 44 | ||
| + | | name = corruptrogue2 | ||
| + | | label = Vile Hunter | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 45 | corruptrogue3 = {{#switch: {{{2|label}}} | ||
| + | | id = 45 | ||
| + | | name = corruptrogue3 | ||
| + | | label = Dark Stalker | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 46 | corruptrogue4 = {{#switch: {{{2|label}}} | ||
| + | | id = 46 | ||
| + | | name = corruptrogue4 | ||
| + | | label = Black Rogue | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 47 | corruptrogue5 = {{#switch: {{{2|label}}} | ||
| + | | id = 47 | ||
| + | | name = corruptrogue5 | ||
| + | | label = Flesh Hunter | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 48 | baboon1 = {{#switch: {{{2|label}}} | ||
| + | | id = 48 | ||
| + | | name = baboon1 | ||
| + | | label = Dune Beast | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 49 | baboon2 = {{#switch: {{{2|label}}} | ||
| + | | id = 49 | ||
| + | | name = baboon2 | ||
| + | | label = Rock Dweller | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 50 | baboon3 = {{#switch: {{{2|label}}} | ||
| + | | id = 50 | ||
| + | | name = baboon3 | ||
| + | | label = Jungle Hunter | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 51 | baboon4 = {{#switch: {{{2|label}}} | ||
| + | | id = 51 | ||
| + | | name = baboon4 | ||
| + | | label = Doom Ape | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 52 | baboon5 = {{#switch: {{{2|label}}} | ||
| + | | id = 52 | ||
| + | | name = baboon5 | ||
| + | | label = Temple Guard | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 53 | goatman1 = {{#switch: {{{2|label}}} | ||
| + | | id = 53 | ||
| + | | name = goatman1 | ||
| + | | label = Moon Clan | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 54 | goatman2 = {{#switch: {{{2|label}}} | ||
| + | | id = 54 | ||
| + | | name = goatman2 | ||
| + | | label = Night Clan | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 55 | goatman3 = {{#switch: {{{2|label}}} | ||
| + | | id = 55 | ||
| + | | name = goatman3 | ||
| + | | label = Blood Clan | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 56 | goatman4 = {{#switch: {{{2|label}}} | ||
| + | | id = 56 | ||
| + | | name = goatman4 | ||
| + | | label = Hell Clan | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 57 | goatman5 = {{#switch: {{{2|label}}} | ||
| + | | id = 57 | ||
| + | | name = goatman5 | ||
| + | | label = Death Clan | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 58 | fallenshaman1 = {{#switch: {{{2|label}}} | ||
| + | | id = 58 | ||
| + | | name = fallenshaman1 | ||
| + | | label = Fallen Shaman | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 59 | fallenshaman2 = {{#switch: {{{2|label}}} | ||
| + | | id = 59 | ||
| + | | name = fallenshaman2 | ||
| + | | label = Carver Shaman | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 60 | fallenshaman3 = {{#switch: {{{2|label}}} | ||
| + | | id = 60 | ||
| + | | name = fallenshaman3 | ||
| + | | label = Devilkin Shaman | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 61 | fallenshaman4 = {{#switch: {{{2|label}}} | ||
| + | | id = 61 | ||
| + | | name = fallenshaman4 | ||
| + | | label = Dark Shaman | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 62 | fallenshaman5 = {{#switch: {{{2|label}}} | ||
| + | | id = 62 | ||
| + | | name = fallenshaman5 | ||
| + | | label = Warped Shaman | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 63 | quillrat1 = {{#switch: {{{2|label}}} | ||
| + | | id = 63 | ||
| + | | name = quillrat1 | ||
| + | | label = Quill Rat | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 64 | quillrat2 = {{#switch: {{{2|label}}} | ||
| + | | id = 64 | ||
| + | | name = quillrat2 | ||
| + | | label = Spike Fiend | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 65 | quillrat3 = {{#switch: {{{2|label}}} | ||
| + | | id = 65 | ||
| + | | name = quillrat3 | ||
| + | | label = Thorn Beast | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 66 | quillrat4 = {{#switch: {{{2|label}}} | ||
| + | | id = 66 | ||
| + | | name = quillrat4 | ||
| + | | label = Razor Spine | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 67 | quillrat5 = {{#switch: {{{2|label}}} | ||
| + | | id = 67 | ||
| + | | name = quillrat5 | ||
| + | | label = Bush Barb | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 68 | sandmaggot1 = {{#switch: {{{2|label}}} | ||
| + | | id = 68 | ||
| + | | name = sandmaggot1 | ||
| + | | label = Sand Maggot | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 69 | sandmaggot2 = {{#switch: {{{2|label}}} | ||
| + | | id = 69 | ||
| + | | name = sandmaggot2 | ||
| + | | label = Rock Worm | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 70 | sandmaggot3 = {{#switch: {{{2|label}}} | ||
| + | | id = 70 | ||
| + | | name = sandmaggot3 | ||
| + | | label = Devourer | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 71 | sandmaggot4 = {{#switch: {{{2|label}}} | ||
| + | | id = 71 | ||
| + | | name = sandmaggot4 | ||
| + | | label = Giant Lamprey | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 72 | sandmaggot5 = {{#switch: {{{2|label}}} | ||
| + | | id = 72 | ||
| + | | name = sandmaggot5 | ||
| + | | label = Blood Maggot | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 73 | clawviper1 = {{#switch: {{{2|label}}} | ||
| + | | id = 73 | ||
| + | | name = clawviper1 | ||
| + | | label = Tomb Viper | ||
| + | | #default = {{{1|}}} | ||
| + | }} | ||
| + | | 74 | clawviper2 = {{#switch: {{{ | ||
| #default = {{{1|}}} | | #default = {{{1|}}} | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 18:03, 13 November 2026
Sources
Built automatically from:
monstats.txt(cols:Id- unique internal name,hcIdx/*hcIdx- ID)data\local\lng\strings(localized string values;Keyis matched withNameStrfrommonstats.txt;enUSlocale was used)
Usage
{{Monster data|<monster ID or internal name>|<field>}}
Parameters
1(required)- Monster ID or internal name from
monstats.txt(also used as a reanimate property value). 2(optional, defaults tolabel)- Field to return:
id- numeric monster ID.name- internal name frommonstats.txt.label- localized monster name string value (currentlyenUS).
- Unknown monsters and unknown fields return parameter
1unchanged.
Examples
- Localized monster name by ID
{{Monster data|0|label}}- Skeleton
- Monster ID by internal name
{{Monster data|skeleton1|id}}- 0
- internal name by ID
{{Monster data|0|name}}- skeleton1
- Omitted field (defaults to
label) {{Monster data|0}}- Skeleton
- Monster not defined
{{Monster data|9999|label}}- 9999
- Field not defined (returns the input unchanged)
{{Monster data|0|unknown}}- 0