![]() The "send_to" field can be specified using the "sendto" table in the Lua global address space, as follows: SetTimerOption ("mytimer", "minute", "5") World.SetTimerOption ("mytimer", "minute", "5") $world->SetTimerOption ("mytimer", "minute", "5") World.SetTimerOption "mytimer", "minute", "5" "14" - send to script engine - after omitting from output "variable": (string - name of variable to send to) "send_to": 0 - 13 - "send to" location (see below) "send": (multi-line string - what to send) "second": second to fire at (or every second) "script": (string - name of function to call) "omit_from_output": y/n - omit timer output from log file "omit_from_log": y/n - omit timer from log file "offset_second": offset second - fire at time *plus* this ![]() "offset_minute": offset minute - fire at time *plus* this "offset_hour": offset hour - fire at time *plus* this "minute": minute to fire at (or every minute) "at_time": y/n - y=fire *at* time of day, otherwise every interval "active_closed": y/n - timer is active when world closed In other words, if the interval is an hour, but the offset is 45 minutes, then the timer fires 15 minutes into the hour (it still fires every hour, but 45 minutes is subtracted from the fire time). The "offset" options are the time offset within the interval. For the "user" option an optional leading sign is accepted.įor boolean options (such as "enabled") the supplied string may be:Īlso if you are using Lua you can supply simply true or false. It is an error if the string does not consist of digits (0 to 9). If SetTimerOption is called from within a plugin, the timers for the current plugin are used, not the "global" MUSHclient timers.įor numeric options (such as "hour") the supplied string will be converted to a number. To change the name of a timer use ExportXML, modify the XML, and then ImportXML. You already know the name when getting the timer option (it is TimerName), and this function is provided to modify existing timers, not rename them. It is listed below for completeness in viewing timers copied to the clipboard or in world files and plugins. Note that you can neither get nor set the "name" field. These are the same names as used in the XML world files for timer options.įor a detailed description about the meanings of the fields, see AddTimer. You must specify the name of an existing timer, and a timer option from the list given for GetTimerOption. Sets the current value of a timer option.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |