Memories: различия между версиями

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Строка 13: Строка 13:
=== Краткосрочные воспоминания ===
=== Краткосрочные воспоминания ===


A dwarf has 8 short-term memory slots. When a dwarf has a thought, a check is made to see if a memory of that group already exists in a short-term memory slot. If the thought doesn't fall into an existing group, the new thought will fill an empty slot, or if no slots are empty, overwrite the weakest memory (the one with the weakest emotion) in the 8 short-term memory slots - even if the overwritten memory is stronger than the new one. If the thought already has one of its group in a memory slot the strongest memory of the two, the new thought and the existing memory, will be kept and the other discarded.
У карлика 8 ячеек краткосрочной памяти. Когда дварф думает, проверяется, существует ли уже воспоминание этой группы в ячейке краткосрочной памяти. Если мысль не попадает в существующую группу, новая мысль заполнит пустую ячейку, а если все ячейки заполнены, перезапишет самое слабое воспоминание (с самой слабой эмоцией) среди краткосрочной памяти — даже если старое воспоминание сильнее нового. Если у мысли уже есть воспоминание из её группы в ячейке памяти, более сильное воспоминание из двух будет сохранено, а другое отброшено.


For example, a dwarf gets caught in the rain and is dejected (strength 1/4). If they haven't seen rain in the last year, this will be written to their memory, overwriting the weakest existing memory of a different group. If they have seen rain in the last year, it will overwrite the previously weaker emotion of being annoyed by the rain (strength 1/8), or ignore the new experience if the old emotion was the stronger being dismayed by the rain (strength 1/2).
Например, дварф попадает под дождь и впадает в уныние (сила 1/4). Если он не видел дождя за последний год, это воспоминание будет записано в память, заменив самые слабые из существующих воспоминаний другой группы. Если он помнит дождь из прошлого, то он либо заменит ранее более слабую эмоцию досады (сила 1/8) из-за дождя, либо проигнорирует новое переживание, если старая эмоция была испугом от дождя (сила 1/2).


This mostly leads to a constant cycling of the weakest of the 8 memory slots as new thoughts overwrite each other. An overwritten thought is a forgotten thought. You can see this in the dwarf's thoughts and preferences screen, they'll mention more than 8 things that they have recently experienced, but they are only being ''affected'' by 8 of those things. The list is not a reflection of what is in their current memory, but is a reflection of what has been in their memory recently. The consequence of this cycling is that short-term memories are mostly fleeting, with a maximum of 7 short-term memories having a lasting effect on a dwarf's mood.
В основном это приводит к постоянному переключению самых слабых воспоминаний среди 8 ячеек памяти, поскольку новые мысли постоянно перезаписывают друг друга. Замененная мысль — это забытая мысль. Вы можете увидеть это на экране [[Thoughts and preferences]], они будут упоминать более 8 вещей, которые они недавно пережили, но ''влияют'' на них только 8. Этот список не является прямым отражением того, что сейчас находится в памяти, но показывает, что было в их памяти в последнее время. Следствием этого цикла является то, что кратковременные воспоминания в основном мимолетны, максимум 7 кратковременных воспоминаний оказывают длительное влияние на настроение дварфа.


=== Долгосрочные воспоминания ===
=== Долгосрочные воспоминания ===

Версия от 15:43, 21 сентября 2021

Воспоминания – причина появления мыслей дварфа. По сути, они являются эволюцией старой системы, произошедшей в версии 0.44.10.

У каждого дварфа есть восемь слотов краткосрочной памяти и восемь слотов долговременной памяти. В течение года дварф будет "зацикливаться/переживать/запоминать" восемь событий, которые вызвали сильнейшие эмоции (негативные или позитивные), и дополнительно изменит свой уровень стресса. После года в одном из кратковременных слотов воспоминание будет перемещено в слот долговременной, если оно сильнее, чем те, которые там уже есть, в противном случае оно исчезнет. В долговременных слотах воспоминание сохраняется навсегда и периодически преследуют дварфа (с положительным или отрицательным эффектом), пока не будет перезаписана еще более сильными воспоминаниями. Чтобы избежать излишних психологических травм, которые накапливались бы и блокировали слоты памяти дварфа (например, множественные случаи ужаса в битве при виде смерти множества существ), воспоминания сгруппированы в категории, и только самые сильные эмоции в каждой категории получают отдельный слот.

Эмоции, вызванные воспоминанием, могут меняться сами по себе с течением времени, и это может вызывать постоянные изменения в чертах личности и ценностях ​​дварфа. Когда это произойдет, на экране Thoughts and preferences будет отображаться ярко-пурпурным цветом: каким образом изменилась его личность, какое событие вызвало это изменение и когда.

Подробная механика

Как работают воспоминания

У дварфы получают мысли, основанные на их переживаниях, эти мысли вызывают эмоции разной степени силы, создавая воспоминания. Каждый тип воспоминания попадает в одну из трёх групп: кратковременная память, долговременная память и основная память. Вы можете увидеть, что недавно побывало в памяти дварфа, открыв экран Thoughts and preferences. Если переживание возникло непосредственно, вроде "She felt satisfied at work." ru, оно повлияло на кратковременную память, если же вспомнить переживание, вроде "She felt satisfied remembering work." ru, то это влияет на долговременную память. Основные воспоминания показываются подробно, в том числе год события и произошедшие в результате изменения личности, например: "She can easily fall in love or develop positive sentiments, after gaining a sibling in 351." ru

