<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=CounterSwitchEx</id>
	<title>CounterSwitchEx - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=CounterSwitchEx"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=CounterSwitchEx&amp;action=history"/>
	<updated>2026-05-03T08:53:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=CounterSwitchEx&amp;diff=3815&amp;oldid=prev</id>
		<title>Altazimuth: Add new codepointer, A_CounterSwitchEx.</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=CounterSwitchEx&amp;diff=3815&amp;oldid=prev"/>
		<updated>2016-09-19T17:30:30Z</updated>

		<summary type="html">&lt;p&gt;Add new codepointer, A_CounterSwitchEx.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;CounterSwitchEx works in the same manner as [[CounterSwitch]], implementing an N-way branch where the value of the indicated counter determines to which frame the jump will occur. The usage is as follows: &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;CounterSwitchEx&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;cnum&amp;#039;&amp;#039;, &amp;#039;&amp;#039;state&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
*&amp;#039;&amp;#039;cnum&amp;#039;&amp;#039;: Counter number to check. From 0 to 7.&lt;br /&gt;
*&amp;#039;&amp;#039;state&amp;#039;&amp;#039;: Name of label, or offset, to jump to if the comparison returns true. Note that &amp;#039;state&amp;#039; cannot refer to global name states (ie. EDF frame mnemonics); this codepointer is strictly for use with DECORATE states. &lt;br /&gt;
&lt;br /&gt;
The frames to be jumped to need not be defined in a consecutive block in EDF, as it uses labels or offsets instead. The first state in this set is deemed to be frame #0. The value of the counter is considered to be zero-based, so that if it is equal to zero, the object will jump to frame #0 (the first &amp;#039;&amp;#039;state&amp;#039;&amp;#039; you provided). Unlike CounterSwitch, only the jumped-to state needs to be valid, though it will not jump if the state&lt;br /&gt;
&lt;br /&gt;
[[Category:Codepointers]]&lt;/div&gt;</summary>
		<author><name>Altazimuth</name></author>
	</entry>
</feed>