Difference between revisions of "Template:E"
From Tales of Maj'Eyal
								
												
				m  | 
				 (adds saving throws)  | 
				||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#switch: {{{1}}}  | <includeonly><onlyinclude>{{#switch: {{{1}}}  | ||
| resist = Changes resistances: + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})% {{#switch: {{{2}}}  | | resist = Changes resistances: + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})% {{#switch: {{{2}}}  | ||
| + | | all = all  | ||
| acid = {{acid}}  | | acid = {{acid}}  | ||
| − | | arcane = {{  | + | | arcane = {{arcane}}  | 
| blight = {{blight}}  | | blight = {{blight}}  | ||
| cold = {{cold}}  | | cold = {{cold}}  | ||
| Line 14: | Line 15: | ||
| temporal = {{temporal}}    | | temporal = {{temporal}}    | ||
| ?? }}    | | ?? }}    | ||
| + | | combat = {{#switch: {{{2}}}  | ||
| + | | physresist = Physical save:  | ||
| + | | spellresist = Spell save:  | ||
| + | | mentalresist = Mental save:  | ||
| + | | ?? }} + ({{{4}}}-{{#expr:{{{4}}}+{{{3}}}}})  | ||
| ?? }}</onlyinclude></includeonly>  | | ?? }}</onlyinclude></includeonly>  | ||
[[Category:Templates]]  | [[Category:Templates]]  | ||
| Line 19: | Line 25: | ||
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.  | 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.  | ||
| − | + | == Damage resistance example ==  | |
| + | |||
| + | The LUA code for an ego's effect on fire resistance is  | ||
<pre>resists={[DamageType.FIRE] = resolvers.mbonus_material(15, 15)</pre>  | <pre>resists={[DamageType.FIRE] = resolvers.mbonus_material(15, 15)</pre>  | ||
| Line 28: | Line 36: | ||
{{e|resist|fire|15|15}}  | {{e|resist|fire|15|15}}  | ||
| + | ----  | ||
| + | Supported damage types:  | ||
| + | * all  | ||
| + | * acid  | ||
| + | * arcane  | ||
| + | * blight  | ||
| + | * cold  | ||
| + | * darkness  | ||
| + | * fire  | ||
| + | * light  | ||
| + | * lightning  | ||
| + | * mind  | ||
| + | * nature  | ||
| + | * physical  | ||
| + | * temporal  | ||
| + | |||
| + | == Stats beginning with combat_ in LUA code ==  | ||
| + | === Saving throws ===  | ||
| + | |||
| + | The LUA code for an ego's effect on physical save is  | ||
| + | <pre>combat_physresist = resolvers.mbonus_material(15, 10)</pre>  | ||
| + | |||
| + | Convert it with this template as  | ||
| + | <pre>{{e|combat|physresist|15|10}}</pre>  | ||
| + | |||
| + | To produces the following text:  | ||
| + | |||
| + | {{e|combat|physresist|15|10}}  | ||
| + | ----  | ||
| + | Supported combat stats:  | ||
| + | * physresist (physical save)  | ||
| + | * spellresist (spell save)  | ||
| + | * mentalresist (mental save)  | ||
Revision as of 09:46, 14 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.
Damage resistance example
The LUA code for an ego's effect on fire resistance 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:
??
Supported damage types:
- all
 - acid
 - arcane
 - blight
 - cold
 - darkness
 - fire
 - light
 - lightning
 - mind
 - nature
 - physical
 - temporal
 
Stats beginning with combat_ in LUA code
Saving throws
The LUA code for an ego's effect on physical save is
combat_physresist = resolvers.mbonus_material(15, 10)
Convert it with this template as
{{e|combat|physresist|15|10}}
To produces the following text:
??
Supported combat stats:
- physresist (physical save)
 - spellresist (spell save)
 - mentalresist (mental save)