Just my 2cents,
converting the perl eqemu quest to lua isnt that big of a deal - just remember - perl only can parse perl =)
Example from convert for my own engine:
http://pastebin.com/fBQnYXv3
(havent implemented all methods so some are commented)
Writing the initial converter might have taken about 10h.
Quote:
Originally Posted by cavedude
As you mentioned there isn't a whole lot Lua can do in the quest department that Perl can't.
|
Au contraire, it is a million times better than perl. Why would basically every game in the last 15+ years use lua as scripting backend?
Its small, no depencies, can be embedded easily, is 10times faster than perl.
Oh and the biggest aspects - coroutines!
npc:Say("Something...")
Wait(1second)
npc:Say("Something more..")
SpawnSomething()
Wait(10seconds)
you are basically writing a movie scripting without going forth and back with throwing timed events and if(timer==1) etc...
This is also not a real thread, just everything on the stack. No multithreading issues or objects going out of scope.
The most important thing, if you really want to redo the scripting engine - going back to the drawing board before coding anything really - this is the hardest part - designing a good API itself that is extend-able, takes more time then actual coding..
Good luck!