Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Force a strange mood?  (Read 8268 times)

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Force a strange mood?
« on: September 16, 2014, 04:24:24 pm »

I keep getting gem cutters and setters, blacksmiths, metal crafters, everything but the moods I want- Leather workers, bowyers, weapon and armour smiths. I have a group of 27 migrants all competent in weapon and armour smith, just hauling and brewing/plant gathering, so if they go into a mood, they should be weapon/armour smith moods. Buuuut, the crafters and cutters are getting all the action. I have three legendary stone crafters, two legendary gem setters, one legendary cutter, one wood crafter, a metal crafter, and a clothesmaker. Is there a way to force a mood onto a dwarf? I really want a good group of military equipment makers, but none of my smiths or leather workers are getting moods. Can I force them to?
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

Button

  • Bay Watcher
  • Plants Specialist
    • View Profile
Re: Force a strange mood?
« Reply #1 on: September 16, 2014, 04:35:56 pm »

I believe there's a dfhack command to force a mood to happen, but without specifying a specific dwarf. I guess you could use it a bunch of times until it picked someone you wanted?
Logged
I used to work on Modest Mod and Plant Fixes.

Always assume I'm not seriously back

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Force a strange mood?
« Reply #2 on: September 16, 2014, 07:56:55 pm »

I believe there's a dfhack command to force a mood to happen, but without specifying a specific dwarf. I guess you could use it a bunch of times until it picked someone you wanted?
There is indeed such a command, and it can forcibly override the dwarf, the mood type, and the mood skill. It should be noted, however, that the command doesn't actually "force a mood to happen" so much as it constructs a strange mood from scratch using the same logic as the game itself, and it currently uses the logic from version 0.34.11 (I haven't checked it against the logic from 0.40.xx yet).
« Last Edit: September 16, 2014, 08:01:19 pm by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: Force a strange mood?
« Reply #3 on: September 16, 2014, 08:28:25 pm »

Just tried it out, can't seem to get anything but -force working. I'd like to get force a secretive weapon smith and a secretive armour smith. Maybe keep forcing armour smiths until I have a full set of armor, and weapon smiths until I have artifact weapons for one squad.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Force a strange mood?
« Reply #4 on: September 17, 2014, 07:35:30 am »

Just tried it out, can't seem to get anything but -force working. I'd like to get force a secretive weapon smith and a secretive armour smith. Maybe keep forcing armour smiths until I have a full set of armor, and weapon smiths until I have artifact weapons for one squad.

For a secretive weaponsmith type "strangemood -type secretive -skill weaponsmith", and for a fey armorsmith type "strangemood -type fey -skill armorsmith". To target a specific dwarf, [v]iew it and specify "-unit" along with the other parameters, and add "-force" to ignore most of the restrictions that would prevent a mood from triggering normally (minimum population, recent mood cooldown, artifact limit, etc.).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.