Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ 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 page


Posted by RyhL19   (2 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  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
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.


10,819 views.

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

Go to topic:           Search the forum


[Go to top] top

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