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
➜ MUDs
➜ MUD Design Concepts
➜ script interface
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Serenity
(18 posts) Bio
|
| Date
| Wed 20 Jul 2011 11:30 AM (UTC) |
| Message
| I'm designing a C++ Mud Server that's using a Lua script engine. Currently I'm working on the functions that are available to the Lua Scripts. Currently this is very limited,
eg:
mob:addItem(..)
mob:removeItem(..)
mob:hasItem(..)
mob:addCredits(..)
mob:removeCredits(..)
mob:roomMsg(..)
mob:startScript(..)
mob:hide()
mob:show()
all stats can be set/get like: mob.health = mob.maxhealth
And also I have some area functions:
area:roomMsg(..)
area:addExit(..)
area:spawnCreature(..)
area:destroyObject(..)
area:startScript(..)
I'm sure I'm missing a lot of features that a Builder would want. Which ones would you guys want to see in a server?
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 20 Jul 2011 08:53 PM (UTC) |
| Message
| Looks good so far. You might be able to get inspiration from the way that Aardwolf went about integrating Lua into their server:
http://www.aardwolf.com/lua.html
I'm not suggesting you copy their stuff, but browsing through it may give you ideas for the sort of things that a working MUD found useful. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Serenity
(18 posts) Bio
|
| Date
| Reply #2 on Thu 21 Jul 2011 05:49 AM (UTC) |
| Message
| Good stuff to get a good idea of required functions..
Thx! | | 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.
14,347 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top