[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]  General
. . -> [Subject]  New help facility for scripting
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New help facility for scripting

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


Posted by Nick Gammon   Australia  (15,683 posts)  [Biography] bio
Date Tue 29 Nov 2005 11:42 PM (UTC)  quote  ]

Amended on Sat 22 Dec 2007 07:32 PM (UTC) by Nick Gammon

Message

Version 3.70 has a couple of new features for scripters.

Often I find myself writing a script and wanting to know the exact spelling (including capitalization) of a script function, or what its arguments are. This information is all in the help file, but it can take a few mouse-clicks to reach it.

The new functionality of version 3.70 makes this all much simpler.

A new menu item Game -> Functions List displays all inbuilt script functions, like this:

Script functions list - 13K

[EDIT] In newer versions the menu item is in Help -> Functions List.

This is for the case where you simply want to browse all functions. You can get a subset by typing some text into the "filter" box, which makes the list instantly redisplay with only functions matching what you typed...

Functions list, filtered - 6K

As soon as you select a function, and click OK (or double-click the function name) the appropriate page of the help file is displayed.

If you only need the correct spelling of the function name, simply click the "Copy" button, and the function name will be copied to the Clipboard.

The "Lua" button shows the help page relating to all the Lua-specific functions.

Auto-selection of function name

As an added feature, if you are using the inbuilt notepad, or are editing in the "send to script" window, you can position the cursor over a word, and click on the "Function" button, and the selected word will be used as the filter:

Using function list from script editor - 3K

This is particularly useful when you just want to check on the purpose of a function in an existing script. In this case the cursor is somewhere inside the word "ColourNote", so that function is filtered and selected:

Selected function displayed - 4K


There is also a script interface to this functionality. You can simply type:


/Help "trigger"

This would show the functions list, with "trigger" as the filter. However if an exact match can be found, the help for that function is opened immediately.


- Nick Gammon

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

Posted by Mccane   (28 posts)  [Biography] bio
Date Sat 22 Dec 2007 01:56 PM (UTC)  quote  ]
Message
The Functions List is stored under the Help > Functions List instead of Game > Functions List now.
[Go to top] top

Posted by Nick Gammon   Australia  (15,683 posts)  [Biography] bio
Date Sat 22 Dec 2007 07:31 PM (UTC)  quote  ]
Message
Correct. In later versions I moved the menu item to a more logical place.

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


2,365 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]