Difference between revisions of "Template:LL"
From Tales of Maj'Eyal
(Created page with "<noinclude> Work in progress Use as <nowiki>{{ll|<base hp>|<rank>|<min_level>|<max_level> (optional)|fixed (optional)}}</nowiki> </noinclude>") |
m |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | + | Use as <nowiki>{{ll|<base hp>|<rank>|<level>|<life_rating>}}</nowiki> | |
− | + | 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 | ||
+ | |||
+ | <nowiki>{{LL|120|3|10|15}}</nowiki> gives {{LL|120|3|10|15}} | ||
+ | |||
+ | Example: Rantha the Worm at level 16 (boss with fixed life rating) | ||
+ | |||
+ | <nowiki>{{LL|230|4|16|17}}</nowiki> gives {{LL|230|4|16|17}} | ||
+ | <!--- | ||
+ | <base hp> + (life_from_levels) | ||
+ | life_from_levels = (adjusted_rank_value) * level | ||
+ | adjusted_rank_value = (sum of all values(by <rank>) from level 2 -> <level>) | ||
+ | ---> | ||
</noinclude> | </noinclude> | ||
+ | <includeonly><onlyinclude>{{#expr: {{{1|}}} + ({{#expr: {{{4|}}} * {{#expr: {{arsum|{{liferank/minadj|{{{2|}}} }}|{{liferank/maxadj|{{{2|}}}|{{{3|}}} }}|{{#expr:{{{3|}}}-1 }} }} }} }}) round 0 }} </includeonly></onlyinclude> | ||
+ | <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