Difference between revisions of "Template:Enemy/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added vision)
old>Realpsojed
(calculation of resistances based on body type)
Line 4: Line 4:
Usage: The page itself must contain the Enemy's data before this Template works. For example, if I wanted to create the [[Skeleton Swordsman]] page, I'll add this code to the start of the page:
Usage: The page itself must contain the Enemy's data before this Template works. For example, if I wanted to create the [[Skeleton Swordsman]] page, I'll add this code to the start of the page:


  <nowiki><includeonly>{{#switch: {{{1}}}
  <nowiki><includeonly>"<includeonly>{{#switch: {{{1}}}
<!-- Updated with Npc Parser V 0.52 -->
|Level = 5
|Level = 5
|Type = Undead
|Type = Undead
|Health = 125
|Matter = Bones
|Energy = 60
|Faction = Undead
|STR = 14
|Size = Medium
|AGL = 6
|XP = 70
|PRC = 5
|Health = 75
|VIT = 14
|Energy = 25
|WIL = 5
|Protection = 0
|Damage1 = 23
|Damage1 = 15 |DamageType1 = Crushing
|DamageType1 = Slashing
|Damage2 = 23 |DamageType2 = Rending
|Damage2 = {{Unholy|3}}
|STR = 0
|DamageType2 = {{Unholy}}
|AGL = 0
|Accuracy = 85
|VIT = 0
|Protection = 2
|PRC = 14
|DodgeChance = 0
|WIL = 6
|BlockChance = 12
|Accuracy = 5
|BlockPower = 20
|DodgeChance = 5
|FumbleChance = 30
|BlockChance = 0
|CritChance = 1
|BlockPower = 75
|CritEfficiency = 100
|CritChance = 0
|CounterChance = 3
|CritEfficiency = 10
|ArmorPiercing = 15
|ArmorPiercing = 0
|Vision = 6
|CounterChance = 20
|MagicPower = 0
|FumbleChance = 3
|BleedChance = 2
|Fortitude = 0
|BleedResistance = 100
|Stealth = 0
|PainResistance = 100
|HealthRestoration = 30
|Energy Restoration = 0
|Cooldowns Duration = 0
|MoveResistance = 0
|ControlResistance = 5
|BleedResistance = 0
|BleedChance = 40
|StunChance = 0
|StunChance = 0
|DazeChance = 0
|DazeChance = 0
|ControlResistance = 33
|KnockbackChance = 3
|KnockbackChance = 0
|ImmobilizeChance = 0
|ImmobilizeChance = 0
|MoveResistance = 0
|Stagger Chance = 0
|Damage Reflection = 0
|Vision = 0
|BonusRange = 0
|BonusRange = 0
|LifeLeech = 0
|LifeLeech = 0
|EnergyLeech = 0
|EnergyLeech = 7
|Healing Efficiency = 0
|PainResistance = 1
|MagicPower = 0
|PhysicalResistance = 0
|PhysicalResistance = 0
|NatureResistance = 0
|NatureResistance = 0
|MagicResistance = 0
|MagicResistance = 0
|SlashingResistance = 25
|SlashingResistance = 0
|PiercingResistance = 25
|PiercingResistance = 0
|CrushingResistance = -10
|CrushingResistance = 0
|RendingResistance = 0
|RendingResistance = 0
|FireResistance = 10
|FireResistance = 0
|FrostResistance = 0
|ShockResistance = 0
|ShockResistance = 0
|PoisonResistance = 0
|CausticResistance = 0
|CausticResistance = 0
|PoisonResistance = 100
|FrostResistance = 0
|ArcaneResistance = 0
|ArcaneResistance = 0
|UnholyResistance = 0
|UnholyResistance = 0
|SacredResistance = -25
|SacredResistance = 0
|PsionicResistance = -15
|PsionicResistance = 0
|Faction = Dead March
|Size = Medium
|XP = 60
|Description = Hastily armed under the orders of a necromancer, this skeleton is quite capable of dispatching an inexperienced adversary.
|Description = Hastily armed under the orders of a necromancer, this skeleton is quite capable of dispatching an inexperienced adversary.
|#default =  
|#default =  
}}</includeonly></nowiki>
}}</includeonly></includeonly></nowiki>
This data is invisible on the page itself, thanks to the includeonly tags.
This data is invisible on the page itself, thanks to the includeonly tags.


Line 76: Line 84:


==== Enemy body types ====
==== Enemy body types ====
Enemies of certain body types have additional attributes. Until the template is updated to calculate them automatically, you need to add these values manually:
Enemies of certain body types have additional attributes. These attributes are calculated automatically from the Matter parameter.
 
<nowiki>|Matter = Bones</nowiki>
"flesh":
        bHealing_Received += 10
"bones":
        bBlunt_Resistance -= 10
        bPiercing_Resistance += 25
        bSlashing_Resistance += 15
        bPoison_Resistance += 100
        bFire_Resistance += 10
"ectoplasm":
        bPhysical_Resistance += 75
        bNature_Resistance += 90
        bMagic_Resistance -= -25
"ooze":
        bCaustic_Resistance += 100
        bPoison_Resistance += 75
        bFire_Resistance -= 75
"chitin":
        bPhysical_Resistance += 25
        bCaustic_Resistance -= 25
{{Doc/end}}
{{Doc/end}}

Revision as of 15:37, 25 May 2021

Template-info.png Documentation

This is template created for use together with the Template:Tooltip hover box template on a specific Enemy's page or Enemy's tooltip page.

Usage: The page itself must contain the Enemy's data before this Template works. For example, if I wanted to create the Skeleton Swordsman page, I'll add this code to the start of the page:

<includeonly>"<includeonly>{{#switch: {{{1}}}
<!-- Updated with Npc Parser V 0.52 -->
|Level = 5
|Type = Undead
|Matter = Bones
|Faction = Undead
|Size = Medium
|XP = 70
|Health = 75
|Energy = 25
|Protection = 0
|Damage1 = 15 |DamageType1 = Crushing 
|Damage2 = 23 |DamageType2 = Rending 
|STR = 0
|AGL = 0
|VIT = 0
|PRC = 14
|WIL = 6
|Accuracy = 5
|DodgeChance = 5
|BlockChance = 0
|BlockPower = 75
|CritChance = 0
|CritEfficiency = 10
|ArmorPiercing = 0
|CounterChance = 20
|FumbleChance = 3
|Fortitude = 0
|Stealth = 0
|HealthRestoration = 30
|Energy Restoration = 0
|Cooldowns Duration = 0
|MoveResistance = 0
|ControlResistance = 5
|BleedResistance = 0
|BleedChance = 40
|StunChance = 0
|DazeChance = 0
|KnockbackChance = 3
|ImmobilizeChance = 0
|Stagger Chance = 0
|Damage Reflection = 0
|Vision = 0
|BonusRange = 0
|LifeLeech = 0
|EnergyLeech = 7
|Healing Efficiency = 0
|PainResistance = 1
|MagicPower = 0
|PhysicalResistance = 0
|NatureResistance = 0
|MagicResistance = 0
|SlashingResistance = 0
|PiercingResistance = 0
|CrushingResistance = 0
|RendingResistance = 0
|FireResistance = 0
|ShockResistance = 0
|PoisonResistance = 0
|CausticResistance = 0
|FrostResistance = 0
|ArcaneResistance = 0
|UnholyResistance = 0
|SacredResistance = 0
|PsionicResistance = 0
|Description = Hastily armed under the orders of a necromancer, this skeleton is quite capable of dispatching an inexperienced adversary.
|#default = 
}}</includeonly></includeonly>

This data is invisible on the page itself, thanks to the includeonly tags.


Next, copy this code to Skeleton Swordsman or Skeleton Swordsman/Tooltip or Skeleton Swordsman/anything page:

{{ {{{1|Tooltip hover box}}}
|title= {{Enemy}}
}}

It will automatically load the sword's data and fill them into this format. Go to Skeleton Swordsman to see the result.


Enemy body types

Enemies of certain body types have additional attributes. These attributes are calculated automatically from the Matter parameter.

|Matter = Bones