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

From Wildermyth Wiki
Line 44: Line 44:
       if string.startswith(prefix+suffix):
       if string.startswith(prefix+suffix):
         return True
         return True
  if string.startswith('theme') and '_upgrade' in string:
    return True
   return False
   return False



Revision as of 16:41, 19 February 2022

This is a Python script to export a player's legacy into a spreadsheet. You need a Python installation to run it.

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