Template:Creatures infobox: Difference between revisions
From Official Barotrauma Wiki
mNo edit summary |
(test 3) |
||
Line 1: | Line 1: | ||
{{#if: {{{tab1|}}}|{{#tag:tabber| | |||
{{{tab1}}}=|}} | |||
{|class="infobox responsive-table" align="right" | {|class="infobox responsive-table" align="right" | ||
! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}} | ! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}} | ||
Line 10: | Line 12: | ||
! colspan="2" class="infobox3 responsive-table" | Stats | ! colspan="2" class="infobox3 responsive-table" | Stats | ||
|- | |- | ||
| | | style="width: 50%" | Health | ||
{{{hp|100}}} | {{{hp|100}}} | ||
| | | style="width: 50%" | <span class="explain" title="When damage is dealt to an armored part of this creature, that damage will be reduced by this percentage">Armor</span> | ||
{{{armorval|N/A}}} | {{{armorval|N/A}}} | ||
|- | |- | ||
| | | style="width: 50%" | Weakpoints | ||
{{{weakpoints|None}}} | {{{weakpoints|None}}} | ||
| | | style="width: 50%" | Armored Points | ||
{{{armor|None}}} | {{{armor|None}}} | ||
|- | |- | ||
! colspan="2" class="infobox3 responsive-table" | Speed | ! colspan="2" class="infobox3 responsive-table" | Speed | ||
|- | |- | ||
| | | style="width: 50%" | Walking | ||
{{{walkspeed| | {{{walkspeed|N/A}}} | ||
| | | style="width: 50%" | Swimming | ||
{{{swimspeed|1}}} | {{{swimspeed|1}}} | ||
|- | |- | ||
! colspan="2" class="infobox3 responsive-table" | Behavior | ! colspan="2" class="infobox3 responsive-table" | Behavior | ||
|- | |- | ||
| | | style="width: 50%" | Aggressive? | ||
{{{behavior|Always}}} | {{{behavior|Always}}} | ||
| | | style="width: 50%" | Can Enter Submarine? | ||
{{{entersub|No}}} | {{{entersub|No}}} | ||
|- | |- | ||
| | | style="width: 50%" | Sight | ||
{{{sight|1}}} | {{{sight|1}}} | ||
| | | style="width: 50%" | Hearing | ||
{{{hearing|1}}} | {{{hearing|1}}} | ||
|- | |- | ||
! colspan="2" class="infobox3 responsive-table" | Drops<br | ! colspan="2" class="infobox3 responsive-table" | Drops<br><sup>only 1 of the items marked with an asterisk * may drop at a time</sup> | ||
|- | |- | ||
! | ! style="width: 50%" | Item(s) | ||
! | ! style="width: 50%" | Chance | ||
|- | |- | ||
| style="width:50%;" | {{{drops|N/A}}} | | style="width:50%;" | {{{drops|N/A}}} | ||
Line 51: | Line 53: | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:50%;" {{!}}{{{drops3|N/A}}}|}}{{#if: {{{chance3|}}} |<br> | {{!}} style="width:50%;" {{!}}{{{drops3|N/A}}}|}}{{#if: {{{chance3|}}} |<br> | ||
{{!}} style="width:50%;" {{!}}{{{chance3|N/A}}}|}} | {{!}} style="width:50%;" {{!}}{{{chance3|N/A}}}|}}<!-- | ||
####################################################################################### TAB 2 ####################################################################################### | |||
-->{{#if: {{{tab2|}}}| | |||
{{!}}-{{!}} | |||
{{{tab2}}}= | |||
! class="infobox2 responsive-table" colspan="3" {{!}} {{{name2|{{PAGENAME}}}}} | |||
{{!}}- | |||
{{!}} colspan="2" style="text-align:center" {{!}} {{#if: | |||
{{{customtext2|}}} | | |||
{{{customtext2}}} | | |||
{{ImageHandler | file = {{#if: {{{image2|}}} | {{{image2}}} | {{PAGENAME}}.png }} | imagewidth = {{#if: {{{imagewidth2|}}} | {{{imagewidth2}}}px | 200px }} }} | |||
}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Stats | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Health | |||
{{{hp2|{{{hp}}}}}} | |||
{{!}} style="width: 50%" {{!}} <span class="explain" title="When damage is dealt to an armored part of this creature, that damage will be reduced by this percentage">Armor</span> | |||
{{{armorval2|{{{armorval}}}}}} | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Weakpoints | |||
{{{weakpoints2|{{{weakpoints}}}}}} | |||
{{!}} style="width: 50%" {{!}} Armored Points | |||
{{{armor2|{{{armor}}}}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Speed | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Walking | |||
{{{walkspeed2|N/A}}} | |||
{{!}} style="width: 50%" {{!}} Swimming | |||
{{{swimspeed2|{{{swimspeed}}}}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Behavior | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Aggressive? | |||
{{{behavior2|Always}}} | |||
{{!}} style="width: 50%" {{!}} Can Enter Submarine? | |||
{{{entersub2|No}}} | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Sight | |||
{{{sight2|{{{sight}}}}}} | |||
{{!}} style="width: 50%" {{!}} Hearing | |||
{{{hearing2|{{{hearing}}}}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Drops<br><sup>only 1 of the items marked with an asterisk * may drop at a time</sup> | |||
{{!}}- | |||
! style="width: 50%" {{!}} Item(s) | |||
! style="width: 50%" {{!}} Chance | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}} {{{dropsB|{{{drops}}}}}} | |||
{{!}} style="width:50%;" {{!}} {{{chanceB|{{{chance}}}}}}{{#if: {{{drops2|}}} |<br> | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}}{{{dropsB2|{{{drops2}}}}}}|}}{{#if: {{{chance2|}}} |<br> | |||
{{!}} style="width:50%;" {{!}}{{{chanceB2|{{{chance2}}}}}}|}}{{#if: {{{drops3|}}} |<br> | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}}{{{dropsB3|{{{drops3}}}}}}|}}{{#if: {{{chance3|}}} |<br> | |||
{{!}} style="width:50%;" {{!}}{{{chanceB3|{{{chance3}}}}}}|}}<!-- | |||
-->|}}<!-- endif tab2 | |||
####################################################################################### TAB 3 ####################################################################################### | |||
-->{{#if: {{{tab3|}}}| | |||
{{!}}-{{!}} | |||
{{{tab3}}}= | |||
! class="infobox2 responsive-table" colspan="3" {{!}} {{{name3|{{PAGENAME}}}}} | |||
{{!}}- | |||
{{!}} colspan="2" style="text-align:center" {{!}} {{#if: | |||
{{{customtext3|}}} | | |||
{{{customtext3}}} | | |||
{{ImageHandler | file = {{#if: {{{image3|}}} | {{{image3}}} | {{PAGENAME}}.png }} | imagewidth = {{#if: {{{imagewidth3|}}} | {{{imagewidth3}}}px | 200px }} }} | |||
}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Stats | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Health | |||
{{{hp3|{{{hp}}}}}} | |||
{{!}} style="width: 50%" {{!}} <span class="explain" title="When damage is dealt to an armored part of this creature, that damage will be reduced by this percentage">Armor</span> | |||
{{{armorval3|{{{armorval}}}}}} | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Weakpoints | |||
{{{weakpoints3|{{{weakpoints}}}}}} | |||
{{!}} style="width: 50%" {{!}} Armored Points | |||
{{{armor3|{{{armor}}}}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Speed | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Walking | |||
{{{walkspeed3|N/A}}} | |||
{{!}} style="width: 50%" {{!}} Swimming | |||
{{{swimspeed3|{{{swimspeed}}}}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Behavior | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Aggressive? | |||
{{{behavior3|Always}}} | |||
{{!}} style="width: 50%" {{!}} Can Enter Submarine? | |||
{{{entersub3|No}}} | |||
{{!}}- | |||
{{!}} style="width: 50%" {{!}} Sight | |||
{{{sight3|1}}} | |||
{{!}} style="width: 50%" {{!}} Hearing | |||
{{{hearing3|1}}} | |||
{{!}}- | |||
! colspan="2" class="infobox3 responsive-table" {{!}} Drops<br><sup>only 1 of the items marked with an asterisk * may drop at a time</sup> | |||
{{!}}- | |||
! style="width: 50%" {{!}} Item(s) | |||
! style="width: 50%" {{!}} Chance | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}} {{{dropsC|{{{drops}}}}}} | |||
{{!}} style="width:50%;" {{!}} {{{chanceC|{{{chance}}}}}}{{#if: {{{drops2|}}} |<br> | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}}{{{dropsC2|{{{drops2}}}}}}|}}{{#if: {{{chance2|}}} |<br> | |||
{{!}} style="width:50%;" {{!}}{{{chanceC2|{{{chance2}}}}}}|}}{{#if: {{{drops3|}}} |<br> | |||
{{!}}- | |||
{{!}} style="width:50%;" {{!}}{{{dropsC3|{{{drops3}}}}}}|}}{{#if: {{{chance3|}}} |<br> | |||
{{!}} style="width:50%;" {{!}}{{{chanceC3|{{{chance3}}}}}}|}}<!-- | |||
-->|}}<!-- endif tab3 | |||
-->{{#if: {{{tab1}}}|{{2closingbraces}}|}}<!-- | |||
####################################################################################### END TABS ####################################################################################### | |||
--> | |||
|} | |} | ||
<includeonly>{{#if: {{{nocat|}}} | |[[Category:Creatures]]}}</includeonly> | <includeonly>{{#if: {{{nocat|}}} | |[[Category:Creatures]]}}</includeonly> | ||
<noinclude>{{clr}} | <noinclude>{{clr}} | ||
{{doc}}</noinclude> | {{doc}}</noinclude> |
Revision as of 12:10, 29 April 2021
{{#if: |
Creatures infobox | ||
---|---|---|
Stats | ||
Health
100 |
Armor
N/A | |
Weakpoints
None |
Armored Points
None | |
Speed | ||
Walking
N/A |
Swimming
1 | |
Behavior | ||
Aggressive?
Always |
Can Enter Submarine?
No | |
Sight
1 |
Hearing
1 | |
Drops only 1 of the items marked with an asterisk * may drop at a time | ||
Item(s) | Chance | |
N/A | N/ATemplate:2closingbraces |
This infobox goes on every creature page.
Main
Displayed in the infobox itself
Parameter | Description | Expected value | Notes |
---|---|---|---|
species | ... | String | |
name | ... | String | Default: PAGENAME |
image | PNG of the creature, obtained by using the wikiimage_character Console Commands in the creature editor | File | Default: PAGENAME.png |
imagewidth | ... | Integer | Default: 200px |
hp | HP (vitality) | Integer | Found in Content/Characters/CreatureName/CreatureName.xml, in <health> |
hpvariant | HP (vitality) of the variant if different | Integer | |
variantname | name of the variant (e.g. "Boss" for the Moloch Boss) | String | |
combatstrength | Combat strength (used by AI) | Integer | In the future, this will be used by AI target priorities tables |
swimspeed | ... | Float | Found in Content/Characters/CreatureName/Animations/CreatureNameSwimSlow, -SwimFast |
walkspeed | ... | Float | Found in Content/Characters/CreatureName/Animations/CreatureNameWalk, -Run |
weakpoints | Limb(s) that have lower resistances (higher damage multipliers) | String | Don't include the detailed values here. We used to do it, but now each limb and damage modifier has its own parameter, see the #Damage Modifiers section below |
armorval | Limb(s) that have higher resistances (lower damage multipliers) | String | Don't include the detailed values here. We used to do it, but now each limb and damage modifier has its own parameter, see the #Damage Modifiers section below |
entersub | Can the creature enter the submarine | Boolean (yes/defaults to no) | |
sight | ... | Float | Found in Content/Characters/CreatureName/CreatureName.xml, in <ai> |
hearing | ... | Float | Found in Content/Characters/CreatureName/CreatureName.xml, in <ai> |
sightvariant | Sight of the variant, if different | Float | note |
hearingvariant | Hearing of the variant, if different | Float | note |
behavior | Is the creature agressive vs subs, characters... | String | In the future, an AI target priorities table will cover this in detail Found in Content/Characters/CreatureName/CreatureName.xml, in <ai> |
drops drops2 drops3 |
Items found on the creature's corpse | {{hl|itemname}} x [number if > 1] |
Found in Content/Characters/CreatureName/CreatureName.xml, in <inventory> |
chance chance2 chance3 |
probability for each drop | Integer | Don't include the % sign
|
Damage Modifiers
Displayed in the ==Defense== section of the creature page, using the Damage multipliers template
Parameter | Description | Expected value | Notes |
---|---|---|---|
stunimmunity bleedingimmunity burnimmunity poisonimmunity |
Immunities | Boolean (set to 1 if true, don't specify if false) | Found in Content/Characters/CreatureName/CreatureName.xml, in <health> |
poisonvulnerability empvulnerability |
Vulnerabilities | Float | |
limb1 limb2 limb3 limb4 limb5 |
name of each limb (or group of limbs) that has its own specific damage modifiers | String | Found in Content/Characters/CreatureName/CreatureNameDefaultRagdoll.xml, look for <limb> and then <damagemodifiers> under each limb. If there is no damage modifier, don't include the limb. Group limbs that have the same damage modifiers when possible. Notify 31percent if somehow more than 5 different limb groups are needed. |
limb1[affliction] limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage limb2[affliction] (...) limb5[affliction] |
Each individual limb damage multiplier | Float | For example, if limb3 = Tentacle, and if Tentacle has <damagemodifier (...) afflictiontypes="bleeding" damagemultiplier="0.5" (...) /> , then input limb3bleeding = 0.5
|
limb1minseverancedamage limb2minseverancedamage (...) |
minseverancedamage for that limb | Float | Found in Content/Characters/CreatureName/CreatureNameDefaultRagdoll.xml Multiply that value by 100 to get the % value: if file has minseverancedamage = 0.025 , the value in here should be 2.5Don't include the % sign
|
limb1severanceprobabilitymodifier limb2severanceprobabilitymodifier (...) |
severanceprobabilitymodifier for that limb | Float | Found in Content/Characters/CreatureName/CreatureNameDefaultRagdoll.xml, in <joint>s, at the bottom of the file Multiply that value by 100 to get the % value: if file has severanceprobabilitymodifier = 0.025 , the value in here should be 2.5Don't include the % sign
|
limb1note limb2note (...) |
Additional notes about that limb | String |
Attacks
Displayed in the ==Attacks== section of the creature page, using the Attacks template
Parameter | Description | Expected value | Notes |
---|---|---|---|
attack1 attack2 attack3 attack4 |
Name of each attack | String | Found in Content/Characters/CreatureName/CreatureNameDefaultRagdoll.xml, look for <limb> and then <attack> |
The following also applies to attack2, attack3, and attack4 | |||
attack1target | Target type of attack1 | String (allowed values: character, submarine, any) | |
attack1duration | Float | ||
attack1context | "ground", "water", or "any" | ||
attack1itemdamage | Integer | ||
attack1note | String | ||
attack1penetration | Integer | ||
attack1structuredamage | Integer | ||
attack1explosionrange | Integer | ||
attack1explosionrange2 | only used for the black moloch for now. Appears directly after attack1explosionrange | Wikitext | |
attack1cooldown | Float | ||
attack1bitewounds | Float | ||
attack1bitewoundschance | probability to apply bite wounds | Integer | Don't include the % sign
|
attack1bleeding | Float | ||
attack1bleedingchance | probability to apply bleeding | Integer | Don't include the % sign
|
attack1slowparalysis | Float | ||
attack1slowparalysischance | probability to apply slowparalysis | Integer | Don't include the % sign
|
attack1bloodloss | Float | ||
attack1bloodlosschance | probability to apply bloodloss | Integer | Don't include the % sign
|
attack1stun | Float | ||
attack1stuninside | Stun applied only to character that are inside a submarine | Float | |
attack1stunchance | probability to apply stun | Integer | Don't include the % sign
|
attack1huskinfection | Float | ||
attack1huskinfectionchance | probability to apply husk infection | Integer | Don't include the % sign
|
attack1burn | Float | ||
attack1burnchance | probability to apply burn | Integer | Don't include the % sign
|
attack1watchersgaze | Float | ||
attack1emp | only used for the black moloch for now. | Float | |
attack1gunshotwound | Float | ||
attack1deeptissuedamage | Float |
The above documentation is transcluded from Template:Creatures infobox/doc. (edit | history)