<?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=Tutorial_-_Directive-value_SEXP</id>
	<title>Tutorial - Directive-value SEXP - 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=Tutorial_-_Directive-value_SEXP"/>
	<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;action=history"/>
	<updated>2026-11-15T10:42:36Z</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=Tutorial_-_Directive-value_SEXP&amp;diff=63449&amp;oldid=prev</id>
		<title>TopAce: there&#039;s no need to write the title at the top</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=63449&amp;oldid=prev"/>
		<updated>2021-07-28T08:35:19Z</updated>

		<summary type="html">&lt;p&gt;there&amp;#039;s no need to write the title at the top&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:35, 28 July 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-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=&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=Directive-value SEXP Tutorial=&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;Note: This tutorial was written for the &amp;#039;&amp;#039;directive-is-variable&amp;#039;&amp;#039; sexp. Both sexps pretty much do the same thing, but directive-value lets you directly plug in any number that can be returned. This tutorial still applies and the writer would like to not have to retake so many pictures!&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;Note: This tutorial was written for the &amp;#039;&amp;#039;directive-is-variable&amp;#039;&amp;#039; sexp. Both sexps pretty much do the same thing, but directive-value lets you directly plug in any number that can be returned. This tutorial still applies and the writer would like to not have to retake so many pictures!&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;/table&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=43577&amp;oldid=prev</id>
		<title>Axem at 16:53, 1 March 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=43577&amp;oldid=prev"/>
		<updated>2014-03-01T16:53:02Z</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 16:53, 1 March 2014&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-l124&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&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;[[http://lazymodders.fsmods.net/files/axem_directiveisvariable.rar Link to blank and final missions used in the tutorial]]&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;[[http://lazymodders.fsmods.net/files/axem_directiveisvariable.rar Link to blank and final missions used in the tutorial]]&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;[[Category:FRED Examples]]&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;[[Category:FRED Examples&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]][[Category:Tutorials&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Axem</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=39450&amp;oldid=prev</id>
		<title>Axem: Clarifying differences between old and new sexp!</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=39450&amp;oldid=prev"/>
		<updated>2012-08-13T23:24:32Z</updated>

		<summary type="html">&lt;p&gt;Clarifying differences between old and new sexp!&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 23:24, 13 August 2012&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-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=&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;=Directive-is-variable &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SEXP Tutorial=&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;=Directive&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-value SEXP Tutorial=&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;/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: This tutorial was written for the &#039;&#039;directive&lt;/ins&gt;-is-variable&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039; sexp. Both sexps pretty much do the same thing, but directive-value lets you directly plug in any number that can be returned. This tutorial still applies and the writer would like to not have to retake so many pictures!&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;===The Problem===&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;===The Problem===&lt;/div&gt;&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-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&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;[[File:axem-ViD10.png|600px]]&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;[[File:axem-ViD10.png|600px]]&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;directive-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is-variable &lt;/del&gt;always returns true, so to use it you would have &quot;and (your normal conditions) (directive-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is-variable &lt;/del&gt;variable(X))&quot;&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;directive-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value &lt;/ins&gt;always returns true, so to use it you would have &quot;and (your normal conditions) (directive-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value &lt;/ins&gt;variable(X))&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;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;Let&amp;#039;s see this in game.&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;Let&amp;#039;s see this in game.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Axem</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=39448&amp;oldid=prev</id>
		<title>Axem: moved Tutorial - Directive-is-variable SEXP to Tutorial - Directive-value SEXP:&amp;#32;Old sexp is old</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=39448&amp;oldid=prev"/>
		<updated>2012-08-13T23:20:40Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/Tutorial_-_Directive-is-variable_SEXP&quot; class=&quot;mw-redirect&quot; title=&quot;Tutorial - Directive-is-variable SEXP&quot;&gt;Tutorial - Directive-is-variable SEXP&lt;/a&gt; to &lt;a href=&quot;/index.php/Tutorial_-_Directive-value_SEXP&quot; title=&quot;Tutorial - Directive-value SEXP&quot;&gt;Tutorial - Directive-value SEXP&lt;/a&gt;: Old sexp is old&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:20, 13 August 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Axem</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=37233&amp;oldid=prev</id>
		<title>Axem: Added link to mission used</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=37233&amp;oldid=prev"/>
		<updated>2011-11-06T03:19:13Z</updated>

		<summary type="html">&lt;p&gt;Added link to mission used&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 03:19, 6 November 2011&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-l119&quot;&gt;Line 119:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 119:&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;Well that&amp;#039;s all for tonight sports fans. Have fun and explore the other things you can do with this sexp!&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;Well that&amp;#039;s all for tonight sports fans. Have fun and explore the other things you can do with this sexp!&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;[[http://lazymodders.fsmods.net/files/axem_directiveisvariable.rar Link to blank and final missions used in the tutorial]]&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:FRED Examples]]&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:FRED Examples]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Axem</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=37232&amp;oldid=prev</id>
		<title>Axem: New Tutorial!</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Tutorial_-_Directive-value_SEXP&amp;diff=37232&amp;oldid=prev"/>
		<updated>2011-11-06T03:16:45Z</updated>

		<summary type="html">&lt;p&gt;New Tutorial!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Directive-is-variable SEXP Tutorial=&lt;br /&gt;
&lt;br /&gt;
===The Problem===&lt;br /&gt;
&lt;br /&gt;
Have you ever had one of those days?&lt;br /&gt;
&lt;br /&gt;
One of those days where you want to disable some beam cannons on a ship, and you want a number by the directive to show the player how many are left?&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD01.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Yeah, we&amp;#039;ve all had bad days. Maybe not as bad as this guys. But still bad.&lt;br /&gt;
&lt;br /&gt;
Well never fear, new additions to the SCP will allow you to turn this can-don&amp;#039;t, into can-probably-do!&lt;br /&gt;
&lt;br /&gt;
===The OLD and BUSTED way===&lt;br /&gt;
&lt;br /&gt;
If you wanted to keep track of how many beam cannons are left, you&amp;#039;d probably go about by using the is-destroyed-delay sexp and a bunch of dummy objects.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD02.png|600px]]&lt;br /&gt;
&lt;br /&gt;
This is from mission 2 from Vassago&amp;#039;s Dirge. Basically I set up these containers what would self destruct if you destroyed the right turret (or the ship). Then the actual directive is depending if you destroyed the containers, which you kind of do indirectly.&lt;br /&gt;
&lt;br /&gt;
This can be a little complicated and convoluted at times, but do not fear. There is a better way!&lt;br /&gt;
&lt;br /&gt;
===The NEW and HOTNESS way===&lt;br /&gt;
&lt;br /&gt;
Oh noes! The Arcadia installation... Smarcadia has fallen under attack by the Ravana-class destroyer the... Smassago... And only Alpha 1 is on scene with 5 trebs! What will you do?!&lt;br /&gt;
&lt;br /&gt;
Kill the beam turrets of course. Has Blue Planet taught you NOTHING?! First lets set it up.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD03.png|600px]]&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD04.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Pretty simple initial event setup. Okay, let&amp;#039;s make a directive for killing the beam turrets.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD05.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Simple, right?&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD06.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Oh right, that number doesn&amp;#039;t show up. And I&amp;#039;m supposed to be showing you a way to make the number appear...&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s make a variable. Call it SmassagoBeamsLeft and set the initial value to 4. (As it has 4 beam cannons)&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD07.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Next make a new event, Track Smassago Beams. Set up the event like below. Trigger count for 4. (As we have 4 beam cannons) You would fill the argument list with names of turrets that are beam cannons.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD08.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Simply, when any of the specified turrets are destroyed, we decrease SmassagoBeamsLeft by one, then we remove that turret from consideration. Because we don&amp;#039;t want to count a destroy turret twice of course!&lt;br /&gt;
&lt;br /&gt;
Now we go back up to Destroy Beam Turrets and tack on this magical sexp.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD09.png|600px]]&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD10.png|600px]]&lt;br /&gt;
&lt;br /&gt;
directive-is-variable always returns true, so to use it you would have &amp;quot;and (your normal conditions) (directive-is-variable variable(X))&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s see this in game.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD11.jpg|600px]]&lt;br /&gt;
[[File:axem-ViD12.jpg|600px]]&lt;br /&gt;
[[File:axem-ViD13.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Cool!&lt;br /&gt;
&lt;br /&gt;
Want to see some more fun we can have with this?&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m going to assume you said yes. If you said no, close your browser right now!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===MORE FUN!===&lt;br /&gt;
&lt;br /&gt;
The variable doesn&amp;#039;t just have to go down. It can go up too! Or be updated every second! Here&amp;#039;s some quick uses for it.&lt;br /&gt;
&lt;br /&gt;
====General Destroy/Protect Directives====&lt;br /&gt;
&lt;br /&gt;
If you ever had a lot of fighters to kill in a mission, you might have tried to stick them all in a general &amp;quot;Destroy Fighters&amp;quot; directive. Well if you tried that you would have noticed that the directive only actually appears after all the fighters have arrived. Bummer.&lt;br /&gt;
&lt;br /&gt;
But we can change that behavior with this!&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD14.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Note that we&amp;#039;re using destroyed-or-departed-delay, since using is-destroyed-delay will hold the effect of not showing the directive until all wings are present.&lt;br /&gt;
&lt;br /&gt;
So now you could have Aquarius and Gemini arrive first, and then Leo, Cancer and Virgo afterwards and you could use the same directive for everything! When new fighters pop in, the number goes up!&lt;br /&gt;
&lt;br /&gt;
The only caveat is that the directive will appear right away, even if no one is there. So chain your directives correctly. Also if there are no fighters around, the directive won&amp;#039;t complete, it just won&amp;#039;t have a number.&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s see it in action!&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD15.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD16.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Sweet.&lt;br /&gt;
&lt;br /&gt;
You can also use this for protect directives. Just don&amp;#039;t use has-departed-delay or else the directive will fail as soon as someone dies and the number will vanish. Instead, we can do this...&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD17.png|600px]]&lt;br /&gt;
&lt;br /&gt;
This directive will only complete when Omega 1, 2 and 3 have either been destroyed or have left, and atleast 1 of them has left the mission. So you can lose 2 and still complete the directive. You can adjust the percent-ships-destroyed to your own desires.&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD18.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
====Countdowns====&lt;br /&gt;
&lt;br /&gt;
We don&amp;#039;t even need to tie this to ships you know! We can make it into a timer!&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD19.png|600px]]&lt;br /&gt;
&lt;br /&gt;
[[File:axem-ViD20.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Complete all the directives before time is out! Note the extra true on the is-event-true-delay. This allows that sexp to directly be used in a directive.&lt;br /&gt;
&lt;br /&gt;
Well that&amp;#039;s all for tonight sports fans. Have fun and explore the other things you can do with this sexp!&lt;br /&gt;
&lt;br /&gt;
[[Category:FRED Examples]]&lt;/div&gt;</summary>
		<author><name>Axem</name></author>
	</entry>
</feed>