Salk Posted January 4, 2018 Share Posted January 4, 2018 (edited) Hello! It seems I cannot start a dialogue via script with an NPC that is under charm or even has been charmed. In short, this does not seem to work: IF StateCheck("Marek",STATE_CHARMED) // Marek Global("CharmTest","GLOBAL",0) THEN RESPONSE #100 SetGlobal("CharmTest","GLOBAL",1) ActionOverride("Marek",Dialogue([PC]) END Marek.cre has INITDLG.BCS assigned to himself and even swapping ActionOverride("Marek",Dialogue([PC]) with ActionOverride("Marek",SetNumTimesTalkedTo(0)) would produce as result a loop from INITDLG.BCS without really starting the dialogue action. No result even if I try to have a party member initiate it. Adding to the action list ChangeEnemyAlly("Marek",NEUTRAL) won't help either. Is this a bug/limitation of the engine or am I missing something here? Thanks! Edited January 5, 2018 by Salk Quote Link to comment
Ardanis Posted January 5, 2018 Share Posted January 5, 2018 IIRC it doesn't work in vanilla BG2 without ToBEx. Don't remember if EE added the feature back in. Quote Link to comment
Salk Posted January 5, 2018 Author Share Posted January 5, 2018 (edited) Hm... But I do have ToBEx installed. Unless it is some .ini setting that needs configuring? I do have the disable silence on charm component installed. Nice to see you Ardanis, by the way! Edited January 5, 2018 by Salk Quote Link to comment
Miloch Posted January 7, 2018 Share Posted January 7, 2018 Yeah, it's a ToBEx component that used to be standalone (A6CharmTalk or something) that enables this. Might be an .ini setting related to it too. There are some generic BG1 scripts that use this, and they only work with vanilla BG1 or ToBEx. We also use it in Aurora's Shoes for the shopkeepers. I would try replicating the same usage in your script. Make sure the charm check is the first block in the first script assigned to the .cre. Quote Link to comment
Salk Posted January 8, 2018 Author Share Posted January 8, 2018 Case closed. I tested this morning using another saved game and everything is working fine. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.