Result
{% _type = title input:Type %}
{# See if we get exactly one match #}
{% types = get_chart cols:1 id:104382 %}
{% matches = filter pattern:_type source:types %}
{# If we have exactly one match, get our results #}
{%if matches.size == 1%}
{{ roll_chart cols:2 filter:_type filter_cols:1 id:104382 }}
{# If we have no matches or too many matches, print some helpful text. #}
{%else%}
Error while rolling an Astra Militarum Battle Trait: Type "{$Type}" has no matching table!
Supported tables for Astra Militarum Traits are: '{{ title input:{{ join sep:"', '" source:types }} }}'
Partial matches are accepted as long as they match a single result.
{%end%}
Subcharts
Battle Traits (d3)
| d3 | Type | Result |
|---|---|---|
1 |
Infantry and Mounted |
Roll on "40k Crusade Astra Militarum Infantry/Mounted Traits" |
2 |
Officer |
|
3 |
Vehicle |