Difference between revisions of "Ability/Script"

From Wildermyth Wiki
m
Line 240: Line 240:
          
          
         # if requirement = theme, don't repeat it
         # if requirement = theme, don't repeat it
         if onlyTheme is not None and aspectNames[req] == aspectNames[onlyTheme]:
         if onlyTheme is not None and req == onlyTheme:
           continue
           continue
          
          

Revision as of 09:03, 5 March 2022

This is a Python script to generate the Ability tables. Copy the code in the box below into a text file named abilityTable.py (or whatever you want) inside the Wildermyth directory. Then run it by calling python abilityTable.py from the command line. It will create a text file named abilityTable.txt with the appropriate wiki-formatted content.