Skip to main content

B1TalkStateRuleTableRow

A talk state rule row from TalkStateRule.json. When all States are active and no ExceptStates is active, every action of the row applies. A row with Prefer set is a preference row (see the file comment).

PropertyTypeDescriptionMetadata
StatesTArrayThe rule applies only when all of these states are active. Use Always for a rule that always applies.Category: B1TalkStateRuleTableRow
ExceptStatesTArrayThe rule is skipped when any of these states is active.Category: B1TalkStateRuleTableRow
RecommendFB1TalkStateRuleTargetRaise matching talks by one step.Category: B1TalkStateRuleTableRow
LowerFB1TalkStateRuleTargetLower matching talks by one step. Lowering cancels raising first and then reduces the weight inside the same tier.Category: B1TalkStateRuleTableRow
NoRecommendFB1TalkStateRuleTargetCancel every raise of matching talks. They stay in the candidates.Category: B1TalkStateRuleTableRow
ExcludeFB1TalkStateRuleTargetRemove matching talks from the candidates. Nothing brings them back.Category: B1TalkStateRuleTableRow
AllowOnlyFB1TalkStateRuleTargetKeep only matching talks. When nothing is left, the speaker does not talk to this listener this time.Category: B1TalkStateRuleTableRow
MaxDepthEB1TalkDepthCapDepth cap while this rule is active.Category: B1TalkStateRuleTableRow
ExcludeGroupEB1TalkGroupExcludeTalk group removed at step 2 of the legacy group path. Evaluated before the group is chosen, so the rule cannot use group dependent states. The default path has no group and ignores it.Category: B1TalkStateRuleTableRow
PreferFB1TalkStateRuleTargetPreference pool. A row with this set is a preference row: when its states and owners match and some of these talks are left after every other rule,
it may be picked (evenly among such rows) and then wins with Probability. The speaker then picks only from these talks.
Category: B1TalkStateRuleTableRow
PreferExceptFB1TalkStateRuleTargetTalks that are never preferred even when Prefer matches them, such as greetings inside a preferred topic. Only for preference rows.Category: B1TalkStateRuleTableRow
OwnersTArrayOwner conditions of a preference row. All must match. Empty means everyone.Category: B1TalkStateRuleTableRow
ProbabilityfloatChance in (0, 1] that the picked preference row wins. Only for preference rows.Category: B1TalkStateRuleTableRow
OverrideRulesTArrayRules whose Exclude and AllowOnly do not apply to this row's preferred talks once the row wins. Every other pick still follows them. Only for preference rows.Category: B1TalkStateRuleTableRow
Foreign: TalkStateRule.Id
IdFNameUnique IdCategory: B1TableRowBase
CommentFStringDev CommentCategory: B1TableRowBase