A few alias, trigger, and speedwalking questions
Posted: Thu Aug 18, 2022 5:53 pm
Hey guys, been trying to figure out some triggers and aliases, as well as a couple of speedwalking things. I'm new to all this and have figured out most things I've needed, but I'm stuck on these five things, so bear with these five questions please!
- First, I have a trigger that picks up and wields a weapon once it's been disarmed. So far, it seemingly works for any combination of names, except weapons that have a single word for a name. I realize it must be something with <weapon>, just can't figure out what it's missing:
Code: Select all
^(?<disarmer>[\w\s-']+) DISARMS your[\w\s'-]+ (?<weapon>[\w-]+)!
- Second, been trying to make a login trigger based off text that has []. The below code doesn't work, but it does work if I remove the $. Why?
Code: Select all
^Press (enter...|\[ENTER\])$
- Third, in the Mudlet documentation, it says you can use words as directions, like if you have speedwalk("5w, IN, 2s") that the "IN" will send that command. However, that's not working for me with more complex words, like "cauldron" for instance. The below code will break up the world "cauldron" and only spam the directional characters, u, d, n. So far, I've just split it into two speedwalk() and did a send("cauldron") in between, which seems like I could just use send() instead at that point. How can I get the below to work using the proper speedwalk() function?
Code: Select all
speedwalk("5w, cauldron, 2s")
- Fourth, is there a way to get some quick alias-style batch commands that work for on-the-fly speedwalking and general commands? So I could type something like "b8 drink mug" and then it would send "drink mug" 8 times? This would also work for on-the-fly speedwalking, like "sp 8w2s" which would turn into speedwalk("8w2s"). Haven't been successful with these either.
- Finally, I read the documentation on how to set variables on-the-fly from the command line, but pretty much nothing happens. I'd also want this to edit permanent variables (the ones clicked with the checkbox). So for example, I get a new weapon, then I can change the my_weapon variable's keyword in the command prompt without having to open up the variables menu and edit it there.
Thanks in advance, and I apologize for the bunch of questions!