Difference between revisions of "User:Sten/Legacy to spreadsheet"

From Wildermyth Wiki
Line 1: Line 1:
[[File:Legacy_table.png|frame|none|alt=Example image|Example legacy export, viewed in Microsoft Excel]]
This is a [https://www.python.org/downloads/ Python] script to export a player's legacy into a spreadsheet. Copy the code in the box below into a text file named '''<nowiki>legacy_table.py</nowiki>''' (or whatever you want) inside the '''<nowiki>Wildermyth/Players/<player ID></nowiki>''' directory. Then run it by calling '''<nowiki>python legacy_table.py</nowiki>''' from the command line. It will create a text file called '''<nowiki>legacy_table.txt</nowiki>''', which is tab-delimited and can be loaded by any spreadsheet software or viewed in a text editor.
This is a [https://www.python.org/downloads/ Python] script to export a player's legacy into a spreadsheet. Copy the code in the box below into a text file named '''<nowiki>legacy_table.py</nowiki>''' (or whatever you want) inside the '''<nowiki>Wildermyth/Players/<player ID></nowiki>''' directory. Then run it by calling '''<nowiki>python legacy_table.py</nowiki>''' from the command line. It will create a text file called '''<nowiki>legacy_table.txt</nowiki>''', which is tab-delimited and can be loaded by any spreadsheet software or viewed in a text editor.


Line 138: Line 136:
* Offhand items
* Offhand items
* Abilities
* Abilities
==Example==
[[File:Legacy_table.png|frame|none|alt=Example image|Example legacy export, viewed in Microsoft Excel]]

Revision as of 08:37, 15 February 2022

This is a Python script to export a player's legacy into a spreadsheet. Copy the code in the box below into a text file named legacy_table.py (or whatever you want) inside the Wildermyth/Players/<player ID> directory. Then run it by calling python legacy_table.py from the command line. It will create a text file called legacy_table.txt, which is tab-delimited and can be loaded by any spreadsheet software or viewed in a text editor.

This script does not make any changes to the legacy.

The following fields appear in the output table:

  • Name
  • Playable (Y/N)
  • Legacy tier
  • Number of hooks resolved
  • Themes
  • Weapons
  • Offhand items
  • Abilities

Example

Example image
Example legacy export, viewed in Microsoft Excel