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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to set new command to appear beside prompt line?

How to set new command to appear beside prompt line?

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


Posted by RyhL19   (2 posts)  [Biography] bio
Date Fri 28 Oct 2011 09:21 PM (UTC)

Amended on Fri 28 Oct 2011 10:37 PM (UTC) by RyhL19

Message
I remember seeing it somewhere, but spent 15 minutes looking for that option, yet to be found....

I find it neater and less spammy if my input commands appeared on the side of my prompt line.

The option is not appearing under Output or Commands.

New here, please go easy on me.

Thanks


PS: Also, I'm working to setup a ColourNote that displays Fully Healed! when my HP is full (just started learning the basics, reading MUSHCLIENT Introduction to Scripting). Problem is, it works when the script goes:

if %1 < (whatever number I put)

But because I'm trying to match my HP to its full value, I do:

if %1 = 300 (being my max HP)

However this doesn't work. Is the "=" sign not recognised?

Thanks again. I can't seem to find a list of correct commands for "if" in the Help file provided with the freeware.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 28 Oct 2011 10:49 PM (UTC)
Message
World configuration -> Input -> Commands -> Keep Commands On Prompt Line.


Quote:

if %1 = 300 (being my max HP)


http://www.gammon.com.au/scripts/doc.php?lua=if%20/%20then%20/%20else

You need "==" not "=".


And:

http://www.gammon.com.au/scripts/doc.php?lua=relational%20operators

These are in the help file in the program.

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


7,658 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 HostDash]