Mudlet features and API requests

FormerZmudUser
Posts: 13
Joined: Fri May 15, 2009 12:52 pm

Re: Mudlet API requests

Post by FormerZmudUser »

Lua function to play sounds

[EDIT HEIKO: included]

User avatar
Vadi
Posts: 4854
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

A variable or a function with the location of the currently used profile.

[EDIT HEIKO: included as getMudletHomeDir()

Thylacine
Posts: 28
Joined: Sun May 10, 2009 5:04 am

Re: Mudlet API requests

Post by Thylacine »

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]

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko »

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.

kuei
Posts: 4
Joined: Sat Jun 27, 2009 3:05 am

Re: Mudlet API requests

Post by kuei »

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]

Caled
Posts: 403
Joined: Thu Apr 09, 2009 4:45 am

Re: Mudlet API requests

Post by Caled »

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")

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko »

kunei: -> todo list
caled: -> todo list.

User avatar
Vadi
Posts: 4854
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

deleteLabel()

actually delete a label, remove from screen and forget it ever existed

User avatar
Vadi
Posts: 4854
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

deleteAllLabels()

useful for debugging/testing/creating labels. pita to restart mudlet atm to get rid of them :|

User avatar
Vadi
Posts: 4854
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi »

Vadi wrote:And an event to be notified when the window dimensions change, so that you can update the position of your windows automatically..
This is still a problem.

Resize Mudlet, and all your fancy labels get so screwey :?

Post Reply