Editing
CounterJumpEx
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!
Jump works in the same manner as [[CounterJump]], performing a counter-versus-value comparison and jumps to "frame" if the test passes. The usage is as follows: CounterJumpEx (state, comparison, valctr, ctr) *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. *comparison: one of the following: :'''less''' or 0: '''valctr is a constant''' - jump if ctr < valctr :'''lessorequal''' or 1: '''valctr is a constant''' - jump if ctr <= valctr :'''greater''' or 2: '''valctr is a constant''' - jump if ctr > valctr :'''greaterorequal''' or 3: '''valctr is a constant''' - jump if ctr >= valctr :'''equal''' or 4: '''valctr is a constant''' - jump if ctr == valctr :'''notequal''' or 5: '''valctr is a constant''' - jump if ctr != valctr :'''and''' or 6: '''valctr is a constant''' - jump if ctr & valctr :'''less_counter''' or 7: '''valctr is a counter number''' - jump if ctr < valctr :'''lessorequal_counter''' or 8: '''valctr is a counter number''' - jump if ctr <= valctr :'''greater_counter''' or 9: '''valctr is a counter number''' - jump if ctr > valctr :'''greaterorequal_counter''' or 10: '''valctr is a counter number''' - jump if ctr >= valctr :'''equal_counter''' or 11: '''valctr is a counter number''' - jump if ctr == valctr :'''notequal_counter''' or 12: '''valctr is a counter number''' - jump if ctr != valctr :'''and_counter''' or 13: '''valctr is a counter number''' - jump if ctr & valctr *valctr: the value (or counter number holding the value) to compare against *ctr: the counter to compare This codepointer was added in Eternity because CounterJump uses frame names or [[DeHackEd]] numbers, meaning that you could not use it for things defined entirely using DECORATE states. Additionally the behavior of this function could not be encapsulated in the prior function, due to not being able to differentiate state names from label names, and DeHackEd nums from offset nums. ==See also== *[[CounterJump]] *[[CounterOp]] *[[List of codepointers]] *[[SetCounter]] [[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