Module:CalculatedStats/doc: Difference between revisions

Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Documentation==
==Documentation==
===Basic use===
===Basic use===
To use this module, do as follows:
To use this module, do as follows for most games:
<pre>{{#invoke:CalculatedStats|<function>|<level>|<strength>|<intelligence>|<magic>|<vitality/endurance>|<agility>|<luck>}}</pre>
<pre>{{#invoke:CalculatedStats|<function>|<level>|<strength>|<intelligence>|<magic>|<vitality/endurance>|<agility>|<luck>}}</pre>
For ''Persona 2: Innocent Sin'', do as follows for basic use:
<pre>{{#invoke:CalculatedStats|<function>|<level>|<strength>|<vitality>|<dexterity>|<agility>|<luck>}}</pre>
This module should not be invoked directly in the mainspace and should be part of a template, with the values filled with template parameters.
This module should not be invoked directly in the mainspace and should be part of a template, with the values filled with template parameters.


Line 9: Line 12:
*<code>smt2</code> for ''Shin Megami Tensei II''
*<code>smt2</code> for ''Shin Megami Tensei II''
*<code>smtif</code> for ''Shin Megami Tensei if...'' (alias for <code>smt2</code>)
*<code>smtif</code> for ''Shin Megami Tensei if...'' (alias for <code>smt2</code>)
*<code>smtn</code> for ''Shin Megami Tensei: Nine''
*<code>desum</code> for ''Shin Megami Tensei: Devil Summoner''
*<code>desum</code> for ''Shin Megami Tensei: Devil Summoner''
*<code>sh1</code> for ''Devil Summoner: Soul Hackers''
*<code>sh1</code> for ''Devil Summoner: Soul Hackers''
*<code>p2is</code> for ''Persona 2: Innocent Sin''


===Platform===
===Platform===
''Shin Megami Tensei'' has different formulas for the Mega-CD version. Set Set the named parameter <code>platform</code> to <code>MCD</code> (case insensitive) to output the Mega-CD stats.
''Shin Megami Tensei'' has different formulas for the Mega-CD version. Set the named parameter <code>platform</code> to <code>MCD</code> (case insensitive) to output the Mega-CD stats.


''Shin Megami Tensei: Devil Summoner'' by default shows both the Sega Saturn and PlayStation Portable values for Magic Defense. Set the named parameter <code>platform</code> to either <code>SAT</code> or <code>PSP</code> (case insensitive) to display only one of them.
''Shin Megami Tensei: Devil Summoner'' by default shows both the Sega Saturn and PlayStation Portable values for Magic Defense. Set the named parameter <code>platform</code> to either <code>SAT</code> or <code>PSP</code> (case insensitive) to display only one of them.
''Persona 2: Innocent Sin'' is similar to ''Devil Summoner'' but it applies for all stats. Set the named parameter <code>platform</code> to <code>PS</code> or <code>PSP</code> to show only one platform's set of stats.


===Boss===
===Boss===
''Shin Megami Tensei'' (Mega-CD) appears to use different stat calculations for bosses than it does for regular demons. Set the named parameter <code>boss</code> to something (recommended: <code>y</code>) to use the boss calculations.
''Shin Megami Tensei'' (Mega-CD) uses different stat calculations for bosses than it does for regular demons. Set the named parameter <code>boss</code> to something (recommended: <code>y</code>) to use the boss calculations.


===Manual stat inputting===
===Manual stat inputting===
''Shin Megami Tensei'' and ''Devil Summoner: Soul Hackers'' support manual input of stats through named arguments (which are <code>st</code>, <code>in</code>, <code>ma</code>, <code>vi</code>/<code>en</code>, <code>ag</code>, and <code>lu</code>). This is because some of the calculations for ''Shin Megami Tensei'' (Mega-CD) and ''Devil Summoner: Soul Hackers'' are not yet perfect; non-Mega-CD ''Shin Megami Tensei'' still supports manual input to retain backwards compatibility with current articles which do not yet have a platform argument filled in.
''Devil Summoner: Soul Hackers'' and ''Shin Megami Tensei: Nine'' support manual input of stats through named arguments (see the code to know what to use). This is because some of the calculations for ''Devil Summoner: Soul Hackers'' and ''Shin Megami Tensei: Nine'' are not yet perfect.


==Sources==
==Sources==
All sources were verified and, if they were wrong, corrected formulas are used in this module.
*[https://w.atwiki.jp/shinmegamitensei1/pages/449.html#id_abe440aa ''Shin Megami Tensei'']
*[https://w.atwiki.jp/shinmegamitensei1/pages/449.html#id_abe440aa ''Shin Megami Tensei'']
*[https://w.atwiki.jp/shinmegamitensei1/pages/61.html ''Shin Megami Tensei'' (Mega-CD)]
*[https://w.atwiki.jp/shinmegamitensei1/pages/61.html ''Shin Megami Tensei'' (Mega-CD)]

Latest revision as of 22:16, 28 September 2024

Documentation

Basic use

To use this module, do as follows for most games:

{{#invoke:CalculatedStats|<function>|<level>|<strength>|<intelligence>|<magic>|<vitality/endurance>|<agility>|<luck>}}

For Persona 2: Innocent Sin, do as follows for basic use:

{{#invoke:CalculatedStats|<function>|<level>|<strength>|<vitality>|<dexterity>|<agility>|<luck>}}

This module should not be invoked directly in the mainspace and should be part of a template, with the values filled with template parameters.

Valid values for function (case sensitive):

  • smt1 for Shin Megami Tensei
  • smt2 for Shin Megami Tensei II
  • smtif for Shin Megami Tensei if... (alias for smt2)
  • smtn for Shin Megami Tensei: Nine
  • desum for Shin Megami Tensei: Devil Summoner
  • sh1 for Devil Summoner: Soul Hackers
  • p2is for Persona 2: Innocent Sin

Platform

Shin Megami Tensei has different formulas for the Mega-CD version. Set the named parameter platform to MCD (case insensitive) to output the Mega-CD stats.

Shin Megami Tensei: Devil Summoner by default shows both the Sega Saturn and PlayStation Portable values for Magic Defense. Set the named parameter platform to either SAT or PSP (case insensitive) to display only one of them.

Persona 2: Innocent Sin is similar to Devil Summoner but it applies for all stats. Set the named parameter platform to PS or PSP to show only one platform's set of stats.

Boss

Shin Megami Tensei (Mega-CD) uses different stat calculations for bosses than it does for regular demons. Set the named parameter boss to something (recommended: y) to use the boss calculations.

Manual stat inputting

Devil Summoner: Soul Hackers and Shin Megami Tensei: Nine support manual input of stats through named arguments (see the code to know what to use). This is because some of the calculations for Devil Summoner: Soul Hackers and Shin Megami Tensei: Nine are not yet perfect.

Sources

All sources were verified and, if they were wrong, corrected formulas are used in this module.