Difference between revisions of "Waitq"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(Minimum wait is 1 second)
imported>Bale
Line 16: Line 16:
 
}}|
 
}}|
  
function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. This is the "quiet" version, which will not print a countdown on the gCLI during the delay. Minimum wait is 1 second, even if {{pspan|secs}} is 0.|
+
function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. This is the "quiet" version, which will not print a countdown on the gCLI during the delay.</p><p>Minimum wait is 1 second, even if {{pspan|secs}} is 0.|
  
 
needscode=yes|
 
needscode=yes|

Revision as of 00:06, 11 January 2015

needs(code_samples);

Function Syntax

void waitq(int secs )

  • secs is the number of seconds you want to delay further action.

This function will initiate a countdown from secs seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. This is the "quiet" version, which will not print a countdown on the gCLI during the delay.

Minimum wait is 1 second, even if secs is 0.

CLI Equivalent

The CLI command "waitq" functions the same and can be used to pause basic .txt scripts.

See Also

wait()