Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Skyrim Special Edition Patch
Component: Skyrim SE: Vanilla
Category: Quests & Dialogue
Assigned To: Nobody
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By Sacralletius on May 6, 2021 7:17 am
Last Edited By BlackPete on May 6, 2021 4:24 pm
Closed By Arthmoor on May 21, 2021 12:24 am
Resolution: Fixed
Comment: Fixed for USSEP 4.2.5.

Issue #31279: Riften Gate Guard speech check

 
The speech check for the Riften Gate Guard always succeeds, despite there being an INFO for failure: ([INFO:00051A45] ('Call it what you want. You don't pay, then you're not getting in.' in GRUP Topic Children of DialogueRiftenGateNorthBranchTopic05 "This is obviously a shakedown. (Persuade)" [DIAL:000E66B4]))

[INFO:000E66D2] ('All right, keep your voice down... you want everyone to hear you? I'll let you in, just let me unlock the gate.' in GRUP Topic Children of DialogueRiftenGateNorthBranchTopic05 "This is obviously a shakedown. (Persuade)" [DIAL:000E66B4])

-> Condition #1: Has an OR condition. This means that the following logic applies:

Condition #0. Subject.GetAliasRef(000 DRGGNorthGuardAlias ) == 1.0 OR
Condition #1. Subject.GetAliasRef(000 DRGGNorthGuardImperialAlias ) == 1.0 OR -> this OR needs to be removed to have the actor conditions part of the INFO not interfere with the persuasion check.
Condition #2. PlayerRef.GetActorValue(Speech) >= SpeechEasy OR
Condition #3. PlayerRef.GetEquipped(TGAmuletofAritculationList) == 1.0 OR

Comments

2 comment(s) [Closed]
Sclerocephalus said:
 
Unfortunately, OR and AND in condition checks of Bethesda games do not work in the same way as they do in scripting. They never did.
Your modification "translates" to the logics Cond.0 or (Cond 1 and Cond. 2) or Cond. 3, and this is not exactly what we would want to check.

To make it work, we need to do it as follows:
(Cond.0 and Cond.2) or (Cond.0 and Cond.3) or (Cond.1 and Cond.2) or (Cond.1 and Cond.3)

From the WIki:
To properly check whether ((A AND B) OR (C AND D) OR (E AND F)) is true, one would use:

A OR C OR E AND A OR C OR F AND A OR D OR E AND A OR D OR F AND B OR C OR E AND B OR C OR F AND B OR D OR E AND B OR D OR F


So you're right.

Comment #1 May 6, 2021 4:38 pm  Edited by Sclerocephalus on May 6, 2021 5:28 pm
Arthmoor said:
 
And may I say, whoever cooked up the logic on how those things work needs to be flogged :toddtroll:

Showing Comments 1 - 2 of 2