Skip to content

#6419 Topic shouldn't be greyed out if they can produce another topic reference.

Ivan Beloborodov requested to merge myrix/openmw:master into master

Implements Issue #6419.

Adds two things:

  1. When updating topics available for a dialogue with a actor, if a topic's response would introduce a new topic, ensures original topic is not marked as exhausted.

  2. Caches response to a topic during actor's available topics update.

While 2 is not strictly necessary, is resolves following discrepancy:

If topic has infos depending on a Random100 global, which updates every frame, it is possible for this topic for a not exhausted info to be chosen during available topics update but for an exhausted info to be chosen when the topic is actually activated. I.e. the state of topic exhaustion can be inconsistent between listing of available topics in the dialogue window and topic activation.

It is also a little bit of optimization, shouldn't hurt, and may be relevant for topics with quite a number of infos such as 'latest rumors'.

Tested with scenario in #6419 (closed), when talking to Eldafire already talked topic 'someone in particular' which will add a new topic 'Altmer' is not shown as exhausted, after the topic is activated and a new topic 'Altmer' is added the topic is shown as exhausted.

Edited by Ivan Beloborodov

Merge request reports