Template:Generic stats/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
>OmegaK2
No edit summary
Line 5: Line 5:
==Overview==
==Overview==
Template to store generic data to Cargo.
Template to store generic data to Cargo.
==Parameters==
===General parameters===
{| class="wikitable"
! Parameter
! Type
! {{abbr|Opt|Optional}}
! {{abbr|Auto|PyPoE exported?}}
! Table & field
! Description
|-
| name
| str
| {{no}}
| {{no}}
| generic_stats.name
| Name of this group of data
|}
===Progression parameters===
Replace <code><nowiki><M></nowiki></code> with the number of the argument. Start numbers with 1, and don't leave gaps. The order matters and each parameter must be specified for an individual element of M.
Code support: 1 <= M
{| class="wikitable"
! Parameter
! Type
! {{abbr|Opt|Optional}}
! Table & field
! Description
|-
| stat<nowiki><M></nowiki>_id
| str
| {{yes}}
| generic_stats.id
| The internal id of the stat
|-
| stat<nowiki><M></nowiki>_value
| int
| {{yes}}
| generic_stats.value
| The associated value with the stat
|-
| stat<nowiki><M></nowiki>_stat_text
| str
| {{yes}}
| generic_stats.stat_text
| The stat text of the stat.
|}
Example of valid stat parameters:
<pre>
stat1_id =
stat1_value =
stat1_stat_text =
stat2_id =
stat2_value =
stat2_stat_text =
</pre>


==Cargo table declarations & data==
==Cargo table declarations & data==

Revision as of 16:28, 3 May 2020