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:  
+
| resist = Changes resistances: {{#switch: {{{2}}}
{{#switch: {{{2}}}
+
 
| acid = {{acid}}
 
| acid = {{acid}}
 
| arcane = {{Arcane}}
 
| arcane = {{Arcane}}
Line 12: Line 11:
 
| nature = {{nature}}
 
| nature = {{nature}}
 
| physical = {{physical}}
 
| physical = {{physical}}
| temporal = {{temporal}}
+
| temporal = {{temporal}}  
| ?? }} +({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})%
+
| ?? }} + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})%
 
| ??
 
| ??
 
}}</onlyinclude></includeonly>
 
}}</onlyinclude></includeonly>

Revision as of 14:42, 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:

??