Miscellaneous Functions: Difference between revisions
Jump to navigation
Jump to search
imported>Bale cat |
imported>Bale Add user_confirm |
||
Line 5: | Line 5: | ||
{{Flink|boolean|cli_execute|string|desc=Executes the given command as if it were entered into the CLI.}} | {{Flink|boolean|cli_execute|string|desc=Executes the given command as if it were entered into the CLI.}} | ||
{{Flink|void|wait|int|desc=Sleeps for the specified number of seconds.}} | {{Flink|void|wait|int|desc=Sleeps for the specified number of seconds.}} | ||
{{Flink|boolean|user_confirm|string|desc=Allows user input in Y/N format.}} | |||
{{Flink|string|get_property|string|desc=Gets a global or user preference as appropriate.}} | {{Flink|string|get_property|string|desc=Gets a global or user preference as appropriate.}} | ||
{{Flink|void|set_property|string|string|desc=Sets a global or user preference as appropriate.}} | {{Flink|void|set_property|string|string|desc=Sets a global or user preference as appropriate.}} |
Revision as of 05:37, 22 May 2010
void abort( [string] )
Aborts the current script with an optional message.
void print( string, [string] )
Prints to CLI and status line of Adventuring window, optionally in a specified color.
void print_html( string )
Prints to CLI, parsing any included html.
void logprint( string )
Prints to the session log.
boolean cli_execute( string )
Executes the given command as if it were entered into the CLI.
void wait( int )
Sleeps for the specified number of seconds.
boolean user_confirm( string )
Allows user input in Y/N format.
string get_property( string )
Gets a global or user preference as appropriate.
void set_property( string, string )
Sets a global or user preference as appropriate.
void batch_open()
Used to mark the beginning of a block of functions to operate in batch mode (see page for batch_close() for details).
boolean batch_close()
Used to mark the end of a block of functions to operate in batch mode (see page for details).
boolean file_to_map( string, aggregate )
Loads a map from a tab-delimited text file.
boolean map_to_file( aggregate, string )
Saves a map to a tab-delimited text file.
Returns the number of defined keys for the specified aggregate.
void clear( aggregate )
Removes all keys from the specified aggregate.
boolean is_online( string )
Check to see if a player is online.
void disable( string )
Disables the specified function (for debugging purposes).
void enable( string )
Enables the specified function (for debugging purposes).
buffer load_html( string )
Works like visit_url(), but for debugging.