<?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=IM.Trigger</id>
	<title>IM.Trigger - 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=IM.Trigger"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=IM.Trigger&amp;action=history"/>
	<updated>2026-05-12T23:59:28Z</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=IM.Trigger&amp;diff=867&amp;oldid=prev</id>
		<title>Tayfunwiki at 19:58, 4 January 2024</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=IM.Trigger&amp;diff=867&amp;oldid=prev"/>
		<updated>2024-01-04T19:58: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 15:58, 4 January 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-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&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(currentScheme == null) return;&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(currentScheme == null) return;&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;br/&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;br/&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;         IM.Trigger(currentScheme, &amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Disguised&lt;/del&gt;&amp;quot;, true);&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;         IM.Trigger(currentScheme, &amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kill Guardian&lt;/ins&gt;&amp;quot;, true);&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;     }&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;     }&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;}&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;}&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=IM.Trigger&amp;diff=866&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;Wait Trigger  == &lt;code&gt;Trigger&lt;/code&gt; Method in IM Class ==  === Overview === The &lt;code&gt;Trigger&lt;/code&gt; method in the IM (Intrigue Manager) class is designed to invoke the &lt;code&gt;onTrigger&lt;/code&gt; event, enabling the handling of specific triggers within the game, particularly in relation to schemes.  === Description ===  * Method Signature: &lt;code&gt;public static void Trigger(Scheme scheme, string triggerName, bool value)&lt;/code&gt; * Parameters: **...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=IM.Trigger&amp;diff=866&amp;oldid=prev"/>
		<updated>2024-01-04T19:58:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php/File:Wait_Trigger.png&quot; title=&quot;File:Wait Trigger.png&quot;&gt;thumb|Wait Trigger&lt;/a&gt;  == &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; Method in IM Class ==  === Overview === The &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; method in the IM (Intrigue Manager) class is designed to invoke the &amp;lt;code&amp;gt;onTrigger&amp;lt;/code&amp;gt; event, enabling the handling of specific triggers within the game, particularly in relation to schemes.  === Description ===  * Method Signature: &amp;lt;code&amp;gt;public static void Trigger(Scheme scheme, string triggerName, bool value)&amp;lt;/code&amp;gt; * Parameters: **...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Wait Trigger.png|thumb|Wait Trigger]]&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; Method in IM Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; method in the IM (Intrigue Manager) class is designed to invoke the &amp;lt;code&amp;gt;onTrigger&amp;lt;/code&amp;gt; event, enabling the handling of specific triggers within the game, particularly in relation to schemes.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Method Signature: &amp;lt;code&amp;gt;public static void Trigger(Scheme scheme, string triggerName, bool value)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Parameters:&lt;br /&gt;
** &amp;lt;code&amp;gt;scheme&amp;lt;/code&amp;gt;: The &amp;lt;code&amp;gt;Scheme&amp;lt;/code&amp;gt; object related to the trigger.&lt;br /&gt;
** &amp;lt;code&amp;gt;triggerName&amp;lt;/code&amp;gt;: A string specifying the name of the trigger.&lt;br /&gt;
** &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt;: A boolean value that is passed along with the trigger, often representing the state or condition of the trigger.&lt;br /&gt;
&lt;br /&gt;
=== Functionality ===&lt;br /&gt;
&lt;br /&gt;
* This method is responsible for invoking the &amp;lt;code&amp;gt;onTrigger&amp;lt;/code&amp;gt; event, passing the relevant scheme, trigger name, and value.&lt;br /&gt;
* The method facilitates the communication and response to various game events and conditions tied to specific triggers, especially within the context of a scheme.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; method is used to manually activate triggers within the game's logic, particularly for advancing or responding to specific events in a scheme. This can be crucial for gameplay mechanics that depend on event-driven actions and dynamic interactions.&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 SchemeEventManager : MonoBehaviour {&lt;br /&gt;
    public Actor target;&lt;br /&gt;
&lt;br /&gt;
    public void ActivateTrigger() {&lt;br /&gt;
        Scheme currentScheme = IM.Player.GetScheme(&amp;quot;Assassination&amp;quot;, target);&lt;br /&gt;
        if(currentScheme == null) return;&lt;br /&gt;
&lt;br /&gt;
        IM.Trigger(currentScheme, &amp;quot;Disguised&amp;quot;, true);&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;
* &amp;lt;code&amp;gt;ActivateTrigger&amp;lt;/code&amp;gt;: This method demonstrates how to use the &amp;lt;code&amp;gt;IM.Trigger&amp;lt;/code&amp;gt; method to activate a specific trigger in a scheme. It logs the activation for confirmation and traceability.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;Trigger&amp;lt;/code&amp;gt; method is essential in games where triggers play a significant role in advancing schemes or gameplay scenarios.&lt;br /&gt;
* Proper usage of this method allows for a more interactive and responsive gameplay experience, where player actions or game events can lead to specific outcomes or changes in the game state.&lt;br /&gt;
* It is especially relevant in strategy games, narrative-driven games, or any genre that involves complex event systems and conditional gameplay mechanics.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>