- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Stress
v50.15 · v0.47.05 This article is about the current version of DF.Note that some content may still need to be updated. |
This page contains information only relevant to DF 0.40.14 and newer. Most or all of this information does not apply to previous versions. Older saves from previous versions in the DF2014 release cycle are still compatible with this version. |
This feature has one or more outstanding bugs. Please view the Bugs section for details. |
This article is a stub. You can improve the article by expanding it. |
Stress is a condition that is similar to unhappiness in earlier versions. It will cause the dwarf to flash with a downward red arrow, and Over the long term, Urist McStressed has been under a great deal of stress. will show on their thoughts and preferences tab.
Dwarves under stress for long periods of time will develop worse symptoms of stress level: Urist McStressed has become haggard and drawn due to the tremendous stresses placed on him.. In the short-term, excessive levels of stress will lead to temporary emotional breakdowns - throwing tantrums, slipping into depression, or stumbling around obliviously. In the long-term, excessive levels of stress may lead to insanity.
Under even greater stress for prolonged periods of time, dwarves will become Harrowed, their thoughts and preferences tab reading: Urist McStressed has been utterly harrowed by the nightmare that is his tragic life.
Animals can also be stressed, which seems to happen when an animal has been constrained for a long time.
Internally, stress level is tracked with one number, where a negative number is good and a positive number is bad. It is not possible to view this number without third-party utilities.
Stress ranges from -1000000 to +1000000, and the negative effects start appearing at +10000, +25000, and +50000.
Stress itself gradually increases or decreases based on the emotions visible on the dwarf's Thoughts and Preferences screen - it basically adds up all of the positive emotions (to reduce stress) and the negative emotions (to increase stress) with appropriate weights on each one (since some emotions are much stronger than others), caps the two sums at 500, adjusts the stress boost based on the dwarf's Stress Vulnerability personality trait, then takes the difference and adds it to the dwarf's current stress level.
Stress factors
Stress is affected by the emotions a dwarf experiences upon encountering certain circumstances; these encounters are temporarily shown as thoughts in the dwarf's profile, though the resulting stress can linger long after the thoughts are gone. The strength of the emotions (and the resulting stress values) vary based on the dwarf's personality. Controlled testing has shown that these sources of stress build up less in dwarves with high [BRAVERY] and low [STRESS_VULNERABILITY]. [ANXIETY_PROPENSITY] affects the rate at which dwarves dissipate stress. For example, being out in the sun seems to affect dwarves quite strongly in terms of stress.
Emotions and the level of stress or stress relief they cause are detailed in the table of emotions. Note that one event may cause different emotions for different dwarves (and, occasionally, for the same dwarf). The exact mechanisms of how it's decided what emotions are to follow are as of yet unclear, but there's a general consensus that it depends on both severity of factors and the personality of the dwarf in question.
Here is a partial table of emotions and what they can be caused by:
Emotion | Cause |
---|---|
adoration | Giving birth to a baby, becoming a parent |
admiration | Being next to completely sublime furniture, watching a performancev0.42.01 |
affection | Interacting with a pet, adopting a new pet, forming a bond with the trained animal, talking with a friend, making a new friend |
aroused | Talking with the spouse, watching a performancev0.42.01 |
caring | Giving somebody food |
empathy | Being yelled at/cried on by an unhappy citizen |
enraptured | Communing with deityv0.42.01 |
fondness | Making a new friend, talking with a friend or a sibling, interacting with a pet |
gratitude | Being rescued, receiving water or food, being granted residencyv0.42.01, being elected as mayor, sparring |
lustful | Talking with the spouse |
love | Talking with a parent, spouse, or child, gaining a sibling |
passionate | Talking with the spouse |
pleasure | Being next to fine/very fine/splendid/completely sublime furniture, acquiring well-crafted items, putting on a well-crafted/exceptional item, performingv0.42.01, viewing something on displayv0.44.01 |
proud | Owning a high quality furniture, being elected as a mayor, bringing somebody to rest in bed |
repentant | Being confined |
sympathy | Giving somebody water or food, bringing somebody to rest in bed |
tenderness | Talking with the spouse, bringing somebody to rest in bed |
amused | Watching a performancev0.42.01 |
blissful | Dining in a legendary dining room, sleeping in a good bedroom/great bedroom/bedroom like a personal palace, having a bath, becoming a parent, performingv0.42.01 |
content | Being able to rest and recuperate, eating a fine/pretty decent meal, having a fine/pretty decent drink, putting on a well-crafted/finely-crafted/superior item, sleeping in a bedroom like a personal palace, having a bath, being near to a waterfall, discussing or pondering a topicv0.42.01 |
delighted | Eating a truly decent/legendary meal, putting on an exceptional item, being near to a waterfall, watching a performancev0.42.01 |
elated | Having punishment delayed, being elected |
enjoyment | Being near to favourite animal in a cage, performingv0.42.01, watching a performancev0.42.01, playing with toysv0.42.01, playing make believev0.42.01 |
euphoric | Drinkingv0.42.01 |
expectant | Discussing or pondering {topic}v0.42.01 |
free | Being released from confinement |
gaiety | Performingv0.42.01 |
happy | Adopting a new pet, being granted residencyv0.42.01 |
hope | Being released from confinement |
jovial | Having a mandate deadline met |
joy | Performingv0.42.01 |
relieved | Being rescued, bringing somebody to rest in bed, eating vermin to survive, having punishment delayed, being near to a waterfall, being released from confinement, yelling at/crying on somebody in charge |
satisfied | Receiving water or food, being successful at work, mastering a skill, teaching a skill, producing a masterwork, creating an artifact, improving a skillv0.42.01, reading a bookv0.42.01, learning a bookv0.42.01, felling a treev0.42.01, slaughtering an animalv0.42.01, getting into an argumentv0.42.01, caging a creaturev0.42.01, being granted residencyv0.42.01, realizing the value of leisure timev0.42.01, realizing the value of naturev0.42.01, realizing nuances of independencev0.42.01, realizing nuances of fairnessv0.42.01, realizing nuances of loyaltyv0.42.01, realizing nuances of lawv0.42.01, realizing nuances of leisure timev0.42.01, realizing nuances of friendshipv0.42.01, realizing the value of knowledgev0.42.01, realizing the worthlessness of eloquencev0.42.01, realizing the worthlessness of powerv0.42.01 |
triumph | Killing somebody, being elected/re-elected |
optimistic | Being able to rest and recuperate, having a mandate deadline met |
astonished | Having punishment reduced, having punishment delayed, being elected |
awe | Being next to completely sublime furniture |
excited | Performingv0.42.01 |
eager | Being elected/re-elected |
exhilarated | Being attacked, getting into an argument, a sparring session, performingv0.42.01 |
interested | Being next to fine/very fine/splendid/completely sublime furniture, learning the secrets of life and death, watching a performancev0.42.01, being taught a skill, reading a bookv0.42.01, learning a bookv0.42.01, realizing the value of naturev0.42.01, realizing nuances of perseverancev0.42.01, realizing nuances of craftsmanshipv0.42.01, realizing the worthlessness of fairnessv0.42.01, viewing something on displayv0.44.01 |
wonder | Being taught a skill, learning a bookv0.42.01, communing with {deity}v0.42.01, realizing the worthlessness of perseverancev0.42.01, realizing the value of familyv0.42.01, realizing the value of competitionv0.42.01, realizing the value of cooperationv0.42.01, realizing the value of loyaltyv0.42.01 |
accepting | Seeing somebody's dead body, having a mandate ignored, being caught in the rain, being forced to drink vomit, being forced to endure the decay of a pet, retching on a miasma, having to conduct an official meeting in a bedroom (many negative memories may change to acceptance as a result of the personality-change systemv0.44.11) |
ambivalent | Delayed punishment of a criminal, putting on a well-crafted/finely-crafted item |
grim satisfaction | Seeing somebody's death |
suspicious | Having a mandate ignored |
aggravated | Being pestered by flies |
agitated | Being utterly sleep-deprived |
annoyed | Being caught in the rain, being caught in a snow storm, being out in the sun, eating without a table or chair, eating without a proper dining room, sleeping on dirt/rocks/cave floor/in the grass, drinking water without a well, suffering a minor injury, choking on cave-in dust, choking on smoke, being accosted by hated vermin, being pestered by flies, drinking without a goblet, cup or mugv0.42.01 |
anxious | Discussing/pondering (topic)v0.42.01 |
bitter | Wearing tattered clothes, getting into an argumentv0.42.01 |
bored | Watching a performancev0.42.01, being unoccupiedv0.42.01, being unable to practice a craftv0.42.01, being unable to practice a martial artv0.42.01, not learning anythingv0.42.01, being unable to use abstract thinkingv0.42.01, being unable to wanderv0.42.01, being unable to fightv0.42.01, being unable to hear eloquent speechv0.42.01, lack of trouble-makingv0.42.01, doing nothing creativev0.42.01, generally leading an unexciting lifev0.42.01 |
confused | Being knocked out during a cave-in |
contemptuous | Getting into an argumentv0.42.01 |
dejected | Being caught in the rain, being caught in a snow storm, wearing tattered clothes, lack of decent mealsv0.42.01, being unable to pray to {deity}v0.42.01, being kept from alcoholv0.42.01, being unable to admire artv0.42.01, being unable to acquire somethingv0.42.01, being unable to be extravagantv0.42.01, lack of introspectionv0.42.01, generally being unable to take it easyv0.42.01 |
disappointed | Having a mandate deadline missed |
disillusioned | An animal was convicted of a crime |
dislike | Talking to somebody annoying |
embarrassed | Sleeping without a proper room, sleeping on a dirt/rocks/cave floor/in the grass, wearing tattered clothes, having no shirt, having no shoes, being uncovered, watching a performancev0.42.01 |
exasperated | Being caught in the rain, being caught in a snow storm, getting into an argument |
frustrated | Considering the scarcity of cages and chains, having a mandate ignored, nobody could be punished for a mandate failure, getting into an argumentv0.42.01, lack of decent mealsv0.42.01, being unable to practice a skillv0.42.01, being unable to practice a craftv0.42.01, being unable to practice a martial artv0.42.01, being unable to pray to {deity}v0.42.01, being kept from alcoholv0.42.01, being unable to acquire somethingv0.42.01, being unable to wanderv0.42.01, being unable to fightv0.42.01, being unable to admire artv0.42.01, lack of abstract thinkingv0.42.01, lack of trouble-makingv0.42.01, generally leading an unexciting lifev0.42.01 |
gloomy | Being out in the sun |
glum | Getting into an argumentv0.42.01 |
grouchy | Being caught in the rain, being caught in a snow storm, being out in the sun, eating the same old food, drinking the same old booze |
guilty | Being confined, being able to rest and recuperate, being rescued |
indignant | Being forced to endure the decay of a (dead) friend, delayed punishment of a criminal |
insulted | Being forced to endure the decay of a (dead) friend, getting into an argument |
irritated | Being out in the sun, being hungry/thirsty/drowsy, eating at crowded table, wearing old/tattered clothes, sleeping uneasily due to noise |
isolated | Being unable to find somebody in charge to yell at |
lonely | Being away from familyv0.42.01, being away from friendsv0.42.01, being away from peoplev0.42.01, being unable to make merryv0.42.01, being unable to make romancev0.42.01 |
regretful | Toppling something over, starting a fist fight, throwing something, becoming a parent |
resentful | Giving somebody water, experiencing trauma, getting into an argumentv0.42.01 |
restless | Being able to rest and recuperate, being unable to practice a craftv0.42.01, being unable to practice a martial artv0.42.01, being unable to learnv0.42.01, being unable to use abstract thinkingv0.42.01, being unable to arguev0.42.01, lack of trouble-makingv0.42.01, doing nothing creativev0.42.01, generally leading an unexciting lifev0.42.01 |
self-pity | Being away from familyv0.42.01, being away from friendsv0.42.01, being unable to arguev0.42.01, being unable to fightv0.42.01, being unable to make merryv0.42.01, being unable to practice a craftv0.42.01, being unable to practice a martial artv0.42.01, being unable to wanderv0.42.01, lack of abstract thinkingv0.42.01, being unoccupiedv0.42.01, doing nothing creativev0.42.01, not learning anythingv0.42.01, generally leading an unexciting lifev0.42.01 |
uneasy | Being near to hated vermin in a cage, being caught in freakish weather, seeing somebody's dead body, being uncovered, retching on a miasma, being attacked, being attacked by the dead, giving birth to a baby, being unable to pray to {deity}v0.42.01, lack of decent mealsv0.42.01, being kept from alcoholv0.42.01, being unable to be extravagantv0.42.01, being unable to help anybodyv0.42.01, being unable to admire artv0.42.01, being unable to acquire somethingv0.42.01, generally being unable to take it easyv0.42.01 |
worried | Lack of decent mealsv0.42.01, being kept from alcoholv0.42.01, being unable to pray to {deity}v0.42.01, being unable to be extravagantv0.42.01 |
anguish | Experiencing a miscarriage |
ashamed | Eating without a chair |
despair | Being caught in freakish weather |
disgusted | Retching on a miasma, being nauseated by the sun, drinking water from murky pool, being caught in freakish weather, being forced to eat vermin, being forced to drink vomit, being forced to endure the decay of a (dead) pet, being accosted by hated vermin |
distressed | Being pestered by flies |
empty | Having a masterwork destroyed |
existential crisis | Being unable to advance the study of topicv0.42.01 |
frightened | Being haunted by the dead |
grieved | Unexpected death of somebody |
hopeless | Suffering a major injury, being nauseated by the sun |
humiliated | Eating without a table or chair, wearing tattered clothes, being uncovered, not having any rooms, having a mandate ignored |
mortified | Being forced to eat vermin |
panicked | Being attacked, being starving/dehydrated |
sad | Being separated from a loved one/loved ones, retching on a miasma |
shaken | Suffering a major injury, being knocked out during cave-in, being forced to endure the decay of a (dead) friend |
shocked | Being attacked, unexpected death of somebody, having a masterwork destroyed or stolen |
alarmed | Seeing somebody's dead body |
afraid | Experiencing trauma |
angry | Getting into an argument, being forced to endure the decay of a (dead) friend |
ferocity | Being attacked |
horrified | Seeing somebody die, seeing somebody's dead body, being caught in a freakish weather, being haunted by the dead, being attacked by the dead |
loathing | Being out in the sun, being beaten up in the course of dwarven justice or otherwise |
outraged | Being forced to endure the decay of a (dead) child/spouse |
terrified | Being in conflict |
vengeful | Joining an existing conflict |
Managing Stress
This section includes mods. The content is not part of normal DF as released. Changing game files can sometimes cause unexpected results, and should always be done with care and caution. |
This article or section may need to be updated due to changes in 0.47.05. |
Here is a general guide on keeping your dwarves unstressed.
In v0.44.12 stress is bugged and very difficult to manage; dealing with it in-game typically involves a lot of micromanaging, which is decidedly un-fun. The problems include dwarves not socializing properly, requiring very specific food because it's their favorite, being away from family without any way for them to visit, and obsessively mulling over negative thoughts from rain, snow and seeing corpses, all of which lead to stress. Often those negative thoughts compound and heavily outweigh any positive thoughts they also have, leading to a fort where nobody works at anything but trying to kill each other, but there are many workarounds; here are some helpful tips for dealing with stress in v0.44.12.
Altering the raws
- The easiest method is to alter the raw files that control stress vulnerability. The dwarven file is found at /raw/objects/creature_standard.txt. Inside that file under
[CREATURE:DWARF]
, you will find[PERSONALITY:STRESS_VULNERABILITY:0:45:100]
. These numbers are dwarves' minimum (0), average (45), and maximum (100) capacity for stress. Changing these values will cap stress vulnerability on all dwarves - for instance,0:30:70
would limit the maximum stress possible to the range of "High", meaning that you can still get stress problems, but to a more manageable degree. Making the values0:0:0
would make all dwarves immune to stress entirely. You do not need to generate a new world for this to work (if you want this fix to apply to an existing save, edit the raw file in data/save/(your world)/raw/objects instead). - Another large source of stress is seeing corpses, cleaning up after a battle can stack stress from the horrified emotion. A way to prevent this is to edit the Dwarf raw files by adding the tag
[NATURAL_SKILL:DISCIPLINE:#]
, where # is a value 1-15.[NATURAL_SKILL:DISCIPLINE:5]
would make all dwarves Proficient in Discipline, making them able to see and handle corpses without major effects. Making the value[NATURAL_SKILL:DISCIPLINE:15]
would make them all Legendary in Discipline, making them effectively immune to stress from corpses as well as preventing panic in battle. - Weather is a huge cause of negative thoughts because dwarves hate nature and don't like to be rained on. Weather can be disabled by changing
[WEATHER:YES]
to[WEATHER:NO]
in d_init.txt. The Lazy Newb Pack also offers a control to toggle weather.
DFHack Solutions
If you are using DFHack there are several helpful terminal commands you can run to improve your situation.
- The command
remove-stress -all
will reset all units in your fort to -1,000,000 stress. - The command
fillneeds -all
will fill the unmet needs of all units in your fort. Running this along withremove-stress -all
will prevent almost any stress problems in a fort for at least a few months. It is recommended to run these two commands whenever stress is starting to get out of control. - The command
brainwash
will permanently alter a single selected unit's personality. There are several options, includingideal
,baseline
, andstepford
.brainwash ideal
will make a unit generally positive,brainwash baseline
will make all traits average andbrainwash stepford
amplifies all good qualities to an excessive degree. Usingideal
andstepford
are probably the best options for stress management. - The command
assign-skills -skills [ DISCIPLINE 14 ]
will make the selected unit a grand master of discipline, which should stop the freakouts over violence and dead bodies. Note the spaces before and after the square brackets.
Vanilla Options
For those who don't want to use DFHack or edit the raws, you can try to exile all dwarves with stress problems. To expel a dwarf, view their professions, and choose expel.
Problems with exiling
- Nobles can't be exiled
- Children can't be exiled directly (but may be exiled indirectly if a family member is exiled)
- Some dwarves can't be exiled because of a "Child is not present" bug.
- Exiled (and stressed) dwarves from one player fortress will often show up in a new fortress in the same world, making it very hard to have multiple fortresses without having major stress problems.
- Some exiled dwarves have been reported to return to a fort, it's unclear if by migration wave or as visitors. This is rare and hasn't been verified but it is a possible bug that needs research.[Verify]
If you don't want to exile dwarves, it is worth remembering that stress prevention is far more important than mitigation, since mitigating negative thoughts is almost impossible without a turn-around in the dwarf's personality. This includes making sure that no dwarf that is not a corpse-hauler sees a dead sapient, resolving sieges via strategic use of traps that dispose of invader corpses as well as kill them (duh), and limiting the amount of indictments where possible (since beatings cause the "experiencing trauma" thought, which can make a dwarf more vulnerable to stress).
Soldiers are especially prone to stress, considering the myriad negative thoughts that can come from seeing sapients die/their corpses, experiencing trauma and various other troubles. This can be circumvented by hardening these soldiers to combat through the strategic use of captured animals. Dwarves are hardened through combat by being involved in the battlefield, so this offers a stress-free way to protect your dwarves and their mental states against the tide of greenskin corpses that will inevitably pile up.
If you still happen to have problems with stress, remember that giving birth to a child/becoming a parent both give extremely strong happy thoughts, and may be what your dwarf needs to come back from the brink. If you don't care about them being stressed but don't want them to go insane, having completed a dream (i.e dreams of creating a great work of art) prevents the dwarf from ever going insane, with the exception of failing a strange mood (this does not prevent tantrums).
Detailed mechanics
This article or section may need to be updated due to changes in 0.47.05. |
How stress works
First to bust a myth: discipline is not an indicator of how well a dwarf copes with stressful situations, but there is a correlation that will be explained below.
When a dwarf experiences an emotion, whether from an immediate experience or from revisiting a long term memory, a certain number of points, which will be called "stress points" are added to that dwarf's "stress score". The dwarf keeps a running tally of their stress points, determining their mood. Unhappy thoughts add to the stress score, happy thoughts subtract from the stress score. It is confirmed that there are only two things that affect stress: the emotions that a dwarf experiences, each of which are shown on the thoughts and preferences screen, and a return towards a neutral point over time.
There are three key personality traits which determine a dwarf's propensity to experience stress: bravery, which determines how fast a dwarf accumulates stress; stress vulnerability, which determines how much stress a dwarf can experience before breaking [note 4]; and anxiety, which determines how fast a dwarf dissipates stress. A fourth trait, depression propensity, seems to be related to the difficulty of recovering an unhappy dwarf, but requires additional testing.
There are some experiences which have a constant and predictable effect across all dwarves and others that are much more variable. In assessing the impact of an experience on a dwarf's stress score, a key measure is whether or not the resulting emotion was promoted to a dwarf's long term memory, as these tend to be the stronger emotions and are those that are revisited.
The results below are taken from a sample of 300 dwarves across 3 fortresses, where all dwarves had been in their fortress for more than 2 years. The fortresses were designed to 'molly-coddle' the dwarves, shielding them as much as possible from rain, death, corpses and miasma, and promoting happy thoughts as much as possible (after year 2, because it took 2 years and 5 migrant waves to reach that point with the infrastructure). The fortresses each had 150+ dwarves and had been run for 7 years. The overall mood of the fortresses after 7 years was 45% happy to ecstatic, 55% fine, less than 1% unhappy (4 dwarves in total).
Stress reducers
Bedrooms
More than 99% of dwarves had short-term memories of feeling blissful sleeping in a bedroom like a personal palace, 89% were also experiencing long-term memories of remembering feeling blissful about their bedroom. This was achieved by giving them a 3x3 engraved bedroom.
Dining room
88% of dwarves had short-term memories of feeling blissful eating in a legendary dining room, 70% were also experiencing long term memories of remembering feeling blissful about their dining room. This was achieved by digging out a 15 x 20 room and designating it as a dining room, it doesn't take much to impress them in this regard, but to force them to eat there you have to restrict placing unallocated tables anywhere else in the fortress.
Meaningful work
93% of dwarves were satisfied at work, 62% had long term memories of being satisfied at work. Curiously, a number of dwarves had two memories of being satisfied at work. Satisfaction is a low-strength emotion, so it is suspect that this is the result of a long-term memory being overwritten by a stronger short-term memory of a different group, then cycling back in again because it was a frequent experience always ready to be promoted back from short-term memory. From what was seen, hauling is not a satisfying job, but any job which enables a skill increase can be satisfying work, so long as it doesn't conflict with a dwarf's personality (for example a butcher will get unhappy thoughts if they have a deep respect for nature).
Military training
Military training is HUGE. After year 2 in each fortress, all dwarves were put into squads (no armour, no weapons) and scheduled each squad for one or two months of military training in a year. 93% of dwarves had happy long-term memories of something relating to their military training, with 34% having more than one positive long-term memory. Gratitude or pleasure from sparring was the most common, with interest in improving a military skill (wrestling, dodging, biting, kicking, etc.) and pride in teaching a military skill also widely present. Additionally several dwarves were satisfied remembering improving discipline and/or observation. The effect of military training in clogging long-term memory with happy thoughts correlating with an increase in discipline, which is a common association between high-discipline dwarves suffering from low stress. No dwarves had negative long-term memories, despite some not liking warfare or not respecting military skills. A fairly reliable method to turn around unhappy dwarves using military training was noted, which will be discussed further below.
Other things
All dwarves had access to masterwork clothing, walked past an indoor waterfall frequently, were able to acquire an item, read books, and walked past fine furniture frequently, but less than 25% of dwarves retained their thoughts about these things in long-term memory.
Stress increasers
The median number of unhappy long-term memories across the sample of dwarves was only 1, most of the things that they were unhappy about in the long-term were things that would eventually be promoted to core memory, death, miasma, trauma, etc. Their other stress increasers were less than 1% of dwarves: being annoyed or irritated remembering being accosted by vermin, 1 dwarf was uneasy remembering becoming a parent, 1 dwarf was annoyed remembering drinking without a mug, which is suspected to have been a lingering long term memory clogging their thoughts for several years, another was worried dwelling on not being able to help somebody and another was frustrated remembering the lack of traditions.
Mixed and/or variable effects on stress
Praying
77% had long-term memories of wonder or enrapture from praying, 10% had negative long-term memories from being unable to pray, some dwarves had both positive and negative long term memories about praying. All dwarves had multiple positive and negative short-term thoughts about praying and not being able to pray. The balance of positive to negative long-term memories shows the effect of dwarves being unable to hold more than one thought of the same group in their short-term memory. As long as they get to pray more than once a year, they'll have a strong positive short-term memory about a deity and won't have room in their short-term memory to retain the negative thoughts from not being able to pray to the multiple gods that they wanted to.
Performances
All dwarves had multiple short term memories about watching a performance or performing, however a minority of thoughts were negative (about 5% were bored or embarrassed). Only a few dwarves had long term memories related to performances/performing, all positive.
Arguments
Short-term memories about being upset getting into an argument were ubiquitous, and most dwarves had multiple short-term memories about arguing. However, only 3 dwarves were angry remembering getting into an argument (although 1 dwarf was exhilarated remembering this).
Things that didn't matter
Some things were ubiquitous in dwarves' short-term memories, but didn't appear at all in long term memories, these are often the things that worry players seemingly more than the dwarves themselves. These were: being away from family, being away from friends, being sad at being separated from a loved one, not having decent meals, being unable to craft an item, and being unable to wander.
Recovering unhappy dwarves
From time to time, some dwarves would get stressed. In one testing, an accident with a 'malfunctioning' atom smasher occurred, which rained rotten body parts and gore all over the farmers. A dwarf in a strange mood was accidentally made to go berserk after the misapplication of a burrow command, several dwarves and their pets died of old age - usually in the middle of high-traffic corridors, and there were the usual unavoidable mishaps with visitors turning werebeast, trying to stage a coup, etc. Typically, around 10% of dwarves registered positive stress scores, with around 3% being unhappy that would be actively be made to recover.
The first approach to trying to recover the stressed-out dwarves was to give them special attention and try to satisfy any unmet needs, in an attempt to overwrite some low-strength unhappy memories with happy memories. This had mixed results, was slow and took a lot of micromanagement. It would typically take about 2 years to turn around a mildly stressed dwarf.
During testing, a far more reliable and quick method to turn around stressed-out dwarves was found, using military training, in the form of a special "Therapy" military squad which was assigned to train all year round, and the squad was set to active/training on the squad menu, however the squad was not assigned any barracks to train in. Any dwarf that was getting a bit down about things would be put into the Therapy Squad for a while. When a dwarf is scheduled to train, but has nowhere to train, they will actively seek to satisfy any needs. Rather than hang around with the "no job" label, they'll dash off to the tavern to socialise, the library to learn, the temple to pray or guildhall to increase their skills. It is far more effective, and easier to manage, than removing all of their tasks and hoping that they'll do something to cheer themselves up. It seems that they replace their duty to train with a duty to fulfill their needs.
After deploying this method and expanding it so that all dwarves got one month a year in which they were scheduled to train, but had no barracks, positive stress scores dropped to around 5%, with only 1 dwarf ever reaching the point of being unhappy (that particular dwarf being subjected to quite a lot of cycling up and down the stress levels to see what happened).
Of the 4 dwarves that became unhappy enough to be seemingly unrecoverable (3 from before the Therapy Squad method was discovered), all 4 dwarves had a depression propensity stat that was extremely low, meaning that they "were often sad and dejected". There were other dwarves in the fortresses with extreme depression propensities that didn't become unhappy, so it is unknown if this was a coincidence or whether it's just hard to turn around these dwarves once they reach an unhappy state.
Combat hardness and immunity to corpses/stress
There is a very old piece of code which measures the 'combat hardness value' of a dwarf. This value is listed as 'detachment' in Dwarf Therapist, although it doesn't appear in the default grid views. Toady said that when a dwarf sees guts and stuff, including seeing people die, it increases their combat hardness which will eventually lead them to become immune to seeing corpses. This code predates the current stress system and is still active. Anecdotal reports of dwarves becoming immune to seeing corpses due to constant combat exist, which is why it was brought to question. It was attempted to bring some dwarves to the maximum state of "doesn't really care about anything anymore", but after 10 years of running a fortress with one squad dedicated to fighting goblins released from cages, only the intermediate level of "is a hardened individual" was reached. There was fighting indoors, so it required frequent breaks to remove corpses to prevent miasma. There was an attempt at discovering which aspects of the stress system would be overridden by combat hardness, which things would a dwarf become immune to? Would it be everything? Do they not feel happiness or unhappiness about anything anymore? Can a dwarf still go berserk? Trying to test that concurrently with the rest of the experiment didn't sit well alongside the molly-coddle approach, so it was not pursed further, but knowing the effect on all aspects of stress would be interesting.[Verify]
Anecdotal evidence [1] from version 0.47.05 seems to indicate that dwarves gain combat hardness much more quickly than they did in previous versions. Even without taking any special measures it seems common for most of the adult population to have some level of combat hardness, and it's not unusual for civilians who have never been in combat to reach the highest level of "doesn't really care about anything anymore".
Conclusion
To keep stress down, keep the things that end up in core memory to a minimum, or at least restrict the variety of strong unhappy memory groups that dwarves are exposed to in any particular year. In particular, seeing corpses, sentient things die, being exposed to miasma, rain and vomiting because of the sun. If you plan on fighting rather than turtling, plan to battle underground so that the dwarves aren't exposed to sun and rain at the same time as death and corpses. If a dwarf sees a corpse, get them hauling all of the corpses, as they'll only remember the first one. If they're exposed to rain, get them to do all of the outdoor work quickly and keep the rest of the dwarves dry. If you have to pick somebody to do unsavoury work, choose the dwarf(s) with the best mix of bravery, stress vulnerability and anxiety.
Clog a dwarf's long-term memory slots with happy thoughts that can't be promoted. Give them a big room to dine in very early on, even if they only have one table and chair to eat on, it'll still count, but get them enough chairs and tables as soon as possible. Give them a wide variety of things to have happy thoughts about, as multiple low-strength short-term memories have a chance at cycling out low-strength unhappy memories and preventing them from sticking. Put everybody in a military squad as soon as you can afford the labour, don't worry about weapons and armour, just get them training in any old dirt hole of a barracks for at least one month of the year (you might want to make sure that your mayor and trader are training over winter when there's no caravans or delegations). As soon as you can give everybody a 3x3 engraved bedroom, that's a sure-fire mood enhancer. Make sure that you have at least one temple and that the dwarves have a bit of downtime to pray.