Editing
WeaponSetCtr
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{codepointer|description= Sets the value of the indicated counter variable for the weapon. Can perform operations.|usage= '''WeaponSetCtr'''(''counter'', ''value'', ''specialop'')|parameters= *''counter'': counter # to set (0 to 2) *''value'': value to utilize *''specialop'': operation to perform. One of the following: :*'''assign''' (0): set ''counter'' to ''value'' :*'''add''' (1): increase ''counter'' by ''value'' :*'''sub''' (2): decrease ''counter'' by ''value'' :*'''mul''' (3): multiply ''counter'' by ''value'' :*'''div''' (4): divide ''counter'' by ''value''. Won't operate if ''value'' is 0. :*'''mod''' (5): calculate remainder of division of ''counter'' by ''value''. Won't operate if ''value'' is 0 or less. :*'''and''' (6): calculate bitwise AND of ''counter'' and ''value''. Useful to check if bits are set. :*'''andnot''' (7): calculate bitwise AND of ''counter'' and inverted ''value''. Useful to clear bits of a counter. :*'''or''' (8): calculate bitwise OR of ''counter'' and ''value''. Useful to set bits of a counter. :*'''xor''' (9): calculate bitwise exclusive OR of ''counter'' and ''value''. Useful to toggle bits of a counter. :*'''rand''' (10): ''counter'' becomes random number between 0 and 255. :*'''randmod''' (11): ''counter'' becomes random number between 0 and ''value'' - 1. Won't operate if ''value'' is 0 or less. :*'''rshift''' (13): divide ''counter'' by 2^''value'' :*'''lshift''' (14): multiply ''counter'' by 2^''value''|notes= Each weapon has 3 counters available.|seealso= *[[List_of_codepointers#Frame_scripting|Weapon frame scripting codepointers]]}}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Codepointer
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information