Mushclient Questions

by Esano

Back to Mechanic's Corner.

Razenth2009-08-31 20:22:48
Regular expression, captures one or more words, words being defined as any sequence of letters and characters. Actually, that might be the character short hand tag, not sure.
Unknown2009-08-31 20:33:42
(\\w+) captures a single word, actually. The \\w basically refers to letters and numbers. You could also use (+) to capture a proper name, which matches any capital letter followed by one or more lowercase letters.
Dynami2009-08-31 21:09:00
Ok, something is wrong. Whenever someone gets stopped by timeslip, the note doesn't appear.
Trigger: ^You blur and slip through time as (\\w+) approaches you\\.$
Send:ColourNote("red", "white", "*****%1 JUST TRIED TO ATTACK
YOU!*****")
I checked regular expression, omit from log file, and Script (after omit)
Edit: Yes, the send appears exactly like that
Razenth2009-08-31 21:22:04
Check on the lower right hand side of the trigger box to see if its being matched.
Dynami2009-08-31 21:28:45
It says it has 0 matches
Edit: Nevermind! Ardmore helped me fix it!
Razenth2009-08-31 21:31:13
Regex is wrong then
Mirami2009-09-01 00:56:30
Might be answered already, but can you script plugins in Lua?
Unknown2009-09-01 01:14:49
Yes.
Llandros2009-09-01 07:39:16
how would i create an alias for backflip that would be like bf s and then would come out backflip target s
I tried bf 1%
backflip @target 1%

but that doesn't seem to work
Unknown2009-09-01 09:33:01
QUOTE (Llandros @ Sep 1 2009, 05:39 PM) <{POST_SNAPBACK}>
how would i create an alias for backflip that would be like bf s and then would come out backflip target s
I tried bf 1%
backflip @target 1%

but that doesn't seem to work


bf *
backflip @target %1
Jozen2009-09-02 09:40:05
Ok, I know that you can toggle Echo My Input through the Configure -> Commands (Alt + 0).

Is there a way I can write an alias to toggle this on or off?
Unknown2009-09-02 10:50:06
SetOption("display_my_input", 1). Use 1 to enable and 0 to disable.
Aerotan2009-09-15 16:33:01
Alright, got the framework of this setup, but I keep hitting syntax errors, I think.

CODE

     match="^minds$"
   enabled="y"
   regexp="y"
   send_to="12"
   ignore_case="y"
   sequence="100"
  >
  if (@mindtype <= @caut) then
  Send("Mindset Cautious")
elseif (@mindtype <= (@caut + @peda)) then
  Send("Mindset Pedantic")
else
  Send("Mindset Analytical")
end
SetVariable("mindtype",math.random(@caut + @peda + @anal))

  


Keeps returning this error
QUOTE
Compile error
World: Syridean
Immediate execution
:1: unexpected symbol near '@'
Unknown2009-09-15 18:18:16
Check the 'expand variables' option.
Aerotan2009-09-15 18:51:50
... *facepalm*
Right, I'm an idiot.
Jozen2009-09-16 02:18:38
How do I replace text in MUSH client?

Currently I omit and then echo something else, but it leaves those blank lines.

There has to be a better way.
Unknown2009-09-16 02:24:33
That is the way. You don't get blank lines, as long as you set your trigger pattern to match on (and omit) the entire line.
Unknown2009-09-17 03:11:08
I'm new around here, but a long-time player of Achaea and user of MUSHclient. Is there anything I should know about using MUSHclient with Lusternia here? Any must-have plugins, for example, or things I should know if I try to write my own?

EDIT: Anyone have a prompt trigger that'll match on all/most forms of a prompt? Or at least an example prompt with absolutely everything enabled/visible that I can use to write my own?
Unknown2009-09-17 10:46:42
You should download and look at my combat system. Link in signature.

You might also want to try one or more of Ilyarin's plugins, each of which has its own thread in this forum.
Ilyarin2009-09-17 12:12:36