Difference between revisions of "Template:Enemy/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added vision)
(update doc)
 
(2 intermediate revisions by 2 users 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>
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:
It will automatically load the attrbutes from [[Enemy data]] and fill them into the format you see below.
 
<nowiki><includeonly>{{#switch: {{{1}}}
|Level = 5
|Type = Undead
|Health = 125
|Energy = 60
|STR = 14
|AGL = 6
|PRC = 5
|VIT = 14
|WIL = 5
|Damage1 = 23
|DamageType1 = Slashing
|Damage2 = {{Unholy|3}}
|DamageType2 = {{Unholy}}
|Accuracy = 85
|Protection = 2
|DodgeChance = 0
|BlockChance = 12
|BlockPower = 20
|FumbleChance = 30
|CritChance = 1
|CritEfficiency = 100
|CounterChance = 3
|ArmorPiercing = 15
|Vision = 6
|MagicPower = 0
|BleedChance = 2
|BleedResistance = 100
|PainResistance = 100
|StunChance = 0
|DazeChance = 0
|ControlResistance = 33
|KnockbackChance = 0
|ImmobilizeChance = 0
|MoveResistance = 0
|BonusRange = 0
|LifeLeech = 0
|EnergyLeech = 0
|PhysicalResistance = 0
|NatureResistance = 0
|MagicResistance = 0
|SlashingResistance = 25
|PiercingResistance = 25
|CrushingResistance = -10
|RendingResistance = 0
|FireResistance = 10
|FrostResistance = 0
|ShockResistance = 0
|CausticResistance = 0
|PoisonResistance = 100
|ArcaneResistance = 0
|UnholyResistance = 0
|SacredResistance = -25
|PsionicResistance = -15
|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.
|#default =
}}</includeonly></nowiki>
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:
  <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.


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


==== 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 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.


"flesh":
==== Example ====
        bHealing_Received += 10
{{ {{{1|Tooltip hover box}}}|title= {{Enemy|Skeleton Swordsman}}}}
"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}}

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.