Module:HeroData/doc: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m reference HeroData/nav and HeroData/release
Sur (talk | contribs)
m get_hero_scalar() example
Line 102: Line 102:
Which outputs
Which outputs
{{#invoke:HeroData|write_infobox|Abrams}}
{{#invoke:HeroData|write_infobox|Abrams}}
=== get_hero_scalar ===
Retrieve a hero variable's scalar value that is inside either "Spirit Scaling" or "Level Scaling", such as Abram's BulletDamage (scaling).
====Parameters====
* '''hero_key''' - Key of the hero. Search for the key of a given hero in [[Data:HeroData.json]]
* '''scaling_type''' - "Spirit" or "Level"
* '''hero_var''' - Key of the hero's variable that is inside either "Spirit Scaling" or "Level Scaling", see [[Data:HeroData.json]]
====Examples====
<pre>{{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage}}</pre>
{{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage}}


=== write_stat_infoboxes ===
=== write_stat_infoboxes ===