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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  keypad goes through a script instead of just sending "north"

keypad goes through a script instead of just sending "north"

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


Posted by Faolong   USA  (28 posts)  [Biography] bio
Date Sat 26 Oct 2002 11:12 AM (UTC)
Message
i think that the keypad should be able to go through a script just in case to stop the user from going that direction if there was anything dangerous that way...

and oh yeah, world.Pause(true) is suppose to pause the world... right??? and world.Pause(false) is suppose to unpause them??? or am i just totally not getting the idea.... please clarify because it just doesn't seem to work for me...
[Go to top] top

Posted by Vaejor   (120 posts)  [Biography] bio
Date Reply #1 on Sat 26 Oct 2002 02:37 PM (UTC)
Message
Pausing just pauses the output screen so that it doesn't move, even though you are still getting data from the server(mud).

Try this set of events:

/world.pause true

Look at the bottom right hand corner of mushclient. There should be somethign showing "PAUSE"

As the server(mud) sends more text to you, it will change to a black background with grey text and read "MORE"

You can then turn it off by pressing
CTRL-PAGE DOWN

or by the scripting command:

/world.pause false


If you want to see it in action quickly, initiate combat or go somewhere where you're sure there will be activity, maybe people walking around or conversation, and try it there.

[Go to top] top

Posted by Vaejor   (120 posts)  [Biography] bio
Date Reply #2 on Sat 26 Oct 2002 02:44 PM (UTC)

Amended on Sat 26 Oct 2002 02:45 PM (UTC) by Vaejor

Message
For the primary question, this may be doable easily in a plugin.

Check here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1692

Primarily of interest is OnPluginSend which will be processed for EVERY command that is sent to the mud.

You could use a plugin to monitor your movements and limit them if you felt necessary.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sat 26 Oct 2002 08:22 PM (UTC)
Message
The simple solution to the keypad problem is to make an alias to match each direction. Keypad commands (and macros) are processed for aliases. eg. make an alias:

^(n|north)$

(A regular expression) and in it call a script to see if you can go north. This has the added benefit that it will also work if you type "n" rather than use the numeric keypad.

Vaejor is right about what "pause" does. If you were hoping for a command to pause a script, there isn't one. If you need to build in pauses in your output, use the "world.DoAfter" function to send text after a time elapses.

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


13,781 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]