Miscellaneous Functions: Difference between revisions
imported>Bale m markup fix |
imported>Bale Rearrange page & Add make_url from r8940 |
||
Line 15: | Line 15: | ||
{{Flink|string|time_to_string|desc=Returns the current local time in HH:mm:ss z format.}} | {{Flink|string|time_to_string|desc=Returns the current local time in HH:mm:ss z format.}} | ||
{{Flink|string|today_to_string|desc=Returns the current local day in ISO format.}} | {{Flink|string|today_to_string|desc=Returns the current local day in ISO format.}} | ||
== Debugging Functions == | |||
{{Flink|void|disable|string|desc=Disables the specified function.}} | |||
{{Flink|void|enable|string|desc=Enables the specified function.}} | |||
{{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}} | |||
{{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}} | |||
== Map Management Functions == | |||
{{Flink|boolean|file_to_map|string|aggregate|desc=Loads a map from a tab-delimited text file.}} | |||
{{Flink|boolean|map_to_file|aggregate|string|desc=Saves a map to a tab-delimited text file.}} | |||
{{Flink|int|count|aggregate|desc=Returns the number of defined keys for the specified aggregate.}} | |||
{{Flink|void|clear|aggregate|desc=Removes all keys from the specified aggregate.}} | |||
== Other Functions == | == Other Functions == | ||
Line 29: | Line 41: | ||
{{Flink|void|batch_open|desc=Used to mark the beginning of a block of functions to operate in batch mode (see page for {{f|batch_close}} for details).}} | {{Flink|void|batch_open|desc=Used to mark the beginning of a block of functions to operate in batch mode (see page for {{f|batch_close}} for details).}} | ||
{{Flink|boolean|batch_close|desc=Used to mark the end of a block of functions to operate in batch mode (see page for details).}} | {{Flink|boolean|batch_close|desc=Used to mark the end of a block of functions to operate in batch mode (see page for details).}} | ||
{{Flink|int|get_revision|desc=Returns the current KoLmafia revision number.}} | {{Flink|int|get_revision|desc=Returns the current KoLmafia revision number.}} | ||
{{Flink|string|get_version|desc=Returns the most recent KoLmafia version.}} | {{Flink|string|get_version|desc=Returns the most recent KoLmafia version.}} | ||
[[Category:Scripting]] | [[Category:Scripting]] |
Revision as of 09:08, 27 April 2011
Chat Functions
void chat_clan( string )
void chat_clan( string, string )
void chat_macro( string )
void chat_notify( string, string )
void chat_private( string, string )
boolean is_online( string )
boolean [string] who_clan()
Time Functions
int gameday_to_int()
int gameday_to_int()
string now_to_string()
string time_to_string()
string today_to_string()
Debugging Functions
void disable( string )
void enable( string )
buffer load_html( string )
string make_url( string, boolean, boolean )
Map Management Functions
boolean file_to_map( string, aggregate )
boolean map_to_file( aggregate, string )
void clear( aggregate )
Other Functions
void abort( [string] )
void print( string, [string] )
void print_html( string )
void logprint( string )
boolean cli_execute( string )
void wait( int )
void waitq( int )
boolean user_confirm( string )
string get_property( string )
void set_property( string, string )
void batch_open()
batch_close()
for details).boolean batch_close()
int get_revision()
string get_version()