script interface

Posted by Serenity on Wed 20 Jul 2011 11:30 AM — 3 posts, 15,730 views.

#0
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?
Australia Forum Administrator #1
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.
#2
Good stuff to get a good idea of required functions..
Thx!