Issue Data
|
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 |
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:
So you're right.
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
And may I say, whoever cooked up the logic on how those things work needs to be flogged
Showing Comments 1 - 2 of 2