Template:HeroStartSquadDef: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
obelisk-bot: uploading initial Cargo templates |
obelisk-bot: uploading initial Cargo templates |
||
| Line 2: | Line 2: | ||
One row per slot in a hero's starting army. Each hero has 1-3 '''primary''' slots (<code>variant=primary</code>) and 1 '''alt''' slot (<code>variant=alt</code>). Across the 108 faction heroes in the 2026-05-03 corpus: 100 have 3 primary slots, 5 have 2, 3 have 1; all 108 have exactly 1 alt slot. | One row per slot in a hero's starting army. Each hero has 1-3 '''primary''' slots (<code>variant=primary</code>) and 1 '''alt''' slot (<code>variant=alt</code>). Across the 108 faction heroes in the 2026-05-03 corpus: 100 have 3 primary slots, 5 have 2, 3 have 1; all 108 have exactly 1 alt slot. | ||
The bot emits these rows on the parent <code>Data:Hero/<id></code> page, after the <code>{{HeroDef}}</code> and <code>{{TranslationDef}}</code> blocks. | The bot emits these rows on the parent <code>Data:Hero/<id></code> page, after the <code><nowiki>{{HeroDef}}</nowiki></code> and <code><nowiki>{{TranslationDef}}</nowiki></code> blocks. | ||
== Schema == | == Schema == | ||
Revision as of 00:02, 13 May 2026
One row per slot in a hero's starting army. Each hero has 1-3 primary slots (variant=primary) and 1 alt slot (variant=alt). Across the 108 faction heroes in the 2026-05-03 corpus: 100 have 3 primary slots, 5 have 2, 3 have 1; all 108 have exactly 1 alt slot.
The bot emits these rows on the parent Data:Hero/<id> page, after the {{HeroDef}} and {{TranslationDef}} blocks.
Schema
This template defines the table "HeroStartSquad". View table.
{{HeroStartSquadDef
| hero_id = String <!-- joins Hero.id -->
| variant = String (allowed values=primary,alt)
| slot = Integer <!-- 1-based position within the variant -->
| unit_sid = String <!-- joins Unit.id -->
| min = Integer
| max = Integer
}}
Field notes
- Primary key is
(hero_id, variant, slot). variantdistinguishes the source's parallel arraysstartSquad(primary) andstartSquadAlt(alt). Source data has alt as always exactly 1 slot of the form(unit_sid, min=1, max=1)in the 2026-05-03 corpus, but the schema preserves min/max in case future patches diverge.unit_sidreferences aUnit.id(e.g.esquire,crossbowman,griffin).min/maxdefine the random count range for that slot at battle start. Primary slots have meaningful ranges (e.g. 14-20 esquires); alt slots are typically 1-1.


