[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  New to mush, my questions
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New to mush, my questions

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Bobb   (3 posts)  [Biography] bio
Date Sun 08 Nov 2009 01:37 PM (UTC)
Message
Just a quick one to start off,
how is it i can change a variable's content from the command line?
cheers
[Go to top] top

Posted by Nick Gammon   Australia  (21,387 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 08 Nov 2009 06:32 PM (UTC)

Amended on Tue 26 Nov 2013 03:40 AM (UTC) by Nick Gammon

Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Bobb   (3 posts)  [Biography] bio
Date Reply #2 on Tue 10 Nov 2009 02:08 PM (UTC)
Message
thank you nick gammon

could you tell me (or direct me to)how i can get the target to be highlighted?
[Go to top] top

Posted by Nick Gammon   Australia  (21,387 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 10 Nov 2009 07:17 PM (UTC)
Message
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.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Bobb   (3 posts)  [Biography] bio
Date Reply #4 on Wed 11 Nov 2009 04:33 PM (UTC)
Message
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
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] bio
Date Reply #5 on Wed 11 Nov 2009 09:40 PM (UTC)
Message
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?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #6 on Wed 11 Nov 2009 09:40 PM (UTC)

Amended on Wed 11 Nov 2009 09:41 PM (UTC) by Twisol

Message
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!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (21,387 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Thu 12 Nov 2009 01:31 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,009 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]