ToB Bug - Imoen keeps triggering dialogue
rost400
Member Posts: 13
So I have a rather annoying bug in ToB where Imoen comes up to me and triggers a dialogue over, and over.
The dialogue in question has Charname asking Imoen about memories of Spellhold, or whether she worships any god. And when I select one it doesn't appear the next time, so it seems to be repeatable dialogue that pops up periodically (though not every 2 seconds).
First time it triggered after the party got teleported to the Pocket Dimension and did the first challenge. Imoen triggered a dialogue reacting to that encounter and after a while triggered the dialogue in question. I managed to get rid of it by incrementing a global variable I#IMOENTOBPP1 from 2 to 3. It changed from 1 to 2 before and after the dialogue first triggered so I assumed it might indicate which dialogue should trigger and skip to the next one (being 3).
Second time it started triggering after killing Yaga-Shura and having Solar reveal Charname's origins and now it just keeps going regardless of what I do.
It's not voiced whatsoever so I assume it's from a mod, of which I have 4 Imoen related:
Chatty Imoen v1.3
Imoen Romance v3.9
Imoen Friendship v3.3
IEP Extended Banters v5.4 (Imoen "Retrospection" dialogue for BGII: ToB)
The "retrospection" seems like a possibility given the topic of the dialogue, but just a wild guess.
The dialogue in question has Charname asking Imoen about memories of Spellhold, or whether she worships any god. And when I select one it doesn't appear the next time, so it seems to be repeatable dialogue that pops up periodically (though not every 2 seconds).
First time it triggered after the party got teleported to the Pocket Dimension and did the first challenge. Imoen triggered a dialogue reacting to that encounter and after a while triggered the dialogue in question. I managed to get rid of it by incrementing a global variable I#IMOENTOBPP1 from 2 to 3. It changed from 1 to 2 before and after the dialogue first triggered so I assumed it might indicate which dialogue should trigger and skip to the next one (being 3).
Second time it started triggering after killing Yaga-Shura and having Solar reveal Charname's origins and now it just keeps going regardless of what I do.
It's not voiced whatsoever so I assume it's from a mod, of which I have 4 Imoen related:
Chatty Imoen v1.3
Imoen Romance v3.9
Imoen Friendship v3.3
IEP Extended Banters v5.4 (Imoen "Retrospection" dialogue for BGII: ToB)
The "retrospection" seems like a possibility given the topic of the dialogue, but just a wild guess.
Post edited by rost400 on
0
Comments
Alternatively, you think it will break my save if I remove this part of the mod and reload a save before it first triggered? Though I'm also using EET so it could break something else anyway.
The Friendship mod has 3 scripts which make Imoen come up to Charname and start a dialogue. They trigger after the 1st challenge, after Saradush has been sacked/Yaga-Shura killed, and after the 3rd challenge. This aligns with the triggers in my original post and the changes in global variables correspond to that as well.
The issue seems to be that when these scripts are triggered the dialogue goes to a Player Initiated Dialogue (PID), which is part of the Romance mod, instead of the intended dialogue. That means variables don't get updated and the script fires off again and again.
I'm just gonna assume that the game goes through the Imoen dialogue file (with all the mods appended) sequentially and triggers the first dialogue/condition that is applicable (meaning all conditions must be unique). So the condition used for the Romance mod PID is applicable as well when the Friendship mod triggers its specific dialogue for Imoen, thus it's not unique.
This is the code of the script in Friendship mod: And this is the code of PID condition in Romance mod:
If a dialogue is initiated like this, will it satisfy the condition?
Dialogue(Player1) -> ~IsGabber(Player1) seems like the candidate.
Assuming the game really does go through the file until the first applicable condition, appending the Friendship dialogues in question before the Romance mod dialogue should solve the issue (and likely cause a dozen others).
Edit: AS I WAS - I found a solution at the following website: http://baldursextendedworld.com/Vanilla_Forums/discussion/308/imoen-continually-initiates-dialogue-with-player-character-not-sure-if-bug-or
TL;DR, use this console code: C:SetGlobal("LK#ImmyImpish","GLOBAL",3)