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
➜ No functions working
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Slurp
(6 posts) Bio
|
Date
| Thu 10 Aug 2006 04:32 PM (UTC) |
Message
| I've activiated scripting as suggested in the tutorial.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6030
Using LUA,
when I type /note "Blah"
I get
[string "Command line"]:1: attempt to call global `note' (a nil value)
stack traceback:
[string "Command line"]:1: in main chunk
Its telling me to the best of my knoweldge when tyring to call a global function I get a nil value returned?
Am I missing something?
I'm using V 3.73
Thanks
Slurp | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Thu 10 Aug 2006 05:31 PM (UTC) |
Message
| You might want to try doing /world.note instead of just /note. That should work. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Slurp
(6 posts) Bio
|
Date
| Reply #2 on Thu 10 Aug 2006 07:06 PM (UTC) |
Message
| /world.note "Boo"
gives me
[string "Command line"]:1: attempt to call field `note' (a nil value)
stack traceback:
[string "Command line"]:1: in main chunk
Same error. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 10 Aug 2006 09:04 PM (UTC) Amended on Thu 10 Aug 2006 09:05 PM (UTC) by Nick Gammon
|
Message
| Lua is case-sensitive. In the page you referred to, the examples were:
Note "hello, world"
not:
note "hello, world"
You can let MUSHclient correct the capitalization for you when typing in scripts. Partially (or fully) type a function name and then Shift+Tab which invokes the function-name-completion menu. This will replace the function name with one capitalized correctly. |
- 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.
12,542 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top