Editing
CounterSwitchEx
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!
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: '''CounterSwitchEx'''(''cnum'', ''state'') Parameters: *''cnum'': Counter number to check. From 0 to 7. *''state'': Name of label, or offset, to jump to if the comparison returns true. Note that 'state' cannot refer to global name states (ie. EDF frame mnemonics); this codepointer is strictly for use with DECORATE states. 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 ''state'' you provided). Unlike CounterSwitch, only the jumped-to state needs to be valid, though it will not jump if the state [[Category: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)
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