From WikiChip
Editing mirc/commands/inc
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.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{mirc title|/inc Command}} | {{mirc title|/inc Command}} | ||
The '''/inc command''' increases the numeric value of a variable by a given value. If [value] is not specified, mIRC will increase the variable by one. The /inc command works with both positive and negative values alike. | The '''/inc command''' increases the numeric value of a variable by a given value. If [value] is not specified, mIRC will increase the variable by one. The /inc command works with both positive and negative values alike. | ||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
− | /inc [- | + | /inc [-scrzeuNk] <%var> [value] |
== Switches == | == Switches == | ||
+ | * '''-c''' - Increases the variable by 1 every second | ||
* '''-s''' - Prints out the value of the variable | * '''-s''' - Prints out the value of the variable | ||
− | + | * '''-z''' - Decreases the variable by 1 every second until it reaches zero at which point the variable will get removed. | |
− | |||
− | |||
− | * '''-z''' - Decreases the variable by 1 every second until it reaches zero at which point the variable will get | ||
* '''-e''' - Unsets the variable when mIRC exits | * '''-e''' - Unsets the variable when mIRC exits | ||
* '''-uN''' - Increases the variable once and unsets the variable after N seconds | * '''-uN''' - Increases the variable once and unsets the variable after N seconds | ||
+ | * '''-k''' - Keeps the unset time of the variable if it exists. Watch out, currently -k in /inc does not behave the same as in {{mIRC|/set}}, as in, if you provide another -uN switch AND a -k switch, it will use this new unset time and won't preserve the original one. | ||
+ | |||
+ | Note: -c and -z and -uN do not observe the second changing while executing a script, so -c and -z switches have no effect on a local variable, and -uN will not decrement until after the script finishes. | ||
== Parameters == | == Parameters == |