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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Linebreak at prompt

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Linebreak at prompt
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 13 Dec 2004 12:40 AM (UTC)  quote  ]
Message
See forcing newlines on prompt lines for another approach to doing this.

- Nick Gammon

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

Posted by Shadowfyr   USA  (1,774 posts)  [Biography] bio
Date Sun 12 Dec 2004 07:08 PM (UTC)  quote  ]
Message
Sometimes it exists, but no one is aware of it. For example, one the mud I play (TMI-2 based), the syntax for the line break is '$_'. Even some of the staff didn't know about it and it is definitely not listed in the help file for the prompts. Odds are that many do have such a command you can add, the question is what the heck it is and if anyone is willing to tell you about it. A few muds go so far as to prevent its use or hide its existance, just to make it harder for bot builders to cheat the game and have the clients play for them.

Which, on a side note, I always found bizarre anyway... I mean what the heck is the point of coding something that you can walk away and leave for hours, while making the pretense you are 'playing' anything. Frankly, some of the complex combat systems they come up with, that involve like 90 different afflictions you can get in a fight, etc., only encourage this type of 'play'. So why don't they just call those muds "Multi Bot Dungeons"? In fact, you can just upload your script to the system, have it run around killing stuff and check it once a week to see how well it is doing compared to all the other bots. ;) lol

main {
__if (Schrodinger_Cat is Alive or version >= "XP"){
____if version = "Vista" then Performance /= Number_of_Cores;
____call Functional_Code();}
__else
____call Crash_Windows();}
[Go to top] top

Posted by Scypio   Poland  (50 posts)  [Biography] bio
Date Sun 12 Dec 2004 12:08 PM (UTC)  quote  ]
Message
There's a (slim) chance that the MUD has that functionality.. the one I play does, so I can just set prompt $HE>\n. But I don't think it's a very common feature.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sat 11 Dec 2004 03:55 AM (UTC)  quote  ]
Message
If not, it is pretty hard because the client doesn't have a really good way of knowing what is a prompt and what isn't.

However see my recent post:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2727

It is possible you might be able to write a small plugin that detects prompts (assuming they always come in separate packets) and add a linefeed to them.

- Nick Gammon

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

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Sat 11 Dec 2004 01:12 AM (UTC)  quote  ]
Message
Some servers have this as a config option. I'm pretty sure that SMAUG has a 'blank' setting for having a line break sent after the prompt.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Harpuia   (1 post)  [Biography] bio
Date Sat 11 Dec 2004 12:57 AM (UTC)  quote  ]
Message
Is there a way to force the prompt to linebreak? It's messing up my triggers as some of the lines stick there and the whole trigger dies.
[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.


2,123 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]