Difference between revisions of "Template:LL"

From Tales of Maj'Eyal
Jump to: navigation, search
m
m
 
Line 27: Line 27:
 
</noinclude>
 
</noinclude>
 
<includeonly><onlyinclude>{{#expr: {{{1|}}} + ({{#expr: {{{4|}}} * {{#expr: {{arsum|{{liferank/minadj|{{{2|}}} }}|{{liferank/maxadj|{{{2|}}}|{{{3|}}} }}|{{#expr:{{{3|}}}-1 }} }} }} }}) round 0 }} </includeonly></onlyinclude>
 
<includeonly><onlyinclude>{{#expr: {{{1|}}} + ({{#expr: {{{4|}}} * {{#expr: {{arsum|{{liferank/minadj|{{{2|}}} }}|{{liferank/maxadj|{{{2|}}}|{{{3|}}} }}|{{#expr:{{{3|}}}-1 }} }} }} }}) round 0 }} </includeonly></onlyinclude>
<noinclude>[[Category:Template]]</noinclude>
+
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 09:20, 15 February 2016

Use as {{ll|<base hp>|<rank>|<level>|<life_rating>}}

Can be used to determine the HP for a player or NPC, with the following input:

  • <base hp> - The starting HP at level 1, or 'max_life variable' for the NPC
  • <rank> - Defined as 'rank' for NPC; players always use '3'
  • <level> - The level of the NPC or player
  • <life_rating> - For players, class rating + race rating. For NPCs, defined as 'life_rating'

Returns a fixed value. This works for players, but most NPCs can vary from 0.5x to 1.5x the value. NPCs with 'fixed_rating = true' will use the single value only.

Does not count bonuses from Con!

Example: player Dwarf Berserker at level 10

{{LL|120|3|10|15}} gives 289

Example: Rantha the Worm at level 16 (boss with fixed life rating)

{{LL|230|4|16|17}} gives 1052