Difference between revisions of "Template:E"

From Tales of Maj'Eyal
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly><onlyinclude>{{#switch: {{{1}}}
 
<includeonly><onlyinclude>{{#switch: {{{1}}}
| resist = Changes resistances: {{#switch: {{{2}}}
+
| resist = Changes resistances: + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})% {{#switch: {{{2}}}
 
| acid = {{acid}}
 
| acid = {{acid}}
 
| arcane = {{Arcane}}
 
| arcane = {{Arcane}}
Line 13: Line 13:
 
| physical = {{physical}}
 
| physical = {{physical}}
 
| temporal = {{temporal}}  
 
| temporal = {{temporal}}  
| ?? }} + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})%
+
| ?? }}  
| ??
+
| ?? }}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>
+
 
[[Category:Templates]]
 
[[Category:Templates]]
  

Revision as of 14:49, 13 November 2016


This template is designed to specify individual effects from a single item ego, to ensure consistency, intuitive conversion, and keep the wording in line with their in-game description.

For example, the LUA code for an ego's fire resistance effects is

resists={[DamageType.FIRE] = resolvers.mbonus_material(15, 15)

Convert it with this template as

{{e|resist|fire|15|15}}

To produces the following text:

??