From Dark and Darker Wiki

(Updated health formula.)
(Fixed the health formula to use the character data value)
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Strength</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Strength</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|strength}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|strength}}</div></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Vigor</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Vigor</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|vigor}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|vigor}}</div></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Agility</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Agility</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|agility}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|agility}}</div></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Dexterity</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Dexterity</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|dexterity}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|dexterity}}</div></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Will</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Will</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|will}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|will}}</div></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Knowledge</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Knowledge</div>
Line 30: Line 30:
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Resourcefulness</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Resourcefulness</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{#if:true|{{Class Data|{{{1}}}|attributes|resourcefulness}}}}</div></div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|resourcefulness}}</div></div><br>
 
<div class="line"></div>
<div class="line"></div>
<div class="stats-container" style="clear: both;">
<div class="stats-container" style="clear: both;">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Health</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Health</div>
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;margin-right:20px;"><!--
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;margin-right:20px;">{{Class Data|{{{1}}}|attributes|BaseHealth}}</div></div>
-->{{#vardefine:sum|{{#expr:{{Class Data|{{{1}}}|attributes|strength}}*0.25+{{Class Data|{{{1}}}|attributes|vigor}}*0.75}}}}<!--
-->{{#ifexpr:{{#var:sum}}<=10|{{#expr:ceil(75+3*{{#var:sum}})}}|{{#expr:ceil(105+2*({{#var:sum}}-10))}}}}</div></div>
{{#ifeq:{{lc:{{{3|}}}}}|yes
{{#ifeq:{{lc:{{{3|}}}}}|yes
|<div class="stats-container" style="clear: both;">
|<div class="stats-container" style="clear: both;">

Latest revision as of 00:55, 15 November 2024

Usage

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox Class|Wizard|'Yer a wizard, Harry!'|yes}}

Results in:

Wizard.png
Wizard
'Yer a wizard, Harry!'
Strength
6
Vigor
7
Agility
15
Dexterity
17
Will
20
Knowledge
25
Resourcefulness
15

Health
80.25
Memory
19