Lua function to play sounds
[EDIT HEIKO: included]
Mudlet features and API requests
Re: Mudlet API requests
A variable or a function with the location of the currently used profile.
[EDIT HEIKO: included as getMudletHomeDir()
[EDIT HEIKO: included as getMudletHomeDir()
Re: Mudlet API requests
enableAlias()/disableAlias() functions. I'd guess they'd be almost identical to enableTrigger/disableTrigger. Might have a look if I get a minute...
[EDIT HEIKO: included]
[EDIT HEIKO: included]
Re: Mudlet API requests
The enableXXX/disableXXX functions have not been optimized yet and are very slow. I'll optimize them to work in constant time in one of the next releases. I'll add functions for alias too then.
Anyways, the enable/disable trigger functions shouldn't be used much either way as trigger chains offer a much better solution to the problem which is both much faster and less error prone.
Anyways, the enable/disable trigger functions shouldn't be used much either way as trigger chains offer a much better solution to the problem which is both much faster and less error prone.
Re: Mudlet API requests
A function to turn logging on and off.
A function to turn timestamp on and off.
It is hard to manually change logging and timestamp when someone attacks you. With functions you can program triggers, aliases and scripts to change the logging and timestamps.
[EDIT HEIKO: included]
A function to turn timestamp on and off.
It is hard to manually change logging and timestamp when someone attacks you. With functions you can program triggers, aliases and scripts to change the logging and timestamps.
[EDIT HEIKO: included]
Re: Mudlet API requests
With the coming expansion to the state machine, Heiko, I was wondering if the following would possible:
Make sure badly written multi state triggers may be easily reset, so those of us that script by trial and error don't end up too frustrated when a trigger gets 'stuck' in the middle somewhere while we're still debugging it.
resetTrigger("Trigger name")
Make sure badly written multi state triggers may be easily reset, so those of us that script by trial and error don't end up too frustrated when a trigger gets 'stuck' in the middle somewhere while we're still debugging it.
resetTrigger("Trigger name")
Re: Mudlet API requests
kunei: -> todo list
caled: -> todo list.
caled: -> todo list.
Re: Mudlet API requests
deleteLabel()
actually delete a label, remove from screen and forget it ever existed
actually delete a label, remove from screen and forget it ever existed
Re: Mudlet API requests
deleteAllLabels()
useful for debugging/testing/creating labels. pita to restart mudlet atm to get rid of them
useful for debugging/testing/creating labels. pita to restart mudlet atm to get rid of them
Re: Mudlet API requests
This is still a problem.Vadi wrote:And an event to be notified when the window dimensions change, so that you can update the position of your windows automatically..
Resize Mudlet, and all your fancy labels get so screwey