Difference between revisions of "Template:3.5e Armor"
From Dungeons and Dragons Wiki
Tarkisflux (talk | contribs) (substantial coding) |
Tarkisflux (talk | contribs) m |
||
Line 18: | Line 18: | ||
|- | |- | ||
| class="left" | [[SRD:Medium|Medium]] | | class="left" | [[SRD:Medium|Medium]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}-((({{{cost}}}*100)mod100)/100) > 1 |{{{cost}}}-((({{{cost}}}*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*10)mod10}}|, {{#expr:({{{cost}}}*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*100)mod10}}|, {{#expr:({{{cost}}}*100)mod10}} cp}} |
| {{#expr:{{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100)}} gp{{#if: {{#expr:({{{cost}}}*2*10)mod10}}|, {{#expr:({{{cost}}}*2*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*2*100)mod10}}|, {{#expr:({{{cost}}}*2*100)mod10}} cp}} | | {{#expr:{{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100)}} gp{{#if: {{#expr:({{{cost}}}*2*10)mod10}}|, {{#expr:({{{cost}}}*2*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*2*100)mod10}}|, {{#expr:({{{cost}}}*2*100)mod10}} cp}} | ||
| {{{bonus}}} | | {{{bonus}}} | ||
Line 30: | Line 30: | ||
|- | |- | ||
| class="left" | [[SRD:Fine|Fine]] | | class="left" | [[SRD:Fine|Fine]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) > 1 |{{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*.5*10)mod10}}|, {{#expr:({{{cost}}}*.5*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*.5*100)mod10}}|, {{#expr:({{{cost}}}*.5*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}-((({{{cost}}}*100)mod100)/100) > 1 |{{{cost}}}-((({{{cost}}}*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*10)mod10}}|, {{#expr:({{{cost}}}*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*100)mod10}}|, {{#expr:({{{cost}}}*100)mod10}} cp}} |
| {{{tbonus}}} | | {{{tbonus}}} | ||
| {{#expr: {{{wght}}}*.1}} lb. | | {{#expr: {{{wght}}}*.1}} lb. | ||
Line 37: | Line 37: | ||
|- | |- | ||
| class="left" | [[SRD:Diminutive|Diminutive]] | | class="left" | [[SRD:Diminutive|Diminutive]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) > 1 |{{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*.5*10)mod10}}|, {{#expr:({{{cost}}}*.5*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*.5*100)mod10}}|, {{#expr:({{{cost}}}*.5*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}-((({{{cost}}}*100)mod100)/100) > 1 |{{{cost}}}-((({{{cost}}}*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*10)mod10}}|, {{#expr:({{{cost}}}*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*100)mod10}}|, {{#expr:({{{cost}}}*100)mod10}} cp}} |
| {{{tbonus}}} | | {{{tbonus}}} | ||
| {{#expr: {{{wght}}}*.1}} lb. | | {{#expr: {{{wght}}}*.1}} lb. | ||
Line 44: | Line 44: | ||
|- | |- | ||
| class="left" | [[SRD:Tiny|Tiny]] | | class="left" | [[SRD:Tiny|Tiny]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) > 1 |{{{cost}}}*.5-((({{{cost}}}*.5*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*.5*10)mod10}}|, {{#expr:({{{cost}}}*.5*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*.5*100)mod10}}|, {{#expr:({{{cost}}}*.5*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}-((({{{cost}}}*100)mod100)/100) > 1 |{{{cost}}}-((({{{cost}}}*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*10)mod10}}|, {{#expr:({{{cost}}}*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*100)mod10}}|, {{#expr:({{{cost}}}*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
| {{#expr: {{{wght}}}*.1}} lb. | | {{#expr: {{{wght}}}*.1}} lb. | ||
Line 51: | Line 51: | ||
|- | |- | ||
| class="left" | [[SRD:Small|Small]] | | class="left" | [[SRD:Small|Small]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}-((({{{cost}}}*100)mod100)/100) > 1 |{{{cost}}}-((({{{cost}}}*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*10)mod10}}|, {{#expr:({{{cost}}}*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*100)mod10}}|, {{#expr:({{{cost}}}*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100) > 1 |{{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*2*10)mod10}}|, {{#expr:({{{cost}}}*2*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*2*100)mod10}}|, {{#expr:({{{cost}}}*2*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
| {{#expr: {{{wght}}}*.5}} lb. | | {{#expr: {{{wght}}}*.5}} lb. | ||
Line 58: | Line 58: | ||
|- | |- | ||
| class="left" | [[SRD:Large|Large]] | | class="left" | [[SRD:Large|Large]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100) > 1 |{{{cost}}}*2-((({{{cost}}}*2*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*2*10)mod10}}|, {{#expr:({{{cost}}}*2*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*2*100)mod10}}|, {{#expr:({{{cost}}}*2*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}*4-((({{{cost}}}*4*100)mod100)/100) > 1 |{{{cost}}}*4-((({{{cost}}}*4*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*4*10)mod10}}|, {{#expr:({{{cost}}}*4*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*4*100)mod10}}|, {{#expr:({{{cost}}}*4*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
| {{#expr: {{{wght}}}*2}} lb. | | {{#expr: {{{wght}}}*2}} lb. | ||
Line 65: | Line 65: | ||
|- | |- | ||
| class="left" | [[SRD:Huge|Huge]] | | class="left" | [[SRD:Huge|Huge]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*4-((({{{cost}}}*4*100)mod100)/100) > 1 |{{{cost}}}*4-((({{{cost}}}*4*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*4*10)mod10}}|, {{#expr:({{{cost}}}*4*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*4*100)mod10}}|, {{#expr:({{{cost}}}*4*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}*8-((({{{cost}}}*8*100)mod100)/100) > 1 |{{{cost}}}*8-((({{{cost}}}*8*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*8*10)mod10}}|, {{#expr:({{{cost}}}*8*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*8*100)mod10}}|, {{#expr:({{{cost}}}*8*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
| {{#expr: {{{wght}}}*5}} lb. | | {{#expr: {{{wght}}}*5}} lb. | ||
Line 72: | Line 72: | ||
|- | |- | ||
| class="left" | [[SRD:Gargantuan|Gargantuan]] | | class="left" | [[SRD:Gargantuan|Gargantuan]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*8-((({{{cost}}}*8*100)mod100)/100) > 1 |{{{cost}}}*8-((({{{cost}}}*8*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*8*10)mod10}}|, {{#expr:({{{cost}}}*8*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*8*100)mod10}}|, {{#expr:({{{cost}}}*8*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}*16-((({{{cost}}}*16*100)mod100)/100) > 1 |{{{cost}}}*16-((({{{cost}}}*16*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*16*10)mod10}}|, {{#expr:({{{cost}}}*16*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*16*100)mod10}}|, {{#expr:({{{cost}}}*16*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
| {{#expr: {{{wght}}}*8}} lb. | | {{#expr: {{{wght}}}*8}} lb. | ||
Line 79: | Line 79: | ||
|- | |- | ||
| class="left" | [[SRD:Colossal|Colossal]] | | class="left" | [[SRD:Colossal|Colossal]] | ||
− | | {{# | + | | {{#ifexpr: {{{cost}}}*16-((({{{cost}}}*16*100)mod100)/100) > 1 |{{{cost}}}*16-((({{{cost}}}*16*100)mod100)/100) gp}}{#if: {{#expr:({{{cost}}}*16*10)mod10}}|, {{#expr:({{{cost}}}*16*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*16*100)mod10}}|, {{#expr:({{{cost}}}*16*100)mod10}} cp}} |
− | | {{# | + | | {{#ifexpr: {{{cost}}}*32-((({{{cost}}}*32*100)mod100)/100) > 1 |{{{cost}}}*32-((({{{cost}}}*32*100)mod100)/100) gp}}{{#if: {{#expr:({{{cost}}}*32*10)mod10}}|, {{#expr:({{{cost}}}*32*10)mod10}} sp}}{{#if: {{#expr:({{{cost}}}*32*100)mod10}}|, {{#expr:({{{cost}}}*32*100)mod10}} cp}} |
| {{{bonus}}} | | {{{bonus}}} | ||
− | {{#expr: {{{wght}}}*12}} lb. | + | | {{#expr: {{{wght}}}*12}} lb. |
| {{{hp}}} | | {{{hp}}} | ||
|- | |- |
Revision as of 00:45, 17 June 2010
Template documentation (for the above template, sometimes hidden or invisible)
Contents
This template creates a formatted table for 3.5e armors.
Parameters
Parameter | Required | Description | Example |
---|---|---|---|
name | Yes | The name of the armor. | Padded Armor |
lmh | Yes | The armor's category. Enter either: l= light, m= medium, h= heavy. | l |
maxdex | Yes | The Maximum Dexterity Bonus of the armor here. | +0 |
tbonus | Yes | The armor's armor bonus for tiny and smaller armors. This is half the armor's normal bonus, rounding down. | +0 |
bonus | Yes | The armor's armor bonus. | +1 |
acp | Yes | The armor's Armor Check Penalty. | 0 |
asf | Yes | The armor's Arcane Spell Failure. | 5% |
hard | Yes | The armor's Hardness. | 2 |
cost | No | The armor's cost for a medium humanoid. This parameter calculates non-humanoid and non-standard costs. For costs not measured in quantities of gp, use decimal places, with tenths being sp and hundredths being cp. No cost is needed if used for an artifact. | 5 |
wght | Yes | The armor's weight for a medium humanoid. This parameter calculates non-humanoid and non-standard weights. | 10 |
hp | Yes | The armor's hit points. | 5 |
donpbh | Yes | How easy it is to don this armor. Enter either: p= as padded, b=as breastplate, h=as half-plate. Armors with custom don times may use "o" for other, but must specify additional properties. | p |
don | No | The time it takes to don the armor if "o" is selected in donpbh. | 1 minute |
donhasty | No | The time it takes to hastily don the armor if "o" is selected in donpbh. | 4 minutes |
remove | No | The time it takes to remove the armor if "o" is selected in donpbh. | 1 minute |
summary | No | This short description that will appear on the armor navigation page. If you don't include this parameter, make sure you set the "Summary" property in the text. A summary included here will not show up on the article. | A set of inexpensive padded armor. |
Examples
The example armor below is defined in wiki-text as follows:
{{3.5e Armor |name=Padded Armor |lmh=l |maxdex=+8 |tbonus=+0 |bonus=+1 |acp=0 |asf=5% |hard=2 |cost=5 |weight=10 |hp=5 |donpbh=p }}
This text becomes:
Size | Humanoid Cost |
Nonhumanoid Cost |
Armor Bonus |
Weight | Hit Points |
---|---|---|---|---|---|
Small | 5 gp | 10 gp | +1 | 5 lb. | 5 |
Medium | 5 gp | 10 gp | +1 | 10 lb. | 5 |
Non-Standard Sizes | |||||
---|---|---|---|---|---|
Fine | 2 gp 5 sp | 5 gp | +0 | 1 lb. | 5 |
Diminutive | 2 gp 5 sp | 5 gp | +0 | 1 lb. | 5 |
Tiny | 2 gp 5 sp | 5 gp | +0 | 1 lb. | 5 |
Large | 10 gp | 20 gp | +1 | 20 lb. | 5 |
Huge | 20 gp | 40 gp | +1 | 50 lb. | 5 |
Gargantuan | 40 gp | 80 gp | +1 | 80 lb. | 5 |
Colossal | 80 gp | 160 gp | +1 | 120 lb. | 5 |
Maximum Dex Bonus |
Armor Check Penalty |
Arcane Spell Failure |
Hardness |
---|---|---|---|
+8 | 0 | 5% | 2 |
Speed | |||||||||
---|---|---|---|---|---|---|---|---|---|
Base | 20 ft. | 30 ft. | 40 ft. | 50 ft. | 60 ft. | 70 ft. | 80 ft. | 90 ft. | 100 ft. |
Armored | 20 ft. | 30 ft. | 40 ft. | 50 ft. | 60 ft. | 70 ft. | 80 ft. | 90 ft. | 100 ft. |
Don | Don Hastily | Remove |
---|---|---|
1 minute | 5 rounds | 1 minute1 |
|
Visit Template:3.5e Armor/doc to edit this text! (How does this work?)