<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Directive-value</id>
	<title>Directive-value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Directive-value"/>
	<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Directive-value&amp;action=history"/>
	<updated>2026-11-15T13:06:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63333&amp;oldid=prev</id>
		<title>TopAce: /* Example */ added note</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63333&amp;oldid=prev"/>
		<updated>2021-05-08T18:32:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example: &lt;/span&gt; added note&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 18:32, 8 May 2021&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-l55&quot;&gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&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;  +Trigger Count: 4&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;  +Trigger Count: 4&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;  +Interval: 1&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;  +Interval: 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Note on the example===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Notice that in the first event, the conditional reads ( is-disabled-delay 1 ), not ( is-disabled-delay 0 ) like you would script any traditional directive. If you have a dynamic directive-value assigned to your directive text, and you use the delay of 0, your completed directive text will read &quot;Disable Science Vessels [1]&quot; instead of the intended &quot;Disable Science Vessels&quot; (without a number). The delay of 1 ensures that the directive text has a whole second to update itself as soon as the variable turns 0. Note that this is a visual oddity only.&lt;/ins&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;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;&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;[[Category:SCP SEXPs]]&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;[[Category:SCP SEXPs]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63291&amp;oldid=prev</id>
		<title>TopAce: /* Notes */ typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63291&amp;oldid=prev"/>
		<updated>2021-03-24T08:26:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Notes: &lt;/span&gt; typo&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 08:26, 24 March 2021&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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;*Found in Status --&amp;gt; Mission and must be a subordinate to &amp;quot;and&amp;quot;. (see example)&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;*Found in Status --&amp;gt; Mission and must be a subordinate to &amp;quot;and&amp;quot;. (see example)&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 set to 0, no number will appear&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 set to 0, no number will appear&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;*A [[Variables|variable]] is typically paired with this SEXP. In this case, the value does not require a trigger/repeat count&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@&lt;/del&gt;mdash;the event that does the counting, on the other hand, does&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/del&gt;&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;*A [[Variables|variable]] is typically paired with this SEXP. In this case, the value does not require a trigger/repeat count&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;&lt;/ins&gt;mdash;the event that does the counting, on the other hand, does&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&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;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;&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;==Example==&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;==Example==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63290&amp;oldid=prev</id>
		<title>TopAce: new + notes + example</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Directive-value&amp;diff=63290&amp;oldid=prev"/>
		<updated>2021-03-24T08:25:23Z</updated>

		<summary type="html">&lt;p&gt;new + notes + example&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; directive-value&lt;br /&gt;
 	Causes a value to appear in the directive count&lt;br /&gt;
 	Always returns true. Takes 1 or more arguments...&lt;br /&gt;
 &lt;br /&gt;
 	1:	Value&lt;br /&gt;
 	2:	(Optional) Ignore the directive count set by any earlier SEXPs in the event. If set to false it will add instead&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
*An earlier version was called: [[directive-is-variable]]&lt;br /&gt;
*Found in Status --&amp;gt; Mission and must be a subordinate to &amp;quot;and&amp;quot;. (see example)&lt;br /&gt;
*If set to 0, no number will appear&lt;br /&gt;
*A [[Variables|variable]] is typically paired with this SEXP. In this case, the value does not require a trigger/repeat count@mdash;the event that does the counting, on the other hand, does,&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
 $Formula: ( when-argument &lt;br /&gt;
    ( every-of &lt;br /&gt;
       &amp;quot;Newton&amp;quot; &lt;br /&gt;
       &amp;quot;Novalis&amp;quot; &lt;br /&gt;
       &amp;quot;Restoration&amp;quot; &lt;br /&gt;
       &amp;quot;Lytcha&amp;quot; &lt;br /&gt;
    )&lt;br /&gt;
    ( and &lt;br /&gt;
       ( is-disabled-delay 1 &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; ) &lt;br /&gt;
       ( directive-value &lt;br /&gt;
          @faustus-disable-num[4] &lt;br /&gt;
       )&lt;br /&gt;
    )&lt;br /&gt;
    ( do-nothing ) &lt;br /&gt;
 )&lt;br /&gt;
 +Name: Disable dir&lt;br /&gt;
 +Repeat Count: 1&lt;br /&gt;
 +Interval: 1&lt;br /&gt;
 +Objective:  XSTR(&amp;quot;Disable Science Vessels&amp;quot;, -1)&lt;br /&gt;
&lt;br /&gt;
 $Formula: ( when-argument &lt;br /&gt;
    ( any-of &lt;br /&gt;
       &amp;quot;Newton&amp;quot; &lt;br /&gt;
       &amp;quot;Novalis&amp;quot; &lt;br /&gt;
       &amp;quot;Restoration&amp;quot; &lt;br /&gt;
       &amp;quot;Lytcha&amp;quot; &lt;br /&gt;
    )&lt;br /&gt;
    ( is-disabled-delay 0 &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; ) &lt;br /&gt;
    ( modify-variable &lt;br /&gt;
       @faustus-disable-num[4] &lt;br /&gt;
       ( - @faustus-disable-num[4] 1 ) &lt;br /&gt;
    )&lt;br /&gt;
    ( protect-ship &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; ) &lt;br /&gt;
    ( ship-invulnerable &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; ) &lt;br /&gt;
    ( add-remove-escort &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; 0 ) &lt;br /&gt;
    ( invalidate-argument &amp;quot;&amp;lt;argument&amp;gt;&amp;quot; ) &lt;br /&gt;
 )&lt;br /&gt;
 +Name: faustus-disable-num&lt;br /&gt;
 +Repeat Count: -1&lt;br /&gt;
 +Trigger Count: 4&lt;br /&gt;
 +Interval: 1&lt;br /&gt;
&lt;br /&gt;
[[Category:SCP SEXPs]]&lt;/div&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
</feed>