New to mush, my questions

Posted by Bobb on Sun 08 Nov 2009 01:37 PM — 8 posts, 33,659 views.

#0
Just a quick one to start off,
how is it i can change a variable's content from the command line?
cheers
Australia Forum Administrator #1
See the "Getting Started" part of the forum.

For that particular question, there is even a video showing the way you can do that:

Template:post=9616
Please see the forum thread: http://gammon.com.au/forum/?id=9616.


Or, just a forum post about targetting aliases:

Template:post=8084
Please see the forum thread: http://gammon.com.au/forum/?id=8084.



The targetting alias video / post shows you you change a variable (the target) by typing in an alias.

There is a more general way, see:

Template:function=SetVariable
SetVariable

The documentation for the SetVariable script function is available online. It is also in the MUSHclient help file.



You can execute any script function from the command line once you set up a "scripting prefix" in the Script configuration.
Amended on Tue 26 Nov 2013 03:40 AM by Nick Gammon
#2
thank you nick gammon

could you tell me (or direct me to)how i can get the target to be highlighted?
Australia Forum Administrator #3
You can use a trigger that highlights that target word by using @target (if that is what you called it) and checking "expand variables", like this:


<triggers>
  <trigger
   custom_colour="17"
   enabled="y"
   expand_variables="y"
   keep_evaluating="y"
   match="@target"
   regexp="y"
   repeat="y"
   sequence="100"
   other_back_colour="yellow"
  >
  </trigger>
</triggers>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

#4
um what could be causing my MUSHcliet to keep freezing?
i thought i could be a plugin but i removed them all and it still does it
#5
Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


At what point does it freeze? Does it freeze when you open a world?

What operating system are you using?
USA #6
Under what circumstances does it freeze? On connect, sending a command, etc, or is it irregular? What operating system do you use, and what version thereof? What MUSHclient version?

All of these questions can potentially help solve the problem. It's always better to give more details from the start. :)

EDIT: Ninja'd by Blainer. Nice!
Amended on Wed 11 Nov 2009 09:41 PM by Twisol
Australia Forum Administrator #7
I think some versions would freeze if you did "repeat on same line" with an empty match string. My trigger I suggested might do that, if the @target was empty.

That was fixed in version 4.41 onwards.

Version 4.43 can be downloaded now, see:

Template:post=9659
Please see the forum thread: http://gammon.com.au/forum/?id=9659.