User:Sten/Legacy to spreadsheet

From Wildermyth Wiki
< User:Sten
Revision as of 10:03, 15 February 2022 by Sten (talk | contribs) (→‎Output)

This is a Python script to export a player's legacy into a spreadsheet.

Usage

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.

Output

This script does not make any changes to the legacy.

The following fields appear in the output table (legacy_table.txt):

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

Example

Example image
Example legacy export, viewed in Microsoft Excel