<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Compatible_Companion_Mod_Creation%2FCompanion_Initiated_Conversation</id>
		<title>Compatible Companion Mod Creation/Companion Initiated Conversation - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Compatible_Companion_Mod_Creation%2FCompanion_Initiated_Conversation"/>
		<link rel="alternate" type="text/html" href="https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/Companion_Initiated_Conversation&amp;action=history"/>
		<updated>2026-05-31T10:07:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.6</generator>

	<entry>
		<id>https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/Companion_Initiated_Conversation&amp;diff=16438&amp;oldid=prev</id>
		<title>Sunjammer: Created page with &quot;The '''Companion Initiated Conversation''' step covers how to make it possible for custom companion to initiate a conversation at any point.  For example Valeria initiates a conv...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/Companion_Initiated_Conversation&amp;diff=16438&amp;oldid=prev"/>
				<updated>2011-07-09T19:08:30Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;Companion Initiated Conversation&amp;#039;&amp;#039;&amp;#039; step covers how to make it possible for custom companion to initiate a conversation at any point.  For example Valeria initiates a conv...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The '''Companion Initiated Conversation''' step covers how to make it possible for custom companion to initiate a conversation at any point.&lt;br /&gt;
&lt;br /&gt;
For example Valeria initiates a conversation if/when Wynne is killed (NOOO!!!). I love Wynne and no one should ever kill her, but if they do the char should lose approval unless it is that b... Morrigan or Zevran or etc.&lt;br /&gt;
&lt;br /&gt;
==What we need==&lt;br /&gt;
&lt;br /&gt;
Wynne could die in two places in the Circle: when you first pick her up or at Cullen.&lt;br /&gt;
&lt;br /&gt;
The plot CIR000PT_MAIN contains the two important flags for this: WYNNE_KILLED and WYNNE_KILLED_AT_CULLEN. So, create in the VALERIA_NPC_HIRE plot the flags VALERIA_WYNNE_KILLED and VALERIA_WYNNE_KILLED_AT_CULLEN, so we do this only once.&lt;br /&gt;
&lt;br /&gt;
== To implement ==&lt;br /&gt;
&lt;br /&gt;
In includes, add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dascript&amp;gt;#include &amp;quot;plt_cir000pt_main&amp;quot;&amp;lt;/dascript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the function check_plot_changed() add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dascript&amp;gt;&lt;br /&gt;
    //fighting wynne&lt;br /&gt;
    if (WR_GetPlotFlag(PLT_CIR000PT_MAIN,WYNNE_KILLED) &amp;amp;&amp;amp; !WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_WYNNE_KILLED))&lt;br /&gt;
    {&lt;br /&gt;
        if(WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE, PARTY_VALERIA_IN_PARTY))&lt;br /&gt;
        {&lt;br /&gt;
            WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_RESPONSE_TO_BAD,TRUE);&lt;br /&gt;
            AdjustFollowerApproval(oVal,-10,TRUE);&lt;br /&gt;
            UT_Talk(oVal,oPC);&lt;br /&gt;
            valeria_approval();&lt;br /&gt;
        }&lt;br /&gt;
        WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_WYNNE_KILLED,TRUE);&lt;br /&gt;
    }&lt;br /&gt;
    //fighting wynne&lt;br /&gt;
    if (WR_GetPlotFlag(PLT_CIR000PT_MAIN,WYNNE_KILLED_AT_CULLEN) &amp;amp;&amp;amp; !WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_WYNNE_KILLED_AT_CULLEN))&lt;br /&gt;
    {&lt;br /&gt;
        if(WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE, PARTY_VALERIA_IN_PARTY))&lt;br /&gt;
        {&lt;br /&gt;
            WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_RESPONSE_TO_BAD,TRUE);&lt;br /&gt;
            AdjustFollowerApproval(oVal,-10,TRUE);&lt;br /&gt;
            UT_Talk(oVal,oPC);&lt;br /&gt;
            valeria_approval();&lt;br /&gt;
        }&lt;br /&gt;
        WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_WYNNE_KILLED_AT_CULLEN,TRUE);&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/dascript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The flag: VALERIA_RESPONSE_TO_BAD can be used in valeria_npc.dlg as shown below. The function valeria_approval() is explained in the gift handling section.&lt;br /&gt;
&lt;br /&gt;
==Changes in valeria_npc.dlg==&lt;br /&gt;
Use the flag VALERIA_RESPONSE_TO_BAD, first to enter the bad reaction node in the dialog.&lt;br /&gt;
&lt;br /&gt;
[[File:wynne1.JPG|border|200px]]&lt;br /&gt;
&lt;br /&gt;
Reset the flag&lt;br /&gt;
&lt;br /&gt;
[[File:wynne2.JPG|border|200px]]&lt;br /&gt;
&lt;br /&gt;
Depending on which situation we're in display the appropriate node (once per game). Showing what happens when Wynne is killed when first meeting her. But you should never do that...&lt;br /&gt;
&lt;br /&gt;
[[File:wynne3.JPG|border|200px]]&lt;br /&gt;
&lt;br /&gt;
{{TutorialNavBar|At The Gates|Fort Drakon}}&lt;/div&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	</feed>