Module:CalculatedStats/doc: Difference between revisions

Jump to navigation Jump to search
Line 2: Line 2:
===Basic use===
===Basic use===
To use this module, do as follows for most games:
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>}}</pre>
For ''Persona 2: Innocent Sin'', do as follows for basic use:
For ''Persona 2: Innocent Sin'', do as follows for basic use:
<pre>{{#invoke:CalculatedStats|<function>|<level>|<strength>|<vitality>|<dexterity>|<agility>|<luck>}}</pre>
<pre>{{#invoke:CalculatedStats|<function>}}</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; the values get filled in by template parameters.


Valid values for function (case sensitive):
Valid values for function (case sensitive):

Revision as of 21:58, 5 November 2024

Documentation

Basic use

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

{{#invoke:CalculatedStats|<function>}}

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

{{#invoke:CalculatedStats|<function>}}

This module should not be invoked directly in the mainspace and should be part of a template; the values get filled in by 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: Devil Summoner by default shows the normal, Super CD-ROM², and Mega-CD values for all calculated stats. Set the named parameter platform to CD2 or MCD (case insensitive) to display only the Super CD-ROM² or Mega-CD stats, or set it to anything else to only display the usual calculations.

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.

For Persona 2: Innocent Sin, set the named parameter platform to PS or PSP to show only one platform's set of stats. PSP stats only apply to demons; Personas always use the PS calculations even on PSP.

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.