Improve random choice of race/profession/weapon


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Dungeon Dilettante

Posts: 2

Joined: Wednesday, 22nd February 2017, 08:38

Post Wednesday, 22nd February 2017, 09:23

Improve random choice of race/profession/weapon

Currently we have next situation when starting a game:

  Code:
+ - Viable species                        * - Random species
# - Viable character                      ! - Random character


It's good but still i cant use random choice between of selected species/professions/weapon.
Here's the example:
I press some key and select next species:
[Demonspawn, Vine Stalker, Formcid, Octopode, Demigod, Kobold, Mummy].
Then game randomly chooses someone only in that list. It doesn't pick, say, Minotaur.
Same with the professions/weapons.

I think it would be awesome to be able to do so.

Shoals Surfer

Posts: 318

Joined: Thursday, 11th April 2013, 21:07

Post Wednesday, 22nd February 2017, 10:38

Re: Improve random choice of race/profession/weapon

errorstarter wrote:I think it would be awesome to be able to do so.

Good news: You can already do this. Add this to your rcfile or init.txt:

species += Demonspawn, Vine Stalker, Formicid, Octopode, Demigod, Kobold, Mummy
background += Fighter, Gladiator, Assassin, Transmuter

The bad news is that if you use this option, then any time you want to alter the set of species/backgrounds being chosen from, you will have to edit your rcfile again. (Or, alternately, write some really fancy Lua to use persistent options to do that programmatically. This should be possible, although I've never seen it done.)

From options_guide.txt, line 317:
Spoiler: show
  Code:
weapon += (short sword |...| unarmed | random | viable), <weapon>, ...
        (List option)
        Specifying the weapon option allows you to bypass the weapon
        selection screen. Tridents, flails, cutlasses, long swords, and war
        axes are restricted to fighters and gladiators only, quarterstaves
        are restricted to gladiators, and unarmed is restricted to races
        with claws. The standard weapon prompt will be shown if an illegal
        choice for the selected background is specified. The "viable" option
        makes a random choice from among the "good" weapons for the chosen
        character. Specifying more than one option causes the game to
        randomly select a weapon from the given list. The combo option
        overrides (and is overriden by) this option.

species += (Human |...| Vampire | random | viable), <species>, ...
        (List option)
        The usual abbreviations (Hu, HE, etc.) work. "viable" will choose a
        viable species for a given background if the background is chosen
        first. Specifying multiple species causes one to be selected at
        random from the given species. The combo option overrides (and is
        overridden by) this option.

background += (Fighter |...| Wanderer | random | viable), <background>, ...
        (List option)
        Here again the abbreviations (Fi, Wz, AK, etc.) can be used. The same
        caveat applies to "viable": it is only really meaningful if the
        species option is also set. Specifying multiple backgrounds causes
        one to be selected at random from the given species. The combo option
overrides (and is overridden by) this option.

It would certainly be nice to have more of the existing rcfile options available as ingame menu choices, though. Having to dig through text files to set game options is far from ideal.

For this message the author Implojin has received thanks: 3
bel, Sar, shping

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.