Creating Structs

Post Reply
Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Creating Structs

Post by Filion »

I am about to begin my new mapper so i thought that I had to create every room as a struct, that will contain a unique ID, the name, the description and the possible exits. Can I make it in lua somehow?

User avatar
Omit
Posts: 190
Joined: Sun Aug 01, 2010 10:54 pm
Location: Middle Earth
Contact:

Re: Creating Structs

Post by Omit »

hmm....
can and I have (before the mapper was avalible)
I would recomend looking at how mudlet's mapper works and everything you can store in the map.
I think you will find that for storing your map (and all the info that you need to go with it) it is up to the task.
(I have created several mappers in pure Lua. The only really diffucult part is managing the storing of the information in a way that allows good preformance. the mapping api does this part very well, I recomend letting it).

Oh, If you are new to Lua.... read up on Lua tables.... they are your best friend when using data in scripting. :-)
Good luck.

Omit

Post Reply