revise the role, race, gender, align options
Using role:!wizard to limit which roles would be candidates for random selection didn't work as I expected. It required a separate option setting for role to exclude. This implements how I thought it worked: |OPTIONS=role:!ranger !samurai !wizard will exclude multiple roles with a space-separated list in a single option setting. It also adds support for |OPTIONS=!role:ranger samurai wizard to do the same thing. (OPTIONS=!role:!ranger isn't allowed.) I thought 'OPTIONS=role:barbarian caveman knight' could be used to limit random selection to those choices, but that doesn't work and I haven't attempted to implement it. This also renames the 'align' option to 'alignment'. That made the truncation to 'align' become ambiguous, so it got added back as an alias for the full name. Guidebook.tex is lagging; I'm burned out.
This commit is contained in:
@@ -115,16 +115,16 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
||||
No, Yes, No, No, NoAlias,
|
||||
"your character's name (e.g., name:Merlin-W)")
|
||||
NHOPTC(role, Advanced, PL_CSIZ, opt_in, set_gameview,
|
||||
No, Yes, No, No, "character",
|
||||
Yes, Yes, No, No, "character",
|
||||
"your starting role (e.g., Barbarian, Valkyrie)")
|
||||
NHOPTC(race, Advanced, PL_CSIZ, opt_in, set_gameview,
|
||||
No, Yes, No, No, NoAlias,
|
||||
Yes, Yes, No, No, NoAlias,
|
||||
"your starting race (e.g., Human, Elf)")
|
||||
NHOPTC(gender, Advanced, 8, opt_in, set_gameview,
|
||||
No, Yes, No, No, NoAlias,
|
||||
Yes, Yes, No, No, NoAlias,
|
||||
"your starting gender (male or female)")
|
||||
NHOPTC(align, Advanced, 8, opt_in, set_gameview,
|
||||
No, Yes, No, No, NoAlias,
|
||||
NHOPTC(alignment, Advanced, 8, opt_in, set_gameview,
|
||||
Yes, Yes, No, No, "align",
|
||||
"your starting alignment (lawful, neutral, or chaotic)")
|
||||
/* end of special ordering; remainder of entries are in alphabetical order
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user