As I noted in my previous post, I want to generate random character attributes (Str, Dex, etc). But I want them to be balanced — I want characters to differ in their talents but have the same overall ability. There are many ways to do this (e.g. see a discussion of such on rpg.net), but the natural way for me was to write a computer program to do it.
The rules
- Characters consist of six attributes in an order
- Attributes are rolled on 3d6 and modifiers calculated on the Mentzer/BECMI scale that LotFP uses
- Each generated character is checked against an acceptance rule. If they pass they go on the list to print, otherways they are discarded and a new one is rolled in their place
- Default rule is “modifiers must sum to +2”
- The program is set to produce a fixed number of characters per run. It will keep trying to generate them until it has that number
- If the acceptance rule always returns false, the program will run until the end of time
The code is set up so most of the above are easy to change and experiment with.
Continue reading “Equal 3d6 — a computer program to roll characters for you”
