<?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=WeaponSetCtr</id>
	<title>WeaponSetCtr - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=WeaponSetCtr"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=WeaponSetCtr&amp;action=history"/>
	<updated>2026-11-01T03:21:13Z</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=WeaponSetCtr&amp;diff=2623&amp;oldid=prev</id>
		<title>Printz: Created page with &#039;{{codepointer|description= Sets the value of the indicated counter variable for the weapon. Can perform operations.|usage= &#039;&#039;&#039;WeaponSetCtr&#039;&#039;&#039;(&#039;&#039;counter&#039;&#039;, &#039;&#039;value&#039;&#039;, &#039;&#039;specialop&#039;…&#039;</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=WeaponSetCtr&amp;diff=2623&amp;oldid=prev"/>
		<updated>2011-05-08T21:22:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{codepointer|description= Sets the value of the indicated counter variable for the weapon. Can perform operations.|usage= &amp;#039;&amp;#039;&amp;#039;WeaponSetCtr&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;counter&amp;#039;&amp;#039;, &amp;#039;&amp;#039;value&amp;#039;&amp;#039;, &amp;#039;&amp;#039;specialop&amp;#039;…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{codepointer|description=&lt;br /&gt;
Sets the value of the indicated counter variable for the weapon. Can perform operations.|usage=&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WeaponSetCtr&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;counter&amp;#039;&amp;#039;, &amp;#039;&amp;#039;value&amp;#039;&amp;#039;, &amp;#039;&amp;#039;specialop&amp;#039;&amp;#039;)|parameters=&lt;br /&gt;
*&amp;#039;&amp;#039;counter&amp;#039;&amp;#039;: counter # to set (0 to 2)&lt;br /&gt;
*&amp;#039;&amp;#039;value&amp;#039;&amp;#039;: value to utilize&lt;br /&gt;
*&amp;#039;&amp;#039;specialop&amp;#039;&amp;#039;: operation to perform. One of the following:&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;assign&amp;#039;&amp;#039;&amp;#039; (0): set &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; to &amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;add&amp;#039;&amp;#039;&amp;#039; (1): increase &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by &amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;sub&amp;#039;&amp;#039;&amp;#039; (2): decrease &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by &amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;mul&amp;#039;&amp;#039;&amp;#039; (3): multiply &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by &amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;div&amp;#039;&amp;#039;&amp;#039; (4): divide &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Won&amp;#039;t operate if &amp;#039;&amp;#039;value&amp;#039;&amp;#039; is 0.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;mod&amp;#039;&amp;#039;&amp;#039; (5): calculate remainder of division of &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Won&amp;#039;t operate if &amp;#039;&amp;#039;value&amp;#039;&amp;#039; is 0 or less.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; (6): calculate bitwise AND of &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; and &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Useful to check if bits are set.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;andnot&amp;#039;&amp;#039;&amp;#039; (7): calculate bitwise AND of &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; and inverted &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Useful to clear bits of a counter.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039; (8): calculate bitwise OR of &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; and &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Useful to set bits of a counter.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;xor&amp;#039;&amp;#039;&amp;#039; (9): calculate bitwise exclusive OR of &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; and &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Useful to toggle bits of a counter.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;rand&amp;#039;&amp;#039;&amp;#039; (10): &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; becomes random number between 0 and 255.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;randmod&amp;#039;&amp;#039;&amp;#039; (11): &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; becomes random number between 0 and &amp;#039;&amp;#039;value&amp;#039;&amp;#039; - 1. Won&amp;#039;t operate if &amp;#039;&amp;#039;value&amp;#039;&amp;#039; is 0 or less.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;rshift&amp;#039;&amp;#039;&amp;#039; (13): divide &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by 2^&amp;#039;&amp;#039;value&amp;#039;&amp;#039;&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;lshift&amp;#039;&amp;#039;&amp;#039; (14): multiply &amp;#039;&amp;#039;counter&amp;#039;&amp;#039; by 2^&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|notes=&lt;br /&gt;
Each weapon has 3 counters available.|seealso=&lt;br /&gt;
*[[List_of_codepointers#Frame_scripting|Weapon frame scripting codepointers]]}}&lt;/div&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
</feed>