<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SetTarget</id>
	<title>SetTarget - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SetTarget"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=SetTarget&amp;action=history"/>
	<updated>2026-05-12T20:57:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=SetTarget&amp;diff=1162&amp;oldid=prev</id>
		<title>Tayfunwiki at 23:00, 9 February 2024</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=SetTarget&amp;diff=1162&amp;oldid=prev"/>
		<updated>2024-02-09T23:00:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:00, 9 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Scheme schemeToUpdate = IM.Player.GetScheme(schemeName);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Scheme schemeToUpdate = IM.Player.GetScheme(schemeName);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if (schemeToUpdate != null) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if (schemeToUpdate != null) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;             schemeToUpdate.SetTarget(newTarget);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;             schemeToUpdate&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.Schemer&lt;/ins&gt;.SetTarget(newTarget);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Debug.Log($&amp;quot;Updated target of scheme '{schemeName}' to: {newTarget.Name}&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Debug.Log($&amp;quot;Updated target of scheme '{schemeName}' to: {newTarget.Name}&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         } else {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         } else {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=SetTarget&amp;diff=910&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;SetTarget&lt;/code&gt; Method in Scheme Class ==  === Overview === The &lt;code&gt;SetTarget&lt;/code&gt; method in the Scheme class allows for the assignment of a new target actor to a scheme. This method is crucial in scenarios where the focus or the intended recipient of the scheme's actions needs to be changed.  === Syntax === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public void SetTarget(Actor actor)  &lt;/syntaxhighlight&gt;  === Parameters ===  * &lt;code&gt;actor&lt;/code&gt;: An &lt;code&gt;Actor&lt;/code&gt; obj...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=SetTarget&amp;diff=910&amp;oldid=prev"/>
		<updated>2024-01-04T23:59:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;SetTarget&amp;lt;/code&amp;gt; Method in Scheme Class ==  === Overview === The &amp;lt;code&amp;gt;SetTarget&amp;lt;/code&amp;gt; method in the Scheme class allows for the assignment of a new target actor to a scheme. This method is crucial in scenarios where the focus or the intended recipient of the scheme&amp;#039;s actions needs to be changed.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public void SetTarget(Actor actor)  &amp;lt;/syntaxhighlight&amp;gt;  === Parameters ===  * &amp;lt;code&amp;gt;actor&amp;lt;/code&amp;gt;: An &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; obj...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;SetTarget&amp;lt;/code&amp;gt; Method in Scheme Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;SetTarget&amp;lt;/code&amp;gt; method in the Scheme class allows for the assignment of a new target actor to a scheme. This method is crucial in scenarios where the focus or the intended recipient of the scheme's actions needs to be changed.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public void SetTarget(Actor actor)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;actor&amp;lt;/code&amp;gt;: An &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; object representing the new target of the scheme.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* This method updates the target of a scheme, changing the actor who is the focus or the intended recipient of the scheme's actions or consequences.&lt;br /&gt;
* It's important for game scenarios where the original target changes due to narrative progression, player decisions, or other gameplay events.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The &amp;lt;code&amp;gt;SetTarget&amp;lt;/code&amp;gt; method is typically used in game logic where there is a need to shift the focus of a scheme from one actor to another. This can happen for various reasons, such as changes in the storyline, player strategies, or new developments in the game's world.&lt;br /&gt;
&lt;br /&gt;
=== Example of Usage ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class SchemeTargetUpdater : MonoBehaviour {&lt;br /&gt;
    void UpdateSchemeTarget(string schemeName, Actor newTarget) {&lt;br /&gt;
        Scheme schemeToUpdate = IM.Player.GetScheme(schemeName);&lt;br /&gt;
        if (schemeToUpdate != null) {&lt;br /&gt;
            schemeToUpdate.SetTarget(newTarget);&lt;br /&gt;
            Debug.Log($&amp;quot;Updated target of scheme '{schemeName}' to: {newTarget.Name}&amp;quot;);&lt;br /&gt;
        } else {&lt;br /&gt;
            Debug.Log($&amp;quot;Scheme not found: {schemeName}&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
* In the &amp;lt;code&amp;gt;UpdateSchemeTarget&amp;lt;/code&amp;gt; method, this example demonstrates how to set a new target for a specific scheme. It retrieves the scheme using &amp;lt;code&amp;gt;IM.Player.GetScheme&amp;lt;/code&amp;gt; and updates its target.&lt;br /&gt;
* The method logs a message indicating whether the target was successfully updated or if the scheme was not found.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* Changing the target of a scheme can significantly alter its impact and outcomes, making this method a key tool for dynamic storytelling and gameplay adaptation.&lt;br /&gt;
* Proper management of target changes is crucial for maintaining the integrity of the game's narrative and logic.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>