<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://silvematt.com/URPGCreationKitDocumentation/index.php?action=history&amp;feed=atom&amp;title=ToBreakTheQuietQuestScript</id>
	<title>ToBreakTheQuietQuestScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?action=history&amp;feed=atom&amp;title=ToBreakTheQuietQuestScript"/>
	<link rel="alternate" type="text/html" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?title=ToBreakTheQuietQuestScript&amp;action=history"/>
	<updated>2026-05-15T10:23:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://silvematt.com/URPGCreationKitDocumentation/index.php?title=ToBreakTheQuietQuestScript&amp;diff=370&amp;oldid=prev</id>
		<title>Silvematt: Created page with &quot;&lt;pre&gt; using UnityEngine; using RPGCreationKit; using RPGCreationKit.Quests; using RPGCreationKit.AI; using RPGCreationKit.CellsSystem;  namespace RPGCreationKit.Quests {     public class ToBreakTheQuietQuestScript : QuestScript     {         RckAI bandit1;         RckAI bandit2;          // This will start running the CustomUpdate as soon as the quest starts.         public void Start()         {             quest.questScriptExecutionDelay = 1f;             RunQuestScrip...&quot;</title>
		<link rel="alternate" type="text/html" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?title=ToBreakTheQuietQuestScript&amp;diff=370&amp;oldid=prev"/>
		<updated>2022-03-08T22:44:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; using UnityEngine; using RPGCreationKit; using RPGCreationKit.Quests; using RPGCreationKit.AI; using RPGCreationKit.CellsSystem;  namespace RPGCreationKit.Quests {     public class ToBreakTheQuietQuestScript : QuestScript     {         RckAI bandit1;         RckAI bandit2;          // This will start running the CustomUpdate as soon as the quest starts.         public void Start()         {             quest.questScriptExecutionDelay = 1f;             RunQuestScrip...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
using UnityEngine;&lt;br /&gt;
using RPGCreationKit;&lt;br /&gt;
using RPGCreationKit.Quests;&lt;br /&gt;
using RPGCreationKit.AI;&lt;br /&gt;
using RPGCreationKit.CellsSystem;&lt;br /&gt;
&lt;br /&gt;
namespace RPGCreationKit.Quests&lt;br /&gt;
{&lt;br /&gt;
    public class ToBreakTheQuietQuestScript : QuestScript&lt;br /&gt;
    {&lt;br /&gt;
        RckAI bandit1;&lt;br /&gt;
        RckAI bandit2;&lt;br /&gt;
&lt;br /&gt;
        // This will start running the CustomUpdate as soon as the quest starts.&lt;br /&gt;
        public void Start()&lt;br /&gt;
        {&lt;br /&gt;
            quest.questScriptExecutionDelay = 1f;&lt;br /&gt;
            RunQuestScript();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        // CustomUpdate runs once every (quest.questScriptExecutionDelay) seconds&lt;br /&gt;
        public override void CustomUpdate()&lt;br /&gt;
        {&lt;br /&gt;
            base.CustomUpdate();&lt;br /&gt;
&lt;br /&gt;
            // If the Current Quest Stage is 20&lt;br /&gt;
            if (quest.currentQuestStage == 20)&lt;br /&gt;
            {&lt;br /&gt;
                // If the bandit data has not been assigned&lt;br /&gt;
                if(bandit1 == null || bandit2 == null)&lt;br /&gt;
                {&lt;br /&gt;
                    // Those two lines tries to get the NPCs, if they're loaded&lt;br /&gt;
                    CellInformation.TryToGetAI(&amp;quot;UQBandit001&amp;quot;, out bandit1);&lt;br /&gt;
                    CellInformation.TryToGetAI(&amp;quot;UQBandit002&amp;quot;, out bandit2);&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    if (bandit1.isAlive == false &amp;amp;&amp;amp; bandit2.isAlive == false)&lt;br /&gt;
                    {&lt;br /&gt;
                        // This block runs if the bandit data has been assigned and both bandits are dead&lt;br /&gt;
                        RCKFunctions.CompleteQuestStage(quest.questID, 20);&lt;br /&gt;
                        RCKFunctions.SetQuestStage(quest.questID, 30);&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Silvematt</name></author>
	</entry>
</feed>