Difference between revisions of "Wait"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Bale
m
Line 6: Line 6:
  
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Miscellaneous|
 
  
 
function1={{Function|
 
function1={{Function|
Line 23: Line 22:
 
cli_equiv=The CLI command "wait" functions the same and can be used to pause basic .txt scripts.|
 
cli_equiv=The CLI command "wait" functions the same and can be used to pause basic .txt scripts.|
 
}}
 
}}
 +
 +
[[Category:Miscellaneous Functions]]

Revision as of 05:30, 22 May 2010

needs(code_samples);

Function Syntax

void wait(int secs )

  • secs is the number of seconds you want to count down from.

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. In addition, a countdown prints to the CLI at varying intervals (every 15 secs for large numbers, 5 seconds for smaller numbers and every second from 5 seconds down).

CLI Equivalent

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