<?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%2FAt_The_Gates</id>
		<title>Compatible Companion Mod Creation/At The Gates - 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%2FAt_The_Gates"/>
		<link rel="alternate" type="text/html" href="https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/At_The_Gates&amp;action=history"/>
		<updated>2026-06-15T16:26:38Z</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/At_The_Gates&amp;diff=16460&amp;oldid=prev</id>
		<title>Idomeneas at 15:21, 10 July 2011</title>
		<link rel="alternate" type="text/html" href="https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/At_The_Gates&amp;diff=16460&amp;oldid=prev"/>
				<updated>2011-07-10T15:21:01Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:21, 10 July 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The '''At The Gates''' step explains how to make your custom companion available for the final assault on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Denerrim &lt;/del&gt;and the Archdemon.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The '''At The Gates''' step explains how to make your custom companion available for the final assault on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Denerim &lt;/ins&gt;and the Archdemon.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Valeria at the gates in the climax =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Valeria at the gates in the climax =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Idomeneas</name></author>	</entry>

	<entry>
		<id>https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/At_The_Gates&amp;diff=16437&amp;oldid=prev</id>
		<title>Sunjammer: Created</title>
		<link rel="alternate" type="text/html" href="https://www.datoolset.net/mw/index.php?title=Compatible_Companion_Mod_Creation/At_The_Gates&amp;diff=16437&amp;oldid=prev"/>
				<updated>2011-07-09T19:00:12Z</updated>
		
		<summary type="html">&lt;p&gt;Created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The '''At The Gates''' step explains how to make your custom companion available for the final assault on Denerrim and the Archdemon.&lt;br /&gt;
&lt;br /&gt;
= Valeria at the gates in the climax =&lt;br /&gt;
&lt;br /&gt;
In  the climax, you get a last chance to switch your party, where everyone  parades in front of you. Well... the right behavior is to first talk to  Riordan, he opens the partypicker, you may choose whom you want and then  the parade begins. &lt;br /&gt;
&lt;br /&gt;
Once you close the partypicker, Valeria will  speak before/or after everyone else is done, so it runs smoothly. Now  since many mods might mess up the partypicker (by not including certain  chars), you might have Valeria not showing up. At this stage you won't  be allowed to use the dialog option any more, to get her to join. &lt;br /&gt;
&lt;br /&gt;
You  could be intrusive here and force her in the partypicker, but if  everyone does it we're in trouble. So I don't recommend it (I did  finally implement it this way recently). But, it is best to handle  partypicker compatibility by including all waypoints for all NPC's in  the char_stage.&lt;br /&gt;
&lt;br /&gt;
==What we need==&lt;br /&gt;
&lt;br /&gt;
The  plot clipt_main contains the important flag  CLI_MAIN_PC_FINISHED_SETTING_FINAL_PARTY, and as it says, it becomes  true when the PC is done setting the final party. So, create in the  VALERIA_NPC_HIRE plot the flag  VALERIA_CLI_MAIN_PC_FINISHED_SETTING_FINAL_PARTY, 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_clipt_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;
    //valeria at the gates&lt;br /&gt;
    if   (WR_GetPlotFlag(PLT_CLIPT_MAIN,CLI_MAIN_PC_FINISHED_SETTING_FINAL_PARTY)  &amp;amp;&amp;amp;  !WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_CLI_MAIN_PC_FINISHED_SETTING_FINAL_PARTY))&lt;br /&gt;
    {&lt;br /&gt;
        //the next 4 lines takes care of her, regardless of whether you added &lt;br /&gt;
        //her to the party. this way she will show up when your companions&lt;br /&gt;
        //defend the gate, choose another location of course&lt;br /&gt;
        location ValeriaLoc;&lt;br /&gt;
        object curArea=GetArea(oPC);&lt;br /&gt;
        ValeriaLoc=Location(curArea, Vector(123.24, 717.48, 0.0), -64.92);&lt;br /&gt;
        AddCommand(oVal, CommandJumpToLocation(ValeriaLoc));&lt;br /&gt;
&lt;br /&gt;
        WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_CLI_MAIN_PC_FINISHED_SETTING_FINAL_PARTY,TRUE);&lt;br /&gt;
        if(WR_GetPlotFlag(PLT_VALERIA_NPC_HIRE, PARTY_VALERIA_IN_PARTY))&lt;br /&gt;
        {&lt;br /&gt;
            //this flag is important for the slideshow at the end&lt;br /&gt;
            WR_SetPlotFlag(PLT_VALERIA_NPC_HIRE,VALERIA_FIGHTING_ARCHDEMON,TRUE);&lt;br /&gt;
            WR_SetFollowerState(oVal, FOLLOWER_STATE_ACTIVE);&lt;br /&gt;
            SetLocalInt(oVal, CREATURE_REWARD_FLAGS, 0);  //Allows the follower to gain XP&lt;br /&gt;
        }&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_FIGHTING_ARCHDEMON,FALSE);&lt;br /&gt;
            WR_SetFollowerState(oVal, FOLLOWER_STATE_AVAILABLE);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        SetObjectActive(oVal,1);&lt;br /&gt;
        UT_Talk(oVal,oPC);&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/dascript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changing the Valeria dialog appropriately: valeria_npc.dlg==&lt;br /&gt;
Use the flag here, and depending on whether the PC added Valeria to the party, follow a different path.&lt;br /&gt;
&lt;br /&gt;
[[Image:Gates1.JPG|border|200px]]&lt;br /&gt;
&lt;br /&gt;
She complains if she wasn't selected to fight the archdemon, and she has every right.&lt;br /&gt;
&lt;br /&gt;
[[Image:Gates2.JPG|border|200px]]&lt;br /&gt;
&lt;br /&gt;
{{TutorialNavBar|End Game Slideshow|Companion Initiated Conversation}}&lt;/div&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	</feed>