pinion wrote:Let this thread serve as a place to ask questions about triggers and scripting etc via MUD clients. My questions:
In ZMUD, how do I make a reply trigger/alias/macro whatever?
Furthermore, in ZMUD, how do I make a trigger to group someone when they raise their hand?
1: type #alias {aliasname} {commands to be executed} or #action {string} {commands to be executed} {groupname if you want, not a must-have though}, but to do something like a reply alias, you will need to both use triggers and variables, in addition to your alias itself. I wouldn't recommend trying this yourself if you can't do a raise/group trigger of the top of your head.
2: #action {%1 raises handn blah blah} {group %1} {autogroup}
...The "autogroup" is the name of the grouping that trigger would be in, so at any time later you can do "T+ autogroup" or "#T- autogroup" to enable/disable them at will. Of course, you could turn the T +/- into an #alias, too.
3:
If you're REALLY sharp, you can make a toggle on/off macro to turn on/off ALL your triggers that matter, so you don't exccidentally leave your ZBLAM trigger on in a pk battle and get nuked for it or something equally crummy. I HIGHLY recommend learning macros in ZMUD before anything else besides basic #aliasing, because
they have already been created, and you can just overwrite the diagonal direction with something useful such as bash, or backstab @target, #2 shoot, etc. MUME doesn't use NW/NE/SW/SE, that leaves you with
11 different potential macro commands at your fingertips on your numpad, which means that spammable combat commands, ride/lead, and flee are all very VERY accessible.
my numpade currently uses:
Code: Select all
NUM5 = flee
NUM1 = bash/backstab @target (depending on character)
NUM7 = rescue @ward / reco (recover arrows)
NUM3 = clo exit
NUM9 = clo exit
NUM0 = hit @target / #2 shoot
NUM"/" = ride @one (the in and out of label I give my preferred mount)
NUM"*" = lead
DEC = tt (tt is #alias {label target}, which sets whatever I'm hitting as (target)
Here's the quick and dirty of what you'd want to set up to do a reply alias.
1: make an alias called "lastteller" or something similar.
2: make a trigger along the lines of "#action {%1 tells you '%2} {#var lastteller %1}
3: make an alias "#alias reply {tel @lastteller }
-that's it. Now, you'll end up with some issues eventually using this simplistic of a reply alias, since if anyone sends you a tell (including mobs and faketells) while you're typing a reply, it'll switch your lastteller variable before you're doing typing a sentence. To combat this, you can set up a second alias and variable, (I use "tt") which will keep track of the last person YOU sent a tell to. something along the lines of "#var lasttelltarget" and then add the command "#var lasttelltarget @lastteller" IMMEDIATELY BEFORE the "#var lastteller %1" command in your action you already made, seperated by a semicolon.
variable names don't matter, but I'd really recommend making them long and descriptive over short and easy to lose track of. You never TYPE your variable names, but rather use aliases to manually set them if you have to manually enter them in.
Here's a copy of my experience-gained-reporting trigger, which does nothing but echo the amount of exp gained since the last kill I gained credit for. It's a pretty (I think) clear example of the same thing you'd do for your "reply" alias setup. I don't use a reply alias anymore, but you could easily copy-paste most of this to cobble together your own.
Code: Select all
#action {You receive your share of experience.} {info %M exp: %X tp: %T}
#action {Coyote exp: %1 tp: %2} {#var exptill %1;#var tptill %2;#gag;#math expd {@expold - @exptill};#echo {_____===== EXPERIENCE GAINED: @expd ====____};#var expold @exptill}
This is a pretty sloppy trigger setup, but it works a treat more than 90% of the time, and since I already track tps till next level, I could easily add that in if I felt a need at a later time.
..if you have any ZMud-related questions I can handle some low-level and mid-level stuff, I've used ZMud for like 12 or 14 years, and I used to be a programming major in college. My code may be sloppy, drunk, or ponderous, but it works!
Characters: Bumblin, Dantes, Coyote