Краткосрочные воспоминания

У карлика 8 ячеек краткосрочной памяти. Когда дварф думает, проверяется, существует ли уже воспоминание этой группы в ячейке краткосрочной памяти. Если мысль не попадает в существующую группу, новая мысль заполнит пустую ячейку, а если все ячейки заполнены, перезапишет самое слабое воспоминание (с самой слабой эмоцией) среди краткосрочной памяти — даже если старое воспоминание сильнее нового. Если у мысли уже есть воспоминание из её группы в ячейке памяти, более сильное воспоминание из двух будет сохранено, а другое отброшено.

Например, дварф попадает под дождь и впадает в уныние (сила 1/4). Если он не видел дождя за последний год, это воспоминание будет записано в память, заменив самые слабые из существующих воспоминаний другой группы. Если он помнит дождь из прошлого, то он либо заменит ранее более слабую эмоцию досады (сила 1/8) из-за дождя, либо проигнорирует новое переживание, если старая эмоция была испугом от дождя (сила 1/2).

В основном это приводит к постоянному переключению самых слабых воспоминаний среди 8 ячеек памяти, поскольку новые мысли постоянно перезаписывают друг друга. Замененная мысль — это забытая мысль. Вы можете увидеть это на экране Thoughts and preferences, они будут упоминать более 8 вещей, которые они недавно пережили, но влияют на них только 8. Этот список не является прямым отражением того, что сейчас находится в памяти, но показывает, что было в их памяти в последнее время. Следствием этого цикла является то, что кратковременные воспоминания в основном мимолетны, максимум 7 кратковременных воспоминаний оказывают длительное влияние на настроение дварфа.

Долгосрочные воспоминания

Once a memory has remained in a short-term memory slot for one year it will attempt to be promoted to a long-term memory slot. There are 8 long-term memory slots, and the procedure works similarly to short-term memory allocations, with one important difference.

When the attempt to promote is made, a check is first made to see if there is an empty slot, if there is an empty slot the memory will be promoted to that slot even if a memory of that group already exists in another long-term memory slot. It is possible (but very rare) to have more than one memory of the same group in long term memory. This cannot happen in short term memory. If there are no empty slots a check is made to see if an existing memory of the same group exists. The promotion will fail if the existing long term memory is stronger, or will overwrite if the existing long term memory is weaker. If there are no empty slots and no existing memory of the same group, then the weakest of the other existing memories in long term will be overwritten.

When a short-term memory is promoted (or possibly fails to promote) to long term memory it leaves an empty slot in the dwarf's short-term memory. Due to the cycling of the weakest short-term memories, it tends to be the stronger emotions that cause memories to remain in short-term memory for long enough to be promoted. The effect of the promotion on the dwarf's short-term memory is that it 'purges' a slot, allowing for a relatively weaker emotion to stick around without being overwritten by the cycling.

Long-term memories are important and can be particularly impactful on a dwarf's mood because: 1) if a dwarf is frequently experiencing the same thing, good or bad, the same emotion can easily exist in both short term and long term, effectively doubling its impact; 2) long term memories are often revisited long after an experience has ceased to occur; and 3) long term memories can become clogged with thoughts that can't be promoted further - more on that below.

It's currently indeterminate what causes a dwarf to think about something in their long-term memory, whether it's random or predictable, but it seems to be frequent. (Across a sample size of 300 dwarves, all of whom had been in one of several 'happy' fortresses for more than 2 years, the median number of revisited memories was 9, with 83% of dwarves revisiting 8 or more long-term memories. This suggests that all of their long-term memories had been revisited at the point of sampling, with some cycling of long-term memories having occurred within the recent months.)

Основные воспоминания

When a dwarf thinks about a long-term memory, it has a 1:3 chance of being promoted to core memory and causing one or more personality changes, if the memory is of a group that can be promoted to core memory. There is no limit on the number of core memory slots, and it is common to have several core memory slots populated by memories of the same group, for example, several experiences of seeing dead bodies in different years are common in core memory.

Core memories are less impactful than long-term memories, as they are rarely, if ever, revisited. However, the change that is made to the personality of the dwarf is permanent, and this can be for good or bad.

The majority of long-term memories that will be promoted to core memory are negative thoughts. The ones that have been found so far are: seeing a dead body, seeing somebody die, having a loved one die, being uncovered, experiencing trauma, experiencing miasma, rain, freakish weather or being made nauseous by the sun; and on the positive side: becoming a parent and gaining a sibling. A query to Toady about this tendency to promote only certain long-term memories to core memory confirmed that he thinks that there is an exclusion list, but couldn't recall what was on it at the time of the Q&A.

The effect of mostly negative memories being promoted to core means that the long-term memory slots of a dwarf can become clogged with relatively positive emotions, if care is taken. Only the weakest long-term memory will be cycled out by short-term memories being promoted, meaning that it is possible to maintain dwarves in an ecstatic state.

Long-term memories that are written to the core memory are removed from long-term memory, thereby leaving an empty slot.

Также