Updated random warband generator

I've added a lot of new functionality to this python script. It will be in the next release, but it should work fine with the current release so I'm making it available now. Modifying the script assumes you know a wee bit of python or are OK with tinkering...
The current script can be downloaded here:
http://home.comcast.net/~bsturk/dreamblade/random_warband.py
Usage
Run without any arguments it will generate a random warband using all the supported pieces and save the warband to a file named "random_warband.txt". You can do this by double clicking the file (on Windows) or running it in a command window via:
If you do not want particular pieces to ever be included in a random warband, add them to the ignore_names list.
For example:
To auto include pieces before adding any random pieces, modify the auto_add_names list.
You can also limit what is added to the random warband by a combination of set, aspect, and lineage.
By default all sets, aspects, and lineages are included. Note, for all of these filters, the reference strings to use are in the all_sets, all_aspects, all_lineages lists. For aspects and lineages the 'None' string is to handle no aspect or lineage.
If you wanted to only include the Core and Anvilborn sets you would modify the include_sets list.
At some point I will be making scripts to generate sealed products...
~telengard
The current script can be downloaded here:
http://home.comcast.net/~bsturk/dreamblade/random_warband.py
Usage
Run without any arguments it will generate a random warband using all the supported pieces and save the warband to a file named "random_warband.txt". You can do this by double clicking the file (on Windows) or running it in a command window via:
- Code: Select all
python random_warband.py
- Code: Select all
python random_warband.py my_random_warband.txt
If you do not want particular pieces to ever be included in a random warband, add them to the ignore_names list.
For example:
- Code: Select all
ignore_names = [ 'Bristleback Basher', 'Cannibal Pariah' ]
To auto include pieces before adding any random pieces, modify the auto_add_names list.
- Code: Select all
auto_add_names = [ ]
- Code: Select all
auto_add_names = [ 'Unsated Ragedrake', 'Scarab Warcharm' ]
You can also limit what is added to the random warband by a combination of set, aspect, and lineage.
By default all sets, aspects, and lineages are included. Note, for all of these filters, the reference strings to use are in the all_sets, all_aspects, all_lineages lists. For aspects and lineages the 'None' string is to handle no aspect or lineage.
If you wanted to only include the Core and Anvilborn sets you would modify the include_sets list.
- Code: Select all
include_sets = [ 'Core', 'Anvilborn' ]
- Code: Select all
include_aspects = [ 'None', 'Valor', 'Passion' ]
- Code: Select all
include_lineages = [ 'None', 'Bloodcut' ]
At some point I will be making scripts to generate sealed products...
~telengard