<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.amuletsandarmor.com/index.php?action=history&amp;feed=atom&amp;title=ScriptSet</id>
		<title>ScriptSet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.amuletsandarmor.com/index.php?action=history&amp;feed=atom&amp;title=ScriptSet"/>
		<link rel="alternate" type="text/html" href="http://wiki.amuletsandarmor.com/index.php?title=ScriptSet&amp;action=history"/>
		<updated>2026-04-29T12:25:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.amuletsandarmor.com/index.php?title=ScriptSet&amp;diff=1755&amp;oldid=prev</id>
		<title>PeeWeeRotA at 16:45, 5 March 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.amuletsandarmor.com/index.php?title=ScriptSet&amp;diff=1755&amp;oldid=prev"/>
				<updated>2014-03-05T16:45:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:45, 5 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-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets the value of the specified variable to the value. The specified variable must be declared using a defvar line in the variables section.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets the value of the specified variable to the value. The specified variable must be declared using a defvar line in the variables section.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;The value can be a literal value, another&amp;#160; variable, or a constant declared using a defnumline.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Note:'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Note:'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeeWeeRotA</name></author>	</entry>

	<entry>
		<id>http://wiki.amuletsandarmor.com/index.php?title=ScriptSet&amp;diff=1754&amp;oldid=prev</id>
		<title>PeeWeeRotA: Created page with &quot;'''Set( [Variable], [Value])'''  Sets the value of the specified variable to the value. The specified variable must be declared using a defvar line in the variables section.  ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.amuletsandarmor.com/index.php?title=ScriptSet&amp;diff=1754&amp;oldid=prev"/>
				<updated>2014-03-05T16:44:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Set( [Variable], [Value])&amp;#039;&amp;#039;&amp;#039;  Sets the value of the specified variable to the value. The specified variable must be declared using a defvar line in the variables section.  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Set( [Variable], [Value])'''&lt;br /&gt;
&lt;br /&gt;
Sets the value of the specified variable to the value. The specified variable must be declared using a defvar line in the variables section.&lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
Variables are not set at creation, so they must be set before being used. Script function 0 executes at the level beginning and is the best place to initialize variables.&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
&lt;br /&gt;
'''Variable''' - Variable to set&lt;br /&gt;
&lt;br /&gt;
'''Value''' - Value to change variable to&lt;br /&gt;
&lt;br /&gt;
===Code Example===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
defnum	NOT_COMPLETE	0&lt;br /&gt;
defnum	COMPLETE		1&lt;br /&gt;
&lt;br /&gt;
// Variables are defined with defvar and you have 1..255 of them&lt;br /&gt;
defvar	ExitSwitch		1&lt;br /&gt;
defvar	Block1			2&lt;br /&gt;
&lt;br /&gt;
Initialize:&lt;br /&gt;
0: // Script run when the level is loaded&lt;br /&gt;
	Set(ExitSwitch, NOT_COMPLETE);&lt;br /&gt;
	Unblock(Block1);&lt;br /&gt;
	End()&lt;br /&gt;
&lt;br /&gt;
40:  // raise exit floor with switch&lt;br /&gt;
	Compare(ExitSwitch, COMPLETE);&lt;br /&gt;
	If (Equal, 99); &lt;br /&gt;
	Block(Block1);   &lt;br /&gt;
	ChangeSideTexture(1373,&amp;quot;SWIT1U&amp;quot;);&lt;br /&gt;
	AreaSound(6007,-2943,-12,300,255);&lt;br /&gt;
	SlideFloorNice(114, -400, -64, 100, -1);&lt;br /&gt;
	Set(ExitSwitch, COMPLETE);&lt;br /&gt;
	Unblock(Block1);&lt;br /&gt;
	End()&lt;br /&gt;
&lt;br /&gt;
99: //Escape function&lt;br /&gt;
	End()&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>PeeWeeRotA</name></author>	</entry>

	</feed>