kjones
2009-05-09, 01:57 PM
To expedite an upcoming encounter with a Crusader NPC, I hacked together a little Python script. I've uploaded it here:
Crusader script (http://www.contrib.andrew.cmu.edu/~jkeller/maneuvers.py)
Basically, it keeps track of three lists - withheld maneuvers, expended maneuvers, and active maneuvers, and juggles your readied maneuvers among them as specified in p. 9-10 of the ToB. (If I'm reading the rules correctly, that is.) If you use a maneuver, you enter the number of the maneuver, and you tell it when you've ended your turn, and get new maneuvers appropriately.
Known issues:
It's just a script, so you can only use it if you have Python installed. I'm not sure how to release it as an applet or something on a website - though I'm sure that's not hard.
Right now, the readied maneuvers are hard-coded in, since I'm only using it for this one encounter. It would be pretty easy to make it so that you input your readied maneuvers at the beginning of the encounter, though - or even read them out of a file somewhere.
I don't do any clever parsing of the input, so if you enter anything other than an integer, it will crash. If you're running this on a UNIX-like system, I suggest running it with rlwrap. I'm sure there's ways to do this correctly, but I don't have much experience with Python.
Other than that, it works just fine. If you play a crusader, or run a lot of crusaders as NPCs, you might find this helpful - I think it's easier than shuffling cards around. And it was a fun excuse for me to play with Python as well! So enjoy.
Crusader script (http://www.contrib.andrew.cmu.edu/~jkeller/maneuvers.py)
Basically, it keeps track of three lists - withheld maneuvers, expended maneuvers, and active maneuvers, and juggles your readied maneuvers among them as specified in p. 9-10 of the ToB. (If I'm reading the rules correctly, that is.) If you use a maneuver, you enter the number of the maneuver, and you tell it when you've ended your turn, and get new maneuvers appropriately.
Known issues:
It's just a script, so you can only use it if you have Python installed. I'm not sure how to release it as an applet or something on a website - though I'm sure that's not hard.
Right now, the readied maneuvers are hard-coded in, since I'm only using it for this one encounter. It would be pretty easy to make it so that you input your readied maneuvers at the beginning of the encounter, though - or even read them out of a file somewhere.
I don't do any clever parsing of the input, so if you enter anything other than an integer, it will crash. If you're running this on a UNIX-like system, I suggest running it with rlwrap. I'm sure there's ways to do this correctly, but I don't have much experience with Python.
Other than that, it works just fine. If you play a crusader, or run a lot of crusaders as NPCs, you might find this helpful - I think it's easier than shuffling cards around. And it was a fun excuse for me to play with Python as well! So enjoy.