Difference between revisions of "Template:PFRPG Statblock"

From Bearscape Wiki
Jump to: navigation, search
m
m (Bugfix: Why were these missing?)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div>
+
{{#css:
<div style="background-color: black; border-top-style: double; border-bottom-style: double; color: white; text-transform: uppercase;"><div style="float: left;">&nbsp;'''{{{name}}}'''</div>{{#if: {{{challengeRating|}}}|<div style="float: right;">'''CR''' {{{challengeRating}}}&nbsp;</div>}}<div style="clear: both;"></div></div>
+
div.pfStat > .pfHeader {
 
+
    background-color: black;
 +
    border-style: double none;
 +
    color: white;
 +
    font-weight: bold;
 +
    overflow: hidden;
 +
    padding: 0 0.5em;
 +
    text-transform: uppercase;
 +
}
 +
 
 +
div.pfStat > .pfSection {
 +
    border-style: groove none;
 +
    overflow: hidden;
 +
    padding: 0 0.5em;
 +
    text-transform: uppercase;
 +
}
 +
 
 +
div.pfStat > * > .weaponBlock {
 +
    display: inline-block;
 +
    vertical-align: top;
 +
}
 +
}}<includeonly><div class="pfStat">
 +
<div class="pfHeader">{{{name}}}</div>
 +
 
 
{{#if: {{{xp|}}}|'''XP''' {{{xp}}}<br />}}{{#if: {{{raceClass|}}}|{{{raceClass}}}<br />}}{{{creatureType}}}<br />
 
{{#if: {{{xp|}}}|'''XP''' {{{xp}}}<br />}}{{#if: {{{raceClass|}}}|{{{raceClass}}}<br />}}{{{creatureType}}}<br />
 
'''Init''' {{{init|0}}}; '''Senses''' {{{senses}}}<br />
 
'''Init''' {{{init|0}}}; '''Senses''' {{{senses}}}<br />
{{#if: {{{xp|}}}|'''Aura''' {{{aura}}} }}
+
{{#if: {{{aura|}}}|'''Aura''' {{{aura}}} }}
<div style="border-top-style: groove; border-bottom-style: groove; padding-left: 1em;">DEFENSE</div>
+
<div class="pfSection">Defense</div>
  
'''AC''' {{#expr: 10 + {{{acArmor|0}}} + {{{acNatural|0}}} + {{{acDex|0}}} + {{{acDodge|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }},
+
'''AC''' {{#expr: 10 + {{{acArmor|0}}} + {{{acShield|0}}} + {{{acNatural|0}}} + {{{acDex|0}}} + {{{acDodge|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }},
 
touch {{#expr: 10 + {{{acDex|0}}} + {{{acDodge|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }},
 
touch {{#expr: 10 + {{{acDex|0}}} + {{{acDodge|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }},
flat-footed {{#expr: 10 + {{{acArmor|0}}} + {{{acNatural|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }}<br />
+
flat-footed {{#expr: 10 + {{{acArmor|0}}} + {{{acShield|0}}} + {{{acNatural|0}}} + {{#ifexpr:{{{acDex|0}}} < 0|{{{acDex}}}|0}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}} }}
 +
{{#ifexpr: {{{acArmor|0}}} + {{{acShield|0}}} + {{{acNatural|0}}} + {{{acDex|0}}} + {{{acDodge|0}}} + {{{acSize|0}}} + {{{acDeflect|0}}} + {{{acMisc|0}}}
 +
|({{Hlist
 +
|{{#if:{{{acArmor|}}}|{{{acArmor}}} Armor}}
 +
|{{#if:{{{acShield|}}}|{{{acShield}}} Shield}}
 +
|{{#if:{{{acDeflect|}}}|{{{acDeflect}}} Deflection}}
 +
|{{#if:{{{acDex|}}}|{{{acDex}}} Dex}}
 +
|{{#if:{{{acDodge|}}}|{{{acDodge}}} Dodge}}
 +
|{{#if:{{{acNatural|}}}|{{{acNatural}}} Natural}}
 +
|{{#if:{{{acSize|}}}|{{{acSize}}} Size}}
 +
|{{#if:{{{acMisc|}}}|{{{acMisc}}} Misc.}}
 +
}})}}<br />
 
'''hp''' {{{hitPoints}}} ({{{hitDice}}})<br />
 
'''hp''' {{{hitPoints}}} ({{{hitDice}}})<br />
'''Fort''' {{{fortSave}}} '''Reflex''' {{{reflexSave}}} '''Will''' {{{willSave}}}<br />
+
'''Fort''' {{{fortSave}}} '''Reflex''' {{{reflexSave}}} '''Will''' {{{willSave}}}<br />{{Hlist
<!-- // NONFUNCTIONAL //
+
|sep=;&#32;
{{#if: {{{defAbilities|}}}|'''Defensive Abilities''' {{{defAbilities}}} }}{{#if: {{{damageResistance|}}}|'''DR''' {{{damageResistance}}} }}{{#if: {{{defAbilities|}}}|'''Defensive Abilities''' {{{defAbilities}}} }}-->
+
|{{#if: {{{defAbilities|}}}|'''Defensive Abilities''' {{{defAbilities}}}}}
<div style="border-top-style: groove; border-bottom-style: groove; padding-left: 1em;">OFFENSE</div>
+
|{{#if: {{{DR|}}}|'''DR''' {{{DR}}}}}
 +
|{{#if: {{{immune|}}}|'''Immune''' {{{immune}}}}}
 +
|{{#if: {{{resist|}}}|'''Resist''' {{{resist}}}}}
 +
|{{#if: {{{SR|}}}|'''SR''' {{{SR}}}}}
 +
}}
 +
<div class="pfSection">Offense</div>
  
 
'''Speed''' {{{speed}}}<br />
 
'''Speed''' {{{speed}}}<br />
{{#if: {{{meleeWeapons|}}}|<span style="display: inline-block; vertical-align: top;">'''Melee'''</span> <span style="display: inline-block;">{{{meleeWeapons}}}</span><br />
+
{{#if: {{{meleeWeapons|}}}|<span class="weaponBlock">'''Melee'''</span> <span class="weaponBlock">{{{meleeWeapons}}}</span><br />
}}{{#if: {{{rangedWeapons|}}}|<span style="display: inline-block; vertical-align: top;">'''Ranged'''</span> <span style="display: inline-block;">{{{rangedWeapons}}}</span><br />
+
}}{{#if: {{{rangedWeapons|}}}|<span class="weaponBlock">'''Ranged'''</span> <span class="weaponBlock">{{{rangedWeapons}}}</span><br />
}}{{#if: {{{specialAttacks|}}}|'''Special Attacks''' {{{specialAttacks}}}<br />
+
}}{{#if: {{{specAttacks|}}}|'''Special Attacks''' {{{specAttacks}}}<br />
}}{{#if: {{{magic|}}}|{{{magic}}}<br />}}
+
}}{{#if: {{{magic|}}}|{{{magic}}}}}
<div style="border-top-style: groove; border-bottom-style: groove; padding-left: 1em;">STATISTICS</div>
+
<div class="pfSection">Statistics</div>
  
 
'''Str''' {{{str|-}}} '''Dex''' {{{dex|-}}} '''Con''' {{{con|-}}} '''Int''' {{{int|-}}} '''Wis''' {{{wis|-}}} '''Cha''' {{{cha|-}}}<br />
 
'''Str''' {{{str|-}}} '''Dex''' {{{dex|-}}} '''Con''' {{{con|-}}} '''Int''' {{{int|-}}} '''Wis''' {{{wis|-}}} '''Cha''' {{{cha|-}}}<br />
Line 27: Line 65:
 
{{#if: {{{feats|}}}|'''Feats''' {{{feats}}}<br />
 
{{#if: {{{feats|}}}|'''Feats''' {{{feats}}}<br />
 
}}{{#if: {{{skills|}}}|'''Skills''' {{{skills}}}<br />
 
}}{{#if: {{{skills|}}}|'''Skills''' {{{skills}}}<br />
 +
}}{{#if: {{{traits|}}}|'''Traits''' {{{traits}}}<br />
 +
}}{{#if: {{{drawbacks|}}}|'''Drawbacks''' {{{drawbacks}}}<br />
 
}}{{#if: {{{language|}}}|'''Languages''' {{{language}}}<br />
 
}}{{#if: {{{language|}}}|'''Languages''' {{{language}}}<br />
 
}}{{#if: {{{specQualities|}}}|'''SQ''' {{{specQualities}}}<br />
 
}}{{#if: {{{specQualities|}}}|'''SQ''' {{{specQualities}}}<br />
 
}}{{#if: {{{combatGear|}}}|'''Combat Gear''' {{{combatGear}}}{{#if: {{{gear|}}}|&#59; '''Other'''&nbsp;}} }}{{#if: {{{gear|}}}|'''Gear''' {{{gear}}} }}
 
}}{{#if: {{{combatGear|}}}|'''Combat Gear''' {{{combatGear}}}{{#if: {{{gear|}}}|&#59; '''Other'''&nbsp;}} }}{{#if: {{{gear|}}}|'''Gear''' {{{gear}}} }}
</div></includeonly>
+
{{#if: {{{specAbilityToggle|}}}|
<noinclude>This is a template for creating accessible mechanical information for creatures and characters of the Pathfinder Roleplaying Game. This is based on the same templates used for NPCs on Paizo's [http://paizo.com/prd|Pathfinder Reference Document] with some visual cues taken from a paperback copy of ''Rasputin Must Die!''.
+
<div class="pfSection">Special Abilities</div>}}</div></includeonly><noinclude>
 
+
This is a template for creating accessible mechanical information for creatures and characters of the Pathfinder Roleplaying Game. This is based on the same templates used for NPC and bestiary entries on Paizo's [http://paizo.com/prd Pathfinder Reference Document]. Don't understand how to read it? [http://paizo.com/pathfinderRPG/prd/bestiary/introduction.html click here!]
All material on this page is licensed as Open Game Content under the [http://www.opengamingfoundation.org/ogl.html|Open Game License].
 
  
Planned Features:
+
All material on this page is licensed as Open Game Content under the [http://www.opengamingfoundation.org/ogl.html Open Game License]. This does not, however, necessarily extend to pages that use this template.
* AC breakdown
 
* Defensive feature list (both will require being able to add separators to lists of an arbitrary size)
 
  
 +
Everything SHOULD work. Stay tuned for magic templates! Until then, write it in by hand!
  
 
== Parameters ==
 
== Parameters ==
Line 45: Line 83:
 
=== Overview ===
 
=== Overview ===
 
* name
 
* name
* challengeRating (optional)
+
* ''challengeRating (optional, disabled)''
 
* xp (optional)
 
* xp (optional)
 
* raceClass (optional)
 
* raceClass (optional)
Line 55: Line 93:
 
=== Defense ===
 
=== Defense ===
 
* acArmor (default: 0)
 
* acArmor (default: 0)
 +
* acShield (default: 0)
 
* acNatural (default: 0)
 
* acNatural (default: 0)
 
* acDex (default: 0)
 
* acDex (default: 0)
Line 66: Line 105:
 
* reflexSave
 
* reflexSave
 
* willSave
 
* willSave
* ''defAbilities (optional, non-functional)''
+
* defAbilities (optional)
* ''damageResistance (optional, non-functional)''
+
* DR (optional)
* ''immune (optional, non-functional)''
+
* immune (optional)
* ''resist (optional, non-functional)''
+
* resist (optional)
* ''spellResistance (optional, non-functional)''
+
* SR (optional)
  
 
=== Offense ===
 
=== Offense ===
Line 76: Line 115:
 
* meleeWeapons (optional)
 
* meleeWeapons (optional)
 
* rangedWeapons (optional)
 
* rangedWeapons (optional)
* specialAttacks (optional)
+
* specAttacks (optional)
* magic (optional; see [[Template:PFRPG_preparedSpells]], [[Template:PFRPG_knownSpells]], [[Template:PFRPG_psionicPowers]])
+
* magic (optional)
  
 
=== Statistics ===
 
=== Statistics ===
Line 91: Line 130:
 
* feats (optional)
 
* feats (optional)
 
* skills (optional)
 
* skills (optional)
 +
* traits (optional)
 +
* drawbacks (optional)
 +
* language (optional)
 
* specQualities (optional)
 
* specQualities (optional)
* language (optional)
 
 
* combatGear (optional)
 
* combatGear (optional)
 
* gear (optional)
 
* gear (optional)
 +
* specAbilityToggle (optional)
  
 
== Example ==
 
== Example ==
Line 104: Line 146:
 
|init=+1
 
|init=+1
 
|senses=perception +0
 
|senses=perception +0
 +
|aura=Douchebaggery (10 ft.)
 
|acArmor=+6
 
|acArmor=+6
 
|acDex=+1
 
|acDex=+1
Line 113: Line 156:
 
|speed=20 feet
 
|speed=20 feet
 
|meleeWeapons=greatsword +5 (2d6+4)<br />dagger +4 (1d4+3)
 
|meleeWeapons=greatsword +5 (2d6+4)<br />dagger +4 (1d4+3)
|rangedWeapons=longbow +2 (1d8)
+
|rangedWeapons=longbow +2 (1d8/x3)
 
|str=17
 
|str=17
 
|dex=13
 
|dex=13
Line 126: Line 169:
 
|skills=Bluff +1, Climb +7, Intimidate +4, Perception +0
 
|skills=Bluff +1, Climb +7, Intimidate +4, Perception +0
 
|language=Common, Musclehead
 
|language=Common, Musclehead
|combatGear=potion of cure light wounds
+
|combatGear=''potion of cure light wounds''
|gear=chain mail, dagger, longsword, 12 gp
+
|gear=chain mail, dagger, greatsword, 12 gp
 
}}
 
}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:52, 23 February 2017

This is a template for creating accessible mechanical information for creatures and characters of the Pathfinder Roleplaying Game. This is based on the same templates used for NPC and bestiary entries on Paizo's Pathfinder Reference Document. Don't understand how to read it? click here!

All material on this page is licensed as Open Game Content under the Open Game License. This does not, however, necessarily extend to pages that use this template.

Everything SHOULD work. Stay tuned for magic templates! Until then, write it in by hand!

Parameters[edit]

Sorted by category

Overview[edit]

  • name
  • challengeRating (optional, disabled)
  • xp (optional)
  • raceClass (optional)
  • creatureType
  • init (default: 0)
  • senses
  • aura (optional)

Defense[edit]

  • acArmor (default: 0)
  • acShield (default: 0)
  • acNatural (default: 0)
  • acDex (default: 0)
  • acDodge (default: 0)
  • acDeflect (default: 0)
  • acSize (default: 0)
  • acMisc (default: 0)
  • hitPoints
  • hitDice
  • fortSave
  • reflexSave
  • willSave
  • defAbilities (optional)
  • DR (optional)
  • immune (optional)
  • resist (optional)
  • SR (optional)

Offense[edit]

  • speed
  • meleeWeapons (optional)
  • rangedWeapons (optional)
  • specAttacks (optional)
  • magic (optional)

Statistics[edit]

  • str (default: -)
  • dex (default: -)
  • con (default: -)
  • int (default: -)
  • wis (default: -)
  • cha (default: -)
  • BAB (default: 0)
  • CMB (default: 0)
  • CMD (default: 10)
  • feats (optional)
  • skills (optional)
  • traits (optional)
  • drawbacks (optional)
  • language (optional)
  • specQualities (optional)
  • combatGear (optional)
  • gear (optional)
  • specAbilityToggle (optional)

Example[edit]

Mister Goodguy

Human fighter 1
CE medium humanoid (human)
Init +1; Senses perception +0
Aura Douchebaggery (10 ft.)

Defense

AC 17, touch 11, flat-footed 16 (+6 Armor, +1 Dex)
hp 13 (1d10+3)
Fort +4 Reflex +1 Will -1

Offense

Speed 20 feet
Melee greatsword +5 (2d6+4)
dagger +4 (1d4+3)

Ranged longbow +2 (1d8/x3)

Statistics

Str 17 Dex 13 Con 14 Int 13 Wis 8 Cha 11
Base Atk +1 CMB +4 CMD 15
Feats Power Attack, Cleave, Weapon Focus (greatsword)
Skills Bluff +1, Climb +7, Intimidate +4, Perception +0
Languages Common, Musclehead
Combat Gear potion of cure light wounds; Other Gear chain mail, dagger, greatsword, 12 gp