v1.00 of uberactions
Eliezer Flores <[email protected]> Sat, 14 Jan 2006 01:44:17 -0500
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
I'm looking for people to test my first fiddlings with the action
command. Basically i prefixed all the commands with uber so the suite is
uberaction
uberunaction
uberenable
uberdisable
uberatags
The key of course is the uberaction which is pretty much like the action
command with these changes:
- the onetime parameter was dropped
- an integer parameter, shots, was added. An uberaction will this many
times before disposing of itself. If shots is <1 then trigger is
"permanent" (will fire as long as its enabled)
- a boolean parameter, gag, was added. If gag is true then matching line
will be gagged
You may question why a gag option when a gag command already exists.
Well it has several advantages over the traditional gag such grouping
them by tag (in combo with the tag option thus being able to
disable/enable a group of gags) or having the gag only gag X number of
instances (in combo with the shots option, v. useful for when Ok. gets
spammy) in addition to triggering off a gagged line.
I didn't support an Antigag feature since the same could be accomplished
by using a higher priority for the antigag uberaction than the gag
uberaction.
I think it's all working as it should but if people would like to play
with it and double check (my eyes are bleary) that #help stuff is
consistent, it would be appreciated. Feel free to download it at:
http://ire.mainecoon.net/downloads/uberaction.py
As an implementation note, please note the tags exist in separate
namespace for uberaction i.e.
if you
#uberaction {jump} {#showme jumped} tag={demotag}
#action {smile} {#showme smiled} tag={demotag}
then
#disable tag={demotag} would leave the uberaction untouched just as
#uberdisable tag={demotag} would leave the action untouched even though
the tag for both is demotag
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click