<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.sternenschweif.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>https://wiki.sternenschweif.com/index.php?action=history&amp;feed=atom&amp;title=GetGeneralState_%2F_setGeneralState</id>
		<title>GetGeneralState / setGeneralState - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.sternenschweif.com/index.php?action=history&amp;feed=atom&amp;title=GetGeneralState_%2F_setGeneralState"/>
		<link rel="alternate" type="text/html" href="https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;action=history"/>
		<updated>2026-05-11T13:28:00Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in Sternenschweif Wiki</subtitle>
		<generator>MediaWiki 1.22.9</generator>

	<entry>
		<id>https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=941&amp;oldid=prev</id>
		<title>Chrisfirefox am 14. März 2015 um 20:31 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=941&amp;oldid=prev"/>
				<updated>2015-03-14T20:31:55Z</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;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 14. März 2015, 20:31 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 33:&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;setGeneralState(&amp;quot;NAME_DES_STATES&amp;quot;,mystate);&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;setGeneralState(&amp;quot;NAME_DES_STATES&amp;quot;,mystate);&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;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&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;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Alternativ dazu, eine Liste vollständiger Itemobjekte zu übergeben, kann auch das ''list'' bzw. ''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dlist&lt;/del&gt;''-Format aus [[showItemsetList]] verwendet werden:&lt;/div&gt;&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;Alternativ dazu, eine Liste vollständiger Itemobjekte zu übergeben, kann auch das ''list'' bzw. ''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;doublelist&lt;/ins&gt;''-Format aus [[showItemsetList]] verwendet werden:&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;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&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;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;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;div&gt;var newstate = {&amp;quot;val&amp;quot;:27,&amp;quot;list&amp;quot;:[14,14,14,15,16,17]}; // = 3x Itemid 14, je 1x Itemid 15, 16 und 17&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;var newstate = {&amp;quot;val&amp;quot;:27,&amp;quot;list&amp;quot;:[14,14,14,15,16,17]}; // = 3x Itemid 14, je 1x Itemid 15, 16 und 17&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisfirefox</name></author>	</entry>

	<entry>
		<id>https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=940&amp;oldid=prev</id>
		<title>Chrisfirefox am 14. März 2015 um 20:31 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=940&amp;oldid=prev"/>
				<updated>2015-03-14T20:31:36Z</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;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 14. März 2015, 20:31 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 36:&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;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&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;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;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;div&gt;var newstate = {&amp;quot;val&amp;quot;:27,&amp;quot;list&amp;quot;:[14,14,14,15,16,17]}; // = 3x Itemid 14, je 1x Itemid 15, 16 und 17&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;var newstate = {&amp;quot;val&amp;quot;:27,&amp;quot;list&amp;quot;:[14,14,14,15,16,17]}; // = 3x Itemid 14, je 1x Itemid 15, 16 und 17&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;var newstate2 = {&amp;quot;sval&amp;quot;:&amp;quot;Anderer GeneralState&amp;quot;,&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dlist&lt;/del&gt;&amp;quot;:[14,3,28,5]}; // = 3x Itemid 14, 5x Itemid 28&lt;/div&gt;&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;var newstate2 = {&amp;quot;sval&amp;quot;:&amp;quot;Anderer GeneralState&amp;quot;,&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;doublelist&lt;/ins&gt;&amp;quot;:[14,3,28,5]}; // = 3x Itemid 14, 5x Itemid 28&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;div&gt;setGeneralState(&amp;quot;NEUER_STATE_1&amp;quot;,newstate);&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;setGeneralState(&amp;quot;NEUER_STATE_1&amp;quot;,newstate);&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;div&gt;setGeneralState(&amp;quot;NEUER_STATE_2&amp;quot;,newstate2);&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;setGeneralState(&amp;quot;NEUER_STATE_2&amp;quot;,newstate2);&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;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&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;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisfirefox</name></author>	</entry>

	<entry>
		<id>https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=939&amp;oldid=prev</id>
		<title>Chrisfirefox am 14. März 2015 um 20:30 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=939&amp;oldid=prev"/>
				<updated>2015-03-14T20:30: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;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 14. März 2015, 20:30 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 38:&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;var newstate2 = {&amp;quot;sval&amp;quot;:&amp;quot;Anderer GeneralState&amp;quot;,&amp;quot;dlist&amp;quot;:[14,3,28,5]}; // = 3x Itemid 14, 5x Itemid 28&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;var newstate2 = {&amp;quot;sval&amp;quot;:&amp;quot;Anderer GeneralState&amp;quot;,&amp;quot;dlist&amp;quot;:[14,3,28,5]}; // = 3x Itemid 14, 5x Itemid 28&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;div&gt;setGeneralState(&amp;quot;NEUER_STATE_1&amp;quot;,newstate);&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;setGeneralState(&amp;quot;NEUER_STATE_1&amp;quot;,newstate);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setGeneralState(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;NEUER_STATE_&amp;quot;&lt;/del&gt;&amp;quot;,&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;newstate&amp;quot;&lt;/del&gt;);&lt;/div&gt;&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;setGeneralState(&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;NEUER_STATE_2&lt;/ins&gt;&amp;quot;,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;newstate2&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;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&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;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisfirefox</name></author>	</entry>

	<entry>
		<id>https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=938&amp;oldid=prev</id>
		<title>Chrisfirefox: Die Seite wurde neu angelegt: „Category:NLTScript Referenz GeneralStates sind &quot;komplexere Variablen&quot;, die in der Party abgelegt werden können. Anders als &quot;special&quot; States sind General S…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.sternenschweif.com/index.php?title=GetGeneralState_/_setGeneralState&amp;diff=938&amp;oldid=prev"/>
				<updated>2015-03-14T20:26:36Z</updated>
		
		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&lt;a href=&quot;/index.php/Kategorie:NLTScript_Referenz&quot; title=&quot;Kategorie:NLTScript Referenz&quot;&gt;Category:NLTScript Referenz&lt;/a&gt; GeneralStates sind &amp;quot;komplexere Variablen&amp;quot;, die in der Party abgelegt werden können. Anders als &amp;quot;special&amp;quot; States sind General S…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:NLTScript Referenz]]&lt;br /&gt;
GeneralStates sind &amp;quot;komplexere Variablen&amp;quot;, die in der Party abgelegt werden können. Anders als &amp;quot;special&amp;quot; States sind General States nicht ortsgebunden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var mystate = getGeneralState(&amp;quot;NAME_DES_STATES&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Object sind dann folgende Werte enthalten:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mystate =&lt;br /&gt;
{&amp;quot;val&amp;quot;: 0&lt;br /&gt;
&amp;quot;sval&amp;quot;: &amp;quot;&amp;quot;&lt;br /&gt;
&amp;quot;fval&amp;quot;: 0&lt;br /&gt;
&amp;quot;time&amp;quot;: 0&lt;br /&gt;
&amp;quot;items&amp;quot;: [array]}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''val''' ist ein Ganzzahliger Zahlenwert&amp;lt;br&amp;gt;&lt;br /&gt;
'''sval''' ist eine Zeichenkette&amp;lt;br&amp;gt;&lt;br /&gt;
'''fval''' ist ein Gleitkomma Zahlenwert&amp;lt;br&amp;gt;&lt;br /&gt;
'''time''' ist ein Datums- und Uhrzeitwert, im üblichen &amp;quot;Tage seit 1. Praios 1008BF&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
'''items''' ist ein Itemset, das eine beliebige Anzahl an Items speichern kann&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Diese Werte können beliebig manipuliert werden, zum Beispiel:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mystate.val = 27;&lt;br /&gt;
mystate[&amp;quot;sval&amp;quot;] = &amp;quot;Heute ist ein schöner Tag&amp;quot;; // Der Zugriff mittels . oder [&amp;quot;&amp;quot;] ist identisch&lt;br /&gt;
mystate.fval = 25.5;&lt;br /&gt;
mystate.time = 365.5; // = 1. Praios 1009BF, 12 Uhr&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Items enthalten pro Eintrag im Array ein vollständiges Itemobjekt, wie es zB aus [[getEquipped]] zurückgeliefert wird. Um den State zu aktualisieren, wird das Objekt selben Formats, egal ob direkt aus einem vorherigen getGeneralState oder im Code erzeugt, verwendet, also:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
setGeneralState(&amp;quot;NAME_DES_STATES&amp;quot;,mystate);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Alternativ dazu, eine Liste vollständiger Itemobjekte zu übergeben, kann auch das ''list'' bzw. ''dlist''-Format aus [[showItemsetList]] verwendet werden:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var newstate = {&amp;quot;val&amp;quot;:27,&amp;quot;list&amp;quot;:[14,14,14,15,16,17]}; // = 3x Itemid 14, je 1x Itemid 15, 16 und 17&lt;br /&gt;
var newstate2 = {&amp;quot;sval&amp;quot;:&amp;quot;Anderer GeneralState&amp;quot;,&amp;quot;dlist&amp;quot;:[14,3,28,5]}; // = 3x Itemid 14, 5x Itemid 28&lt;br /&gt;
setGeneralState(&amp;quot;NEUER_STATE_1&amp;quot;,newstate);&lt;br /&gt;
setGeneralState(&amp;quot;NEUER_STATE_&amp;quot;&amp;quot;,newstate&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chrisfirefox</name></author>	</entry>

	</feed>