Difference between revisions of "Template:Enemy/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(calculation of resistances based on body type)
(update doc)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
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.
This is template created for use together with the [[Template:Tooltip hover box]] template. Copy this code to a specific [[Enemies|Enemy]] page (for example, [[Skeleton Swordsman]]):
<nowiki>{{ {{{1|Tooltip hover box}}}|title= {{Enemy}} }}</nowiki>
It will automatically load the attrbutes from [[Enemy data]] and fill them into the format you see below.


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:
You can provide the enemy name as first parameter, otherwise the pagename is used.


<nowiki><includeonly>"<includeonly>{{#switch: {{{1}}}
==== Enemy body types ====
<!-- Updated with Npc Parser V 0.52 -->
Enemies gain certain additional attributes (mainly Resistances) from their body types. These bonuses are hardcoded in the Enemy template as the "Matter" variable and added to each enemy's base attributes.
|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></nowiki>
This data is invisible on the page itself, thanks to the includeonly tags.


 
==== Example ====
Next, copy this code to [[Skeleton Swordsman]] or [[Skeleton Swordsman/Tooltip]] or [[Skeleton Swordsman/anything]] page:
{{ {{{1|Tooltip hover box}}}|title= {{Enemy|Skeleton Swordsman}}}}
<nowiki>
{{ {{{1|Tooltip hover box}}}
|title= {{Enemy}}
}}</nowiki>
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.
<nowiki>|Matter = Bones</nowiki>
{{Doc/end}}
{{Doc/end}}

Latest revision as of 21:43, 10 December 2023

Template-info.png Documentation

This is template created for use together with the Template:Tooltip hover box template. Copy this code to a specific Enemy page (for example, Skeleton Swordsman):

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

It will automatically load the attrbutes from Enemy data and fill them into the format you see below.

You can provide the enemy name as first parameter, otherwise the pagename is used.

Enemy body types

Enemies gain certain additional attributes (mainly Resistances) from their body types. These bonuses are hardcoded in the Enemy template as the "Matter" variable and added to each enemy's base attributes.

Example


Skeleton Swordsman
Tier Data does not exist.
Skeleton Swordsman
Health:
Energy:

Damage

Protection
Head 0
Body 0
Arms 0
Legs 0

Resistances

Defensive stats
Block Chance 0%
Bleed Res. 0%
Pain Res. 0%
Block Power 0
Control Res. 0%
Fortitude 0%
Dodge Chance 0%
Move Res. 0%
Crit Avoidance 0%

Offensive stats
Crit Chance 0%
Counter Chance 0%
Stun Chance 0%
Knockb. Chance 0%
Life Leech 0%
Vision 0
Crit Efficiency ×1
Bleed Chance 0%
Daze Chance 0%
Immob. Chance 0%
Energy Leech 0%
Bonus Range 0
Accuracy 0%
Fumble Chance 0%
Stagger Chance 0%
Magic Power 100%
Armor Pen. 0%
Bodypart Dmg 0%

Attributes
STR:
AGL:
PRC:
VIT:
WIL:

Miscellaneous
Faction:
Size:
XP:

Show moreShow less
Data does not exist